	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxcmci_data_done
_mxcmci_data_done:                      ## @mxcmci_data_done
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, 24(%rbx)
	je	LBB0_8
## %bb.1:
	movq	16(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_8
## %bb.2:
	cmpq	$0, (%r14)
	jne	LBB0_4
## %bb.3:
	movq	$0, 16(%rbx)
LBB0_4:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_mxcmci_finish_data
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r13d, %r13d
	je	LBB0_5
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_5:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_mxcmci_read_response
	movq	$0, (%rbx)
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mxcmci_start_cmd
	testq	%rax, %rax
	je	LBB0_7
LBB0_9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mxcmci_finish_request          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mxcmci_data_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxcmci_data_done
_mxcmci_data_done:                      ; @mxcmci_data_done
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	add	x22, x0, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_6
; %bb.1:
	ldr	x20, [x19, #16]
	cbz	x20, LBB0_6
; %bb.2:
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
; %bb.3:
	str	xzr, [x19, #16]
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	bl	_mxcmci_finish_data
	mov	x23, x0
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cbz	w23, LBB0_7
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	bl	_mxcmci_read_response
	str	xzr, [x19]
	ldr	x1, [x20]
	cbz	x1, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w2, #0
	bl	_mxcmci_start_cmd
	cbz	x0, LBB0_5
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mxcmci_finish_request
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mxcmci_data_done
.subsections_via_symbols
