	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lbs_cmd_async                ## -- Begin function __lbs_cmd_async
	.p2align	4, 0x90
___lbs_cmd_async:                       ## @__lbs_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_lbs_deb_host
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	movq	%r9, %r14
	movq	%r8, %r12
	movq	%rdx, %r13
	movq	%rdi, %rbx
	cmpl	$0, 16(%rdi)
	je	LBB0_3
LBB0_6:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_lbs_get_free_cmd_node
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	movq	%r12, (%rax)
	movq	%r14, 8(%rax)
	movq	24(%rax), %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_memcpy
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movq	24(%r15), %rcx
	movq	%rax, 16(%rcx)
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movq	24(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	$0, (%rcx)
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_lbs_deb_host
	movq	$0, 16(%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_lbs_queue_cmd
	movq	%rbx, %rdi
	callq	_wake_up
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_lbs_deb_cmd
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_lbs_deb_host
	movq	%rbx, %rdi
	callq	_wake_up
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %edi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.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	"command not allowed in deep sleep\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"PREP_CMD: cmdnode is NULL\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___lbs_cmd_async                ; -- Begin function __lbs_cmd_async
	.p2align	2
___lbs_cmd_async:                       ; @__lbs_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
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lbs_deb_host
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
LBB0_3:
	mov	x24, x5
	mov	x25, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_lbs_get_free_cmd_node
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
	stp	x25, x24, [x0]
	ldr	x0, [x0, #24]
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
	mov	x0, x20
	bl	_cpu_to_le16
	ldr	x8, [x21, #24]
	str	x0, [x8, #16]
	mov	x0, x22
	bl	_cpu_to_le16
	ldr	x8, [x21, #24]
	stp	xzr, x0, [x8]
	str	x20, [sp]
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_lbs_deb_host
	str	xzr, [x21, #16]
	mov	x0, x19
	mov	x1, x21
	bl	_lbs_queue_cmd
	mov	x0, x19
	bl	_wake_up
	mov	x0, x21
	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:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.7:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_lbs_deb_cmd
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_2
LBB0_8:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_lbs_deb_host
	mov	x0, x19
	bl	_wake_up
Lloh12:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.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	"command not allowed in deep sleep\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"PREP_CMD: cmdnode is NULL\n"

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

.subsections_via_symbols
