	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lbtf_queue_cmd
_lbtf_queue_cmd:                        ## @lbtf_queue_cmd
	.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, %rbx
	movq	%rdi, %r14
	movq	_LBTF_DEB_HOST@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_lbtf_deb_enter
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	movq	(%rbx), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_4
## %bb.5:
	movq	$0, 16(%rbx)
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	leaq	8(%rbx), %rdi
	leaq	4(%r14), %rsi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_lbtf_deb_host
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_lbtf_deb_host
LBB0_6:
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lbtf_deb_leave                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LBTF_DEB_HOST,4,2              ## @LBTF_DEB_HOST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QUEUE_CMD: cmdnode is NULL\n"

L_.str.1:                               ## @.str.1
	.asciz	"DNLD_CMD: cmd size is zero\n"

L_.str.2:                               ## @.str.2
	.asciz	"QUEUE_CMD: inserted command 0x%04x into cmdpendingq\n"

	.no_dead_strip	_lbtf_queue_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lbtf_queue_cmd
_lbtf_queue_cmd:                        ; @lbtf_queue_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _LBTF_DEB_HOST@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LBTF_DEB_HOST@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_lbtf_deb_enter
	cbz	x19, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_4
; %bb.2:
	str	xzr, [x19, #16]
	mov	x0, x20
	bl	_spin_lock_irqsave
	add	x0, x19, #8
	add	x1, x20, #4
	bl	_list_add_tail
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_lbtf_deb_host
	ldr	w0, [x21]
	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
	add	sp, sp, #64
	b	_lbtf_deb_leave
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LBTF_DEB_HOST,4,2              ; @LBTF_DEB_HOST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QUEUE_CMD: cmdnode is NULL\n"

l_.str.1:                               ; @.str.1
	.asciz	"DNLD_CMD: cmd size is zero\n"

l_.str.2:                               ; @.str.2
	.asciz	"QUEUE_CMD: inserted command 0x%04x into cmdpendingq\n"

	.no_dead_strip	_lbtf_queue_cmd
.subsections_via_symbols
