	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jz4740_mmc_timeout
_jz4740_mmc_timeout:                    ## @jz4740_mmc_timeout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_timeout_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %rbx
	leaq	8(%rax), %rsi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_JZ_MMC_IRQ_END_CMD_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_jz4740_mmc_set_irq_enabled
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	%r14d, (%rax)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_jz4740_mmc_request_done        ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_timeout_timer,4,2              ## @timeout_timer
	.comm	_JZ_MMC_IRQ_END_CMD_RES,4,2     ## @JZ_MMC_IRQ_END_CMD_RES
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_host,8,3                       ## @host
	.no_dead_strip	_jz4740_mmc_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jz4740_mmc_timeout
_jz4740_mmc_timeout:                    ; @jz4740_mmc_timeout
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _timeout_timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _timeout_timer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x19, x0
	add	x1, x0, #8
	mov	w0, #0
	bl	_test_and_clear_bit
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _JZ_MMC_IRQ_END_CMD_RES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JZ_MMC_IRQ_END_CMD_RES@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_jz4740_mmc_set_irq_enabled
Lloh6:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w8, w8
	ldr	x9, [x19]
	ldr	x9, [x9]
	str	w8, [x9]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_jz4740_mmc_request_done
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_timeout_timer,4,2              ; @timeout_timer
	.comm	_JZ_MMC_IRQ_END_CMD_RES,4,2     ; @JZ_MMC_IRQ_END_CMD_RES
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_host,8,3                       ; @host
	.no_dead_strip	_jz4740_mmc_timeout
.subsections_via_symbols
