	.file	"extr_mmc_test.c_mmc_test_check_broken_result.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mmc_test_check_broken_result, @function
mmc_test_check_broken_result:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	edi, 1
	mov	rbx, rsi
	test	rsi, rsi
	je	.L2
	cmp	QWORD PTR 16[rsi], 0
	je	.L2
	xor	edi, edi
	cmp	QWORD PTR [rsi], 0
	sete	dil
.L2:
	call	BUG_ON@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L8
	mov	rdx, QWORD PTR [rbx]
	mov	ecx, DWORD PTR [rdx]
	test	ecx, ecx
	je	.L22
	mov	edi, ecx
	add	edi, DWORD PTR ETIMEDOUT[rip]
	jne	.L15
	mov	rcx, QWORD PTR 8[rbx]
	test	rcx, rcx
	je	.L19
.L5:
	mov	ecx, DWORD PTR [rcx]
	test	ecx, ecx
	je	.L19
.L15:
	mov	eax, ecx
.L8:
	mov	edx, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	add	edx, DWORD PTR EINVAL[rip]
	cmove	eax, DWORD PTR RESULT_UNSUP_HOST[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	ecx, DWORD PTR RESULT_FAIL[rip]
	test	ecx, ecx
	jne	.L15
	mov	rcx, QWORD PTR 8[rbx]
	test	rcx, rcx
	jne	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	cmp	DWORD PTR 4[rdx], 1
	jle	.L23
	mov	rsi, QWORD PTR 16[rdx]
	cmp	QWORD PTR 8[rdx], rsi
	jle	.L8
	mov	eax, DWORD PTR RESULT_FAIL[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	cmp	QWORD PTR 8[rdx], 0
	jle	.L8
	mov	eax, DWORD PTR RESULT_FAIL[rip]
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	mmc_test_check_broken_result, .-mmc_test_check_broken_result
	.comm	RESULT_UNSUP_HOST,4,4
	.comm	RESULT_FAIL,4,4
	.comm	ETIMEDOUT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mmc_test.c_mmc_test_check_broken_result.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmc_test_check_broken_result, %function
mmc_test_check_broken_result:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	r4, r1, #0
	beq	.L13
	ldr	r3, [r4, #8]
	cmp	r3, #0
	ldrne	r0, [r4]
	clzne	r0, r0
	lsrne	r0, r0, #5
	bne	.L2
.L13:
	mov	r0, #1
.L2:
	bl	BUG_ON
	ldr	r3, [r4, #8]
	ldr	r0, [r3]
	cmp	r0, #0
	bne	.L8
	ldr	r3, [r4]
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L20
	ldr	r1, .L22
	ldr	r1, [r1]
	cmn	r2, r1
	bne	.L15
	ldr	r2, [r4, #4]
	cmp	r2, #0
	beq	.L17
.L5:
	ldr	r2, [r2]
	cmp	r2, #0
	beq	.L17
.L15:
	mov	r0, r2
.L8:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	cmn	r0, r3
	ldreq	r3, .L22+8
	ldreq	r0, [r3]
	pop	{r4, pc}
.L20:
	ldr	r2, .L22+12
	ldr	r2, [r2]
	cmp	r2, #0
	bne	.L15
	ldr	r2, [r4, #4]
	cmp	r2, #0
	bne	.L5
.L17:
	ldr	r2, [r3, #4]
	cmp	r2, #1
	ble	.L21
	ldr	r2, [r3, #8]
	ldr	r3, [r3, #12]
	cmp	r2, r3
	ldrgt	r3, .L22+12
	ldrgt	r0, [r3]
	b	.L8
.L21:
	ldr	r3, [r3, #8]
	cmp	r3, #0
	ldrgt	r3, .L22+12
	ldrgt	r0, [r3]
	b	.L8
.L23:
	.align	2
.L22:
	.word	ETIMEDOUT
	.word	EINVAL
	.word	RESULT_UNSUP_HOST
	.word	RESULT_FAIL
	.size	mmc_test_check_broken_result, .-mmc_test_check_broken_result
	.comm	RESULT_UNSUP_HOST,4,4
	.comm	RESULT_FAIL,4,4
	.comm	ETIMEDOUT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
