	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lbs_submit_command
_lbs_submit_command:                    ## @lbs_submit_command
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r15
	leaq	44(%rdi), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	56(%rbx), %edi
	incl	%edi
	movl	%edi, 56(%rbx)
	callq	_cpu_to_le16
	movl	%eax, (%r15)
	movq	%r14, 48(%rbx)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	8(%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, %r13
	movl	4(%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, %r12
	movq	_CMD_802_11_SCAN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_3
## %bb.1:
	movq	_CMD_802_11_ASSOCIATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_2
LBB0_3:
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %eax
	jmp	LBB0_4
LBB0_2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rax,2), %eax
LBB0_4:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	callq	_le16_to_cpu
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	movq	%r13, %rcx
	callq	_lbs_deb_cmd
	movq	_LBS_DEB_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rcx
	callq	_lbs_deb_hex
	movq	_MVMS_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	*(%rbx)
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	movl	40(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_info
	movq	_DNLD_RES_RECEIVED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_lbs_complete_command
LBB0_6:
	movq	_CMD_802_11_DEEP_SLEEP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_10
## %bb.7:
	cmpq	$0, 32(%rbx)
	je	LBB0_9
## %bb.8:
	movl	$1, 8(%rbx)
	movq	$0, 24(%rbx)
LBB0_9:
	movl	$1, 12(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lbs_complete_command           ## TAILCALL
LBB0_10:
	addq	$16, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movslq	-48(%rbp), %rsi                 ## 4-byte Folded Reload
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.comm	_CMD_802_11_SCAN,8,3            ## @CMD_802_11_SCAN
	.comm	_CMD_802_11_ASSOCIATE,8,3       ## @CMD_802_11_ASSOCIATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DNLD_CMD: command 0x%04x, seq %d, size %d\n"

	.comm	_LBS_DEB_CMD,4,2                ## @LBS_DEB_CMD
L_.str.1:                               ## @.str.1
	.asciz	"DNLD_CMD"

	.comm	_MVMS_CMD,4,2                   ## @MVMS_CMD
L_.str.2:                               ## @.str.2
	.asciz	"DNLD_CMD: hw_host_to_card failed: %d\n"

	.comm	_DNLD_RES_RECEIVED,8,3          ## @DNLD_RES_RECEIVED
	.comm	_CMD_802_11_DEEP_SLEEP,8,3      ## @CMD_802_11_DEEP_SLEEP
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_lbs_submit_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lbs_submit_command
_lbs_submit_command:                    ; @lbs_submit_command
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _HZ@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HZ@GOTPAGEOFF]
	ldr	w25, [x24]
	ldr	x21, [x1]
	add	x22, x0, #44
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x20, #56]
	add	w0, w8, #1
	str	w0, [x20, #56]
	bl	_cpu_to_le16
	str	w0, [x21]
	str	x19, [x20, #48]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	w0, [x21, #8]
	bl	_le16_to_cpu
	mov	x23, x0
	ldr	w0, [x21, #4]
	bl	_le16_to_cpu
	mov	x22, x0
Lloh2:
	adrp	x8, _CMD_802_11_SCAN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_802_11_SCAN@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _CMD_802_11_ASSOCIATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMD_802_11_ASSOCIATE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_3
LBB0_2:
	ldr	w8, [x24]
	add	w24, w8, w8, lsl #2
	b	LBB0_4
LBB0_3:
	add	w24, w25, w25, lsl #1
LBB0_4:
	ldr	w0, [x21]
	bl	_le16_to_cpu
	mov	x2, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x3, x23
	bl	_lbs_deb_cmd
Lloh10:
	adrp	x8, _LBS_DEB_CMD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LBS_DEB_CMD@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x23
	bl	_lbs_deb_hex
	ldr	x8, [x20]
Lloh15:
	adrp	x9, _MVMS_CMD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MVMS_CMD@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
	mov	x0, x20
	mov	x2, x21
	mov	x3, x23
	blr	x8
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
	ldr	w0, [x20, #40]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_netdev_info
Lloh20:
	adrp	x8, _DNLD_RES_RECEIVED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DNLD_RES_RECEIVED@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x20, #24]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_lbs_complete_command
LBB0_6:
Lloh23:
	adrp	x8, _CMD_802_11_DEEP_SLEEP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CMD_802_11_DEEP_SLEEP@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_10
; %bb.7:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x20, #8]
	str	xzr, [x20, #24]
LBB0_9:
	mov	w8, #1
	str	w8, [x20, #12]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_lbs_complete_command
LBB0_10:
	add	x0, x20, #16
Lloh26:
	adrp	x8, _jiffies@GOTPAGE
Lloh27:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	add	x1, x8, w24, sxtw
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mod_timer
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_CMD_802_11_SCAN,8,3            ; @CMD_802_11_SCAN
	.comm	_CMD_802_11_ASSOCIATE,8,3       ; @CMD_802_11_ASSOCIATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DNLD_CMD: command 0x%04x, seq %d, size %d\n"

	.comm	_LBS_DEB_CMD,4,2                ; @LBS_DEB_CMD
l_.str.1:                               ; @.str.1
	.asciz	"DNLD_CMD"

	.comm	_MVMS_CMD,4,2                   ; @MVMS_CMD
l_.str.2:                               ; @.str.2
	.asciz	"DNLD_CMD: hw_host_to_card failed: %d\n"

	.comm	_DNLD_RES_RECEIVED,8,3          ; @DNLD_RES_RECEIVED
	.comm	_CMD_802_11_DEEP_SLEEP,8,3      ; @CMD_802_11_DEEP_SLEEP
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_lbs_submit_command
.subsections_via_symbols
