	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_mmc_request
_meson_mmc_request:                     ## @meson_mmc_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, %rbx
	movq	%rdi, %r14
	callq	_mmc_priv
	movq	%rax, %r15
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_SD_EMMC_PRE_REQ_DONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
LBB0_6:
	xorl	%r12d, %r12d
LBB0_7:
	movq	_SD_EMMC_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	jne	LBB0_9
## %bb.8:
	movl	(%rbx), %esi
LBB0_9:
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_meson_mmc_start_cmd
	testb	%r12b, %r12b
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_meson_mmc_post_req             ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_meson_mmc_get_transfer_mode
	movq	16(%rbx), %rdi
	callq	_meson_mmc_desc_chain_mode
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_meson_mmc_pre_req
	movb	$1, %r12b
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_SD_EMMC_PRE_REQ_DONE,4,2       ## @SD_EMMC_PRE_REQ_DONE
	.comm	_SD_EMMC_START,8,3              ## @SD_EMMC_START
	.no_dead_strip	_meson_mmc_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_mmc_request
_meson_mmc_request:                     ; @meson_mmc_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	x20, x0
	bl	_mmc_priv
	mov	x21, x0
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _SD_EMMC_PRE_REQ_DONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SD_EMMC_PRE_REQ_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_2:
	mov	w22, #0
LBB0_3:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _SD_EMMC_START@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SD_EMMC_START@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x1, [x19, #8]
	cbnz	x1, LBB0_5
; %bb.4:
	ldr	w1, [x19]
LBB0_5:
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_meson_mmc_start_cmd
	cbz	w22, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	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_mmc_post_req
LBB0_7:
	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
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_meson_mmc_get_transfer_mode
	ldr	x0, [x19, #16]
	bl	_meson_mmc_desc_chain_mode
	cbz	w0, LBB0_2
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	bl	_meson_mmc_pre_req
	mov	w22, #1
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SD_EMMC_PRE_REQ_DONE,4,2       ; @SD_EMMC_PRE_REQ_DONE
	.comm	_SD_EMMC_START,8,3              ; @SD_EMMC_START
	.no_dead_strip	_meson_mmc_request
.subsections_via_symbols
