	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1xmmc_request
_au1xmmc_request:                       ## @au1xmmc_request
	.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	%rsi, %r14
	movq	%rdi, %r12
	callq	_mmc_priv
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_irqs_disabled
	movl	%eax, %edi
	callq	_WARN_ON
	movq	(%rbx), %rax
	movq	_HOST_S_IDLE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	movq	%r14, 8(%rbx)
	movq	_HOST_S_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r12, %rdi
	callq	_au1xmmc_card_inserted
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	cmpl	$0, 8(%r14)
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_FLUSH_FIFO
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	_au1xmmc_prepare_data
	testl	%eax, %eax
	jne	LBB0_2
## %bb.5:
	movl	8(%r14), %r15d
LBB0_6:
	movq	(%r14), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r15d, %ecx
	callq	_au1xmmc_send_command
	testl	%eax, %eax
	jne	LBB0_2
## %bb.7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOMEDIUM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_au1xmmc_finish_request         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST_S_IDLE,8,3                ## @HOST_S_IDLE
	.comm	_HOST_S_CMD,8,3                 ## @HOST_S_CMD
	.comm	_ENOMEDIUM,4,2                  ## @ENOMEDIUM
	.no_dead_strip	_au1xmmc_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1xmmc_request
_au1xmmc_request:                       ; @au1xmmc_request
	.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
	mov	x19, x1
	mov	x21, x0
	bl	_mmc_priv
	mov	x20, x0
	bl	_irqs_disabled
	bl	_WARN_ON
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _HOST_S_IDLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HOST_S_IDLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
Lloh3:
	adrp	x8, _HOST_S_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HOST_S_CMD@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x19, [x20]
	mov	x0, x21
	bl	_au1xmmc_card_inserted
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_FLUSH_FIFO
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_au1xmmc_prepare_data
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	w3, [x19, #8]
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEDIUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEDIUM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	mov	w3, #0
LBB0_6:
	ldr	x2, [x19]
	mov	x0, x20
	mov	w1, #0
	bl	_au1xmmc_send_command
	cbz	w0, LBB0_8
LBB0_7:
	ldr	x8, [x19]
	str	w0, [x8]
	mov	x0, x20
	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	_au1xmmc_finish_request
LBB0_8:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST_S_IDLE,8,3                ; @HOST_S_IDLE
	.comm	_HOST_S_CMD,8,3                 ; @HOST_S_CMD
	.comm	_ENOMEDIUM,4,2                  ; @ENOMEDIUM
	.no_dead_strip	_au1xmmc_request
.subsections_via_symbols
