	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imxmci_finish_request
_imxmci_finish_request:                 ## @imxmci_finish_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	36(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_IMXMCI_PEND_WAIT_RESP_m@GOTPCREL(%rip), %rax
	movq	_IMXMCI_PEND_DMA_END_m@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IMXMCI_PEND_DMA_DATA_m@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IMXMCI_PEND_CPU_DATA_m@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%rbx)
	movq	_IMXMCI_INT_MASK_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 48(%rbx)
	movq	_MMC_REG_INT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	40(%rbx), %rsi
	callq	_writew
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
LBB0_3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	$0, 24(%rbx)
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_request_done               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IMXMCI_PEND_WAIT_RESP_m,4,2    ## @IMXMCI_PEND_WAIT_RESP_m
	.comm	_IMXMCI_PEND_DMA_END_m,4,2      ## @IMXMCI_PEND_DMA_END_m
	.comm	_IMXMCI_PEND_DMA_DATA_m,4,2     ## @IMXMCI_PEND_DMA_DATA_m
	.comm	_IMXMCI_PEND_CPU_DATA_m,4,2     ## @IMXMCI_PEND_CPU_DATA_m
	.comm	_IMXMCI_INT_MASK_DEFAULT,4,2    ## @IMXMCI_INT_MASK_DEFAULT
	.comm	_MMC_REG_INT_MASK,8,3           ## @MMC_REG_INT_MASK
	.no_dead_strip	_imxmci_finish_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imxmci_finish_request
_imxmci_finish_request:                 ; @imxmci_finish_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
	add	x21, x0, #36
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _IMXMCI_PEND_WAIT_RESP_m@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMXMCI_PEND_WAIT_RESP_m@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IMXMCI_PEND_DMA_END_m@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IMXMCI_PEND_DMA_END_m@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _IMXMCI_PEND_DMA_DATA_m@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IMXMCI_PEND_DMA_DATA_m@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _IMXMCI_PEND_CPU_DATA_m@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IMXMCI_PEND_CPU_DATA_m@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
Lloh12:
	adrp	x8, _IMXMCI_INT_MASK_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IMXMCI_INT_MASK_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	str	w0, [x20, #48]
	ldr	x8, [x20, #40]
Lloh15:
	adrp	x9, _MMC_REG_INT_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MMC_REG_INT_MASK@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writew
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	x19, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x8]
	str	w8, [x20, #32]
LBB0_3:
	stp	xzr, xzr, [x20, #8]
	str	xzr, [x20, #24]
	ldr	w0, [x20, #4]
	mov	x1, 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	_mmc_request_done
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IMXMCI_PEND_WAIT_RESP_m,4,2    ; @IMXMCI_PEND_WAIT_RESP_m
	.comm	_IMXMCI_PEND_DMA_END_m,4,2      ; @IMXMCI_PEND_DMA_END_m
	.comm	_IMXMCI_PEND_DMA_DATA_m,4,2     ; @IMXMCI_PEND_DMA_DATA_m
	.comm	_IMXMCI_PEND_CPU_DATA_m,4,2     ; @IMXMCI_PEND_CPU_DATA_m
	.comm	_IMXMCI_INT_MASK_DEFAULT,4,2    ; @IMXMCI_INT_MASK_DEFAULT
	.comm	_MMC_REG_INT_MASK,8,3           ; @MMC_REG_INT_MASK
	.no_dead_strip	_imxmci_finish_request
.subsections_via_symbols
