	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_mx_mmc_timeout
_meson_mx_mmc_timeout:                  ## @meson_mx_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cmd_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %rbx
	leaq	20(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_MESON_MX_SDIO_IRQC@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_MESON_MX_SDIO_IRQC_ARC_CMD_INT_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r15), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movl	16(%rbx), %edi
	callq	_mmc_dev
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movl	4(%rax), %r15d
	movq	_MESON_MX_SDIO_IRQS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %r12d
	movq	_MESON_MX_SDIO_ARGU@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_dev_dbg
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movq	(%rbx), %rax
	movl	%ecx, (%rax)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_meson_mx_mmc_request_done      ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cmd_timeout,4,2                ## @cmd_timeout
	.comm	_MESON_MX_SDIO_IRQC,8,3         ## @MESON_MX_SDIO_IRQC
	.comm	_MESON_MX_SDIO_IRQC_ARC_CMD_INT_EN,4,2 ## @MESON_MX_SDIO_IRQC_ARC_CMD_INT_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout on CMD%u (IRQS = 0x%08x, ARGU = 0x%08x)\n"

	.comm	_MESON_MX_SDIO_IRQS,8,3         ## @MESON_MX_SDIO_IRQS
	.comm	_MESON_MX_SDIO_ARGU,8,3         ## @MESON_MX_SDIO_ARGU
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_host,8,3                       ## @host
	.no_dead_strip	_meson_mx_mmc_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_mx_mmc_timeout
_meson_mx_mmc_timeout:                  ; @meson_mx_mmc_timeout
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _cmd_timeout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cmd_timeout@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x19, x0
	add	x20, x0, #20
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x21, _MESON_MX_SDIO_IRQC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MESON_MX_SDIO_IRQC@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh5:
	adrp	x8, _MESON_MX_SDIO_IRQC_ARC_CMD_INT_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MESON_MX_SDIO_IRQC_ARC_CMD_INT_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
	bl	_mmc_dev
	mov	x20, x0
	ldp	x8, x9, [x19]
	ldr	w21, [x8, #4]
Lloh8:
	adrp	x8, _MESON_MX_SDIO_IRQS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MESON_MX_SDIO_IRQS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x0, x8, x9
	bl	_readl
	mov	x22, x0
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x9, _MESON_MX_SDIO_ARGU@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MESON_MX_SDIO_ARGU@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x4, x0
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	_dev_dbg
Lloh16:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w8, w8
	ldr	x9, [x19]
	str	w8, [x9]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_meson_mx_mmc_request_done
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cmd_timeout,4,2                ; @cmd_timeout
	.comm	_MESON_MX_SDIO_IRQC,8,3         ; @MESON_MX_SDIO_IRQC
	.comm	_MESON_MX_SDIO_IRQC_ARC_CMD_INT_EN,4,2 ; @MESON_MX_SDIO_IRQC_ARC_CMD_INT_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout on CMD%u (IRQS = 0x%08x, ARGU = 0x%08x)\n"

	.comm	_MESON_MX_SDIO_IRQS,8,3         ; @MESON_MX_SDIO_IRQS
	.comm	_MESON_MX_SDIO_ARGU,8,3         ; @MESON_MX_SDIO_ARGU
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_host,8,3                       ; @host
	.no_dead_strip	_meson_mx_mmc_timeout
.subsections_via_symbols
