	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __lbtf_cmd_async
___lbtf_cmd_async:                      ## @__lbtf_cmd_async
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_LBTF_DEB_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_lbtf_deb_enter
	cmpq	$0, 8(%r14)
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_lbtf_deb_host
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_2:
	subl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	jmp	LBB0_6
LBB0_3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_lbtf_get_cmd_ctrl_node
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%r12, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	24(%rbx), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_memcpy
	incl	(%r14)
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	24(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movq	24(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movl	(%r14), %edi
	callq	_cpu_to_le16
	movq	24(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	$0, (%rcx)
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_lbtf_deb_host
	movq	$0, 16(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_lbtf_queue_cmd
	movq	_lbtf_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %r14
	movq	%r14, %rsi
	callq	_queue_work
LBB0_6:
	movq	_LBTF_DEB_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	callq	_lbtf_deb_leave_args
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_lbtf_deb_host
	movq	_lbtf_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %r14
	movq	%r14, %rsi
	callq	_queue_work
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_LBTF_DEB_HOST,4,2              ## @LBTF_DEB_HOST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PREP_CMD: card removed\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"PREP_CMD: cmdnode is NULL\n"

	.comm	_lbtf_wq,4,2                    ## @lbtf_wq
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
L_.str.2:                               ## @.str.2
	.asciz	"PREP_CMD: command 0x%04x\n"

L_.str.3:                               ## @.str.3
	.asciz	"ret %p"

	.no_dead_strip	___lbtf_cmd_async
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __lbtf_cmd_async
___lbtf_cmd_async:                      ; @__lbtf_cmd_async
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x5
	mov	x25, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x26, _LBTF_DEB_HOST@GOTPAGE
Lloh1:
	ldr	x26, [x26, _LBTF_DEB_HOST@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_lbtf_deb_enter
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lbtf_deb_host
Lloh4:
	adrp	x8, _ENOENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x19, x0
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_lbtf_get_cmd_ctrl_node
	cbz	x0, LBB0_6
; %bb.4:
	mov	x19, x0
	stp	x25, x24, [x0]
	ldr	x0, [x0, #24]
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	x0, x21
	bl	_cpu_to_le16
	ldr	x8, [x19, #24]
	str	x0, [x8, #24]
	mov	x0, x22
	bl	_cpu_to_le16
	ldr	x8, [x19, #24]
	str	x0, [x8, #16]
	mov	x22, x20
	ldr	w0, [x22], #4
	bl	_cpu_to_le16
	ldr	x8, [x19, #24]
	stp	xzr, x0, [x8]
	str	x21, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_lbtf_deb_host
	str	xzr, [x19, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_lbtf_queue_cmd
Lloh8:
	adrp	x8, _lbtf_wq@GOTPAGE
Lloh9:
	ldr	x8, [x8, _lbtf_wq@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_queue_work
LBB0_5:
	ldr	w0, [x26]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_lbtf_deb_leave_args
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_lbtf_deb_host
Lloh15:
	adrp	x8, _lbtf_wq@GOTPAGE
Lloh16:
	ldr	x8, [x8, _lbtf_wq@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x1, x20, #4
	bl	_queue_work
Lloh18:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LBTF_DEB_HOST,4,2              ; @LBTF_DEB_HOST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PREP_CMD: card removed\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"PREP_CMD: cmdnode is NULL\n"

	.comm	_lbtf_wq,4,2                    ; @lbtf_wq
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
l_.str.2:                               ; @.str.2
	.asciz	"PREP_CMD: command 0x%04x\n"

l_.str.3:                               ; @.str.3
	.asciz	"ret %p"

	.no_dead_strip	___lbtf_cmd_async
.subsections_via_symbols
