	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sdhci_finish_mrq
___sdhci_finish_mrq:                    ## @__sdhci_finish_mrq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	32(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	%rbx, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	$0, 32(%r14)
LBB0_3:
	movq	24(%r14), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	cmpq	%rbx, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	$0, 24(%r14)
LBB0_6:
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	cmpq	%rbx, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	$0, 16(%r14)
LBB0_9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sdhci_needs_reset
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	$1, (%r14)
LBB0_11:
	movq	_SDHCI_MAX_MRQS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.17:
	movq	8(%r14), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rcx,%rdx,8)
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_18
## %bb.14:
	movq	8(%r14), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rcx,8)
	je	LBB0_16
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_15
## %bb.21:
	movl	%eax, %ecx
	jmp	LBB0_22
LBB0_12:
	xorl	%ecx, %ecx
	jmp	LBB0_22
LBB0_19:
	movl	$1, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
LBB0_16:
	movq	%rbx, (%rdx,%rcx,8)
LBB0_22:
	xorl	%edi, %edi
	cmpl	%eax, %ecx
	setge	%dil
	callq	_WARN_ON
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sdhci_del_timer
	movq	%r14, %rdi
	callq	_sdhci_has_requests
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_24:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sdhci_led_deactivate           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDHCI_MAX_MRQS,4,2             ## @SDHCI_MAX_MRQS
	.no_dead_strip	___sdhci_finish_mrq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __sdhci_finish_mrq
___sdhci_finish_mrq:                    ; @__sdhci_finish_mrq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_3
; %bb.2:
	str	xzr, [x19, #32]
LBB0_3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_6
; %bb.5:
	str	xzr, [x19, #24]
LBB0_6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_9
; %bb.8:
	str	xzr, [x19, #16]
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_sdhci_needs_reset
	cbz	x0, LBB0_11
; %bb.10:
	mov	w8, #1
	str	w8, [x19]
LBB0_11:
Lloh0:
	adrp	x8, _SDHCI_MAX_MRQS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCI_MAX_MRQS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.12:
	ldr	x9, [x19, #8]
	mov	x10, x8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cmp	x11, x20
	b.eq	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x9, x9, #8
	subs	x10, x10, #1
	b.ne	LBB0_13
; %bb.15:
	mov	x9, #0
	ldr	x10, [x19, #8]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cbz	x11, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.18:
	mov	x9, x8
	b	LBB0_22
LBB0_19:
	mov	w9, #0
	b	LBB0_22
LBB0_20:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WARN_ON
LBB0_21:
	str	x20, [x10, x9, lsl #3]
LBB0_22:
	cmp	w9, w8
	cset	w0, ge
	bl	_WARN_ON
	mov	x0, x19
	mov	x1, x20
	bl	_sdhci_del_timer
	mov	x0, x19
	bl	_sdhci_has_requests
	cbz	w0, LBB0_24
; %bb.23:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_24:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sdhci_led_deactivate
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SDHCI_MAX_MRQS,4,2             ; @SDHCI_MAX_MRQS
	.no_dead_strip	___sdhci_finish_mrq
.subsections_via_symbols
