	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_mx_mmc_request
_meson_mx_mmc_request:                  ## @meson_mx_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	(%rbx), %r12
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_meson_mx_mmc_map_dma
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_2
LBB0_7:
	movq	%rax, (%r12)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_request_done               ## TAILCALL
LBB0_2:
	movq	%rbx, 8(%r15)
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rax), %edi
	callq	_sg_dma_address
	movq	_MESON_MX_SDIO_ADDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r15), %rsi
	movl	%eax, %edi
	callq	_writel
LBB0_4:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	jne	LBB0_6
## %bb.5:
	movq	(%rbx), %rsi
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_meson_mx_mmc_start_cmd         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MESON_MX_SDIO_ADDR,8,3         ## @MESON_MX_SDIO_ADDR
	.no_dead_strip	_meson_mx_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_mx_mmc_request
_meson_mx_mmc_request:                  ; @meson_mx_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	x20, x1
	mov	x19, x0
	bl	_mmc_priv
	mov	x21, x0
	ldr	x22, [x20]
	ldr	x0, [x0, #16]
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_meson_mx_mmc_map_dma
	str	x0, [x21, #16]
	cbz	x0, LBB0_3
LBB0_2:
	str	x0, [x22]
	mov	x0, x19
	mov	x1, 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	_mmc_request_done
LBB0_3:
	str	x20, [x21, #8]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x8]
	bl	_sg_dma_address
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _MESON_MX_SDIO_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MESON_MX_SDIO_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
LBB0_5:
	ldr	x1, [x20, #8]
	cbnz	x1, LBB0_7
; %bb.6:
	ldr	x1, [x20]
LBB0_7:
	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_start_cmd
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MESON_MX_SDIO_ADDR,8,3         ; @MESON_MX_SDIO_ADDR
	.no_dead_strip	_meson_mx_mmc_request
.subsections_via_symbols
