	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lbs_queue_cmd
_lbs_queue_cmd:                         ## @lbs_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	%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
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_6
## %bb.2:
	movq	%rdi, %r14
	movq	$0, 16(%rbx)
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	_CMD_802_11_PS_MODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.3:
	movq	(%rbx), %rax
	movq	(%rax), %r15
	movq	_PS_MODE_ACTION_EXIT_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	cmpq	%rax, %r15
	jne	LBB0_9
## %bb.4:
	movq	(%r14), %rax
	movq	_PS_STATE_FULL_POWER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_9:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_10:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	%rax, %r12
	movq	_CMD_802_11_WAKEUP_CONFIRM@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	leaq	8(%rbx), %rdi
	addq	$12, %r14
	cmpq	%r13, %r12
	je	LBB0_13
## %bb.11:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_13
## %bb.12:
	movq	%r14, %rsi
	callq	_list_add_tail
	jmp	LBB0_14
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lbs_deb_host                   ## TAILCALL
LBB0_13:
	movq	%r14, %rsi
	callq	_list_add
LBB0_14:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lbs_deb_host                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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"

	.comm	_CMD_802_11_PS_MODE,8,3         ## @CMD_802_11_PS_MODE
	.comm	_PS_MODE_ACTION_EXIT_PS,4,2     ## @PS_MODE_ACTION_EXIT_PS
	.comm	_PS_STATE_FULL_POWER,8,3        ## @PS_STATE_FULL_POWER
	.comm	_CMD_802_11_WAKEUP_CONFIRM,8,3  ## @CMD_802_11_WAKEUP_CONFIRM
L_.str.2:                               ## @.str.2
	.asciz	"QUEUE_CMD: inserted command 0x%04x into cmdpendingq\n"

	.no_dead_strip	_lbs_queue_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lbs_queue_cmd
_lbs_queue_cmd:                         ; @lbs_queue_cmd
	.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
	cbz	x1, LBB0_5
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1]
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_10
; %bb.2:
	mov	x20, x0
	str	xzr, [x19, #16]
	ldr	w0, [x8]
	bl	_le16_to_cpu
Lloh0:
	adrp	x8, _CMD_802_11_PS_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_802_11_PS_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x19]
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _PS_MODE_ACTION_EXIT_PS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PS_MODE_ACTION_EXIT_PS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	cmp	x21, x0
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _PS_STATE_FULL_POWER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PS_STATE_FULL_POWER@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w24, ne
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_6:
	mov	w24, #0
LBB0_7:
	mov	x22, x19
	ldr	x8, [x22], #8
	ldr	w0, [x8]
	bl	_le16_to_cpu
	mov	x23, x0
Lloh11:
	adrp	x8, _CMD_802_11_WAKEUP_CONFIRM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMD_802_11_WAKEUP_CONFIRM@GOTPAGEOFF]
Lloh13:
	ldr	x25, [x8]
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	add	x1, x20, #12
	cmp	x23, x25
	b.eq	LBB0_12
; %bb.8:
	tbnz	w24, #0, LBB0_12
; %bb.9:
	mov	x0, x22
	bl	_list_add_tail
	b	LBB0_13
LBB0_10:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	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	_lbs_deb_host
LBB0_12:
	mov	x0, x22
	bl	_list_add
LBB0_13:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	str	x0, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_lbs_deb_host
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.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"

	.comm	_CMD_802_11_PS_MODE,8,3         ; @CMD_802_11_PS_MODE
	.comm	_PS_MODE_ACTION_EXIT_PS,4,2     ; @PS_MODE_ACTION_EXIT_PS
	.comm	_PS_STATE_FULL_POWER,8,3        ; @PS_STATE_FULL_POWER
	.comm	_CMD_802_11_WAKEUP_CONFIRM,8,3  ; @CMD_802_11_WAKEUP_CONFIRM
l_.str.2:                               ; @.str.2
	.asciz	"QUEUE_CMD: inserted command 0x%04x into cmdpendingq\n"

	.no_dead_strip	_lbs_queue_cmd
.subsections_via_symbols
