	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function lbs_init_adapter
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_lbs_init_adapter:                      ## @lbs_init_adapter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	144(%rdi), %edi
	callq	_eth_broadcast_addr
	movq	_LBS_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 140(%rbx)
	movq	_DEFAULT_AD_HOC_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 136(%rbx)
	movq	_CMD_ACT_MAC_RX_ON@GOTPCREL(%rip), %rax
	movq	_CMD_ACT_MAC_TX_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	$1, 4(%rbx)
	movq	_LBS802_11POWERMODECAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 132(%rbx)
	movq	_PS_STATE_FULL_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%rbx)
	leaq	92(%rbx), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 112(%rbx)
	movups	%xmm0, 96(%rbx)
	callq	_init_waitqueue_head
	leaq	88(%rbx), %rdi
	callq	_init_waitqueue_head
	movl	$1, 8(%rbx)
	leaq	64(%rbx), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%rbx)
	callq	_init_waitqueue_head
	leaq	60(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	56(%rbx), %rdi
	callq	_mutex_init
	leaq	52(%rbx), %rdi
	movq	_lbs_cmd_timeout_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_timer_setup
	leaq	48(%rbx), %rdi
	movq	_lbs_tx_lockup_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	leaq	44(%rbx), %rdi
	movq	_auto_deepsleep_timer_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	leaq	40(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	36(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%rbx), %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	callq	_lbs_allocate_cmd_buffer
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_4
LBB0_2:
	movq	$0, 24(%rbx)
	movq	16(%rbx), %rax
	addq	$12, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_kfifo_alloc
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movl	%ebx, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LBS_DISCONNECTED,4,2           ## @LBS_DISCONNECTED
	.comm	_DEFAULT_AD_HOC_CHANNEL,4,2     ## @DEFAULT_AD_HOC_CHANNEL
	.comm	_CMD_ACT_MAC_RX_ON,4,2          ## @CMD_ACT_MAC_RX_ON
	.comm	_CMD_ACT_MAC_TX_ON,4,2          ## @CMD_ACT_MAC_TX_ON
	.comm	_LBS802_11POWERMODECAM,4,2      ## @LBS802_11POWERMODECAM
	.comm	_PS_STATE_FULL_POWER,4,2        ## @PS_STATE_FULL_POWER
	.comm	_lbs_cmd_timeout_handler,4,2    ## @lbs_cmd_timeout_handler
	.comm	_lbs_tx_lockup_handler,4,2      ## @lbs_tx_lockup_handler
	.comm	_auto_deepsleep_timer_fn,4,2    ## @auto_deepsleep_timer_fn
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory allocating command buffers\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Out of memory allocating event FIFO buffer\n"

	.no_dead_strip	_lbs_init_adapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lbs_init_adapter
_lbs_init_adapter:                      ; @lbs_init_adapter
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #144]
	bl	_eth_broadcast_addr
Lloh0:
	adrp	x8, _LBS_DISCONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LBS_DISCONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DEFAULT_AD_HOC_CHANNEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEFAULT_AD_HOC_CHANNEL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #136]
Lloh6:
	adrp	x8, _CMD_ACT_MAC_RX_ON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMD_ACT_MAC_RX_ON@GOTPAGEOFF]
Lloh8:
	adrp	x9, _CMD_ACT_MAC_TX_ON@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CMD_ACT_MAC_TX_ON@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	w20, #1
	stp	w8, w20, [x19]
Lloh12:
	adrp	x8, _LBS802_11POWERMODECAM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LBS802_11POWERMODECAM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _PS_STATE_FULL_POWER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PS_STATE_FULL_POWER@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #128]
	add	x0, x19, #92
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #96]
	bl	_init_waitqueue_head
	add	x0, x19, #88
	bl	_init_waitqueue_head
	str	w20, [x19, #8]
	add	x0, x19, #64
	stp	xzr, xzr, [x19, #72]
	bl	_init_waitqueue_head
	add	x0, x19, #60
	bl	_init_waitqueue_head
	add	x0, x19, #56
	bl	_mutex_init
	add	x0, x19, #52
Lloh18:
	adrp	x8, _lbs_cmd_timeout_handler@GOTPAGE
Lloh19:
	ldr	x8, [x8, _lbs_cmd_timeout_handler@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	add	x0, x19, #48
Lloh21:
	adrp	x8, _lbs_tx_lockup_handler@GOTPAGE
Lloh22:
	ldr	x8, [x8, _lbs_tx_lockup_handler@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	add	x0, x19, #44
Lloh24:
	adrp	x8, _auto_deepsleep_timer_fn@GOTPAGE
Lloh25:
	ldr	x8, [x8, _auto_deepsleep_timer_fn@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	add	x0, x19, #40
	bl	_INIT_LIST_HEAD
	add	x0, x19, #36
	bl	_INIT_LIST_HEAD
	add	x0, x19, #32
	bl	_spin_lock_init
	mov	x0, x19
	bl	_lbs_allocate_cmd_buffer
	cbz	x0, LBB0_2
; %bb.1:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_4
LBB0_2:
	str	xzr, [x19, #24]
	ldr	x8, [x19, #16]
	add	x0, x19, #12
	stp	xzr, xzr, [x8]
Lloh32:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	w1, #64
	bl	_kfifo_alloc
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh35:
	adrp	x0, l_.str.1@PAGE
Lloh36:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_LBS_DISCONNECTED,4,2           ; @LBS_DISCONNECTED
	.comm	_DEFAULT_AD_HOC_CHANNEL,4,2     ; @DEFAULT_AD_HOC_CHANNEL
	.comm	_CMD_ACT_MAC_RX_ON,4,2          ; @CMD_ACT_MAC_RX_ON
	.comm	_CMD_ACT_MAC_TX_ON,4,2          ; @CMD_ACT_MAC_TX_ON
	.comm	_LBS802_11POWERMODECAM,4,2      ; @LBS802_11POWERMODECAM
	.comm	_PS_STATE_FULL_POWER,4,2        ; @PS_STATE_FULL_POWER
	.comm	_lbs_cmd_timeout_handler,4,2    ; @lbs_cmd_timeout_handler
	.comm	_lbs_tx_lockup_handler,4,2      ; @lbs_tx_lockup_handler
	.comm	_auto_deepsleep_timer_fn,4,2    ; @auto_deepsleep_timer_fn
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory allocating command buffers\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Out of memory allocating event FIFO buffer\n"

	.no_dead_strip	_lbs_init_adapter
.subsections_via_symbols
