	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_attach_lcnphy          ## -- Begin function wlc_phy_attach_lcnphy
	.p2align	4, 0x90
_wlc_phy_attach_lcnphy:                 ## @wlc_phy_attach_lcnphy
	.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	%rdi, %rbx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	movq	%rax, 80(%rbx)
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movq	72(%rbx), %rax
	movq	_BFL_NOPA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_3
## %bb.2:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
LBB0_3:
	movq	56(%rbx), %rax
	movq	(%rax), %rdi
	callq	_bcma_chipco_get_alp_clock
	movl	%eax, 64(%rbx)
	movq	$0, 8(%r15)
	movq	_wlc_phy_init_lcnphy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_wlc_phy_cal_init_lcnphy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_wlc_phy_chanspec_set_lcnphy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_wlc_phy_txpower_recalc_target_lcnphy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_wlc_lcnphy_get_tx_iqcc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_wlc_lcnphy_set_tx_iqcc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_wlc_lcnphy_get_tx_locc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_wlc_lcnphy_get_radio_loft@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_wlc_phy_detach_lcnphy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_wlc_phy_txpwr_srom_read_lcnphy
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	12(%rbx), %edi
	movl	$1, %r14d
	movl	$1, %esi
	callq	_LCNREV_IS
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	cmpl	$3, (%r15)
	setne	%al
	sete	%cl
	movl	%ecx, (%rbx)
	movl	%ecx, 4(%rbx)
	movl	%eax, 8(%rbx)
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_BFL_NOPA,4,2                   ## @BFL_NOPA
	.comm	_wlc_phy_init_lcnphy,4,2        ## @wlc_phy_init_lcnphy
	.comm	_wlc_phy_cal_init_lcnphy,4,2    ## @wlc_phy_cal_init_lcnphy
	.comm	_wlc_phy_chanspec_set_lcnphy,4,2 ## @wlc_phy_chanspec_set_lcnphy
	.comm	_wlc_phy_txpower_recalc_target_lcnphy,4,2 ## @wlc_phy_txpower_recalc_target_lcnphy
	.comm	_wlc_lcnphy_get_tx_iqcc,4,2     ## @wlc_lcnphy_get_tx_iqcc
	.comm	_wlc_lcnphy_set_tx_iqcc,4,2     ## @wlc_lcnphy_set_tx_iqcc
	.comm	_wlc_lcnphy_get_tx_locc,4,2     ## @wlc_lcnphy_get_tx_locc
	.comm	_wlc_lcnphy_get_radio_loft,4,2  ## @wlc_lcnphy_get_radio_loft
	.comm	_wlc_phy_detach_lcnphy,4,2      ## @wlc_phy_detach_lcnphy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_attach_lcnphy          ; -- Begin function wlc_phy_attach_lcnphy
	.p2align	2
_wlc_phy_attach_lcnphy:                 ; @wlc_phy_attach_lcnphy
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	str	x0, [x19, #80]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #72]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BFL_NOPA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BFL_NOPA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
	movi.2s	v0, #1
	str	d0, [x19]
LBB0_3:
	ldr	x8, [x19, #56]
	ldr	x0, [x8]
	bl	_bcma_chipco_get_alp_clock
	str	w0, [x19, #64]
	str	xzr, [x20, #8]
Lloh6:
	adrp	x8, _wlc_phy_init_lcnphy@GOTPAGE
Lloh7:
	ldr	x8, [x8, _wlc_phy_init_lcnphy@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh9:
	adrp	x8, _wlc_phy_cal_init_lcnphy@GOTPAGE
Lloh10:
	ldr	x8, [x8, _wlc_phy_cal_init_lcnphy@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _wlc_phy_chanspec_set_lcnphy@GOTPAGE
Lloh13:
	ldr	x9, [x9, _wlc_phy_chanspec_set_lcnphy@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
Lloh15:
	adrp	x8, _wlc_phy_txpower_recalc_target_lcnphy@GOTPAGE
Lloh16:
	ldr	x8, [x8, _wlc_phy_txpower_recalc_target_lcnphy@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _wlc_lcnphy_get_tx_iqcc@GOTPAGE
Lloh19:
	ldr	x9, [x9, _wlc_lcnphy_get_tx_iqcc@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
Lloh21:
	adrp	x8, _wlc_lcnphy_set_tx_iqcc@GOTPAGE
Lloh22:
	ldr	x8, [x8, _wlc_lcnphy_set_tx_iqcc@GOTPAGEOFF]
Lloh23:
	adrp	x9, _wlc_lcnphy_get_tx_locc@GOTPAGE
Lloh24:
	ldr	x9, [x9, _wlc_lcnphy_get_tx_locc@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh27:
	adrp	x8, _wlc_lcnphy_get_radio_loft@GOTPAGE
Lloh28:
	ldr	x8, [x8, _wlc_lcnphy_get_radio_loft@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _wlc_phy_detach_lcnphy@GOTPAGE
Lloh31:
	ldr	x9, [x9, _wlc_phy_detach_lcnphy@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	mov	x0, x19
	bl	_wlc_phy_txpwr_srom_read_lcnphy
	cbz	w0, LBB0_6
; %bb.4:
	ldr	w0, [x19, #12]
	mov	w21, #1
	mov	w1, #1
	bl	_LCNREV_IS
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w8, [x20]
	cmp	w8, #3
	cset	w8, ne
	cset	w9, eq
	stp	w9, w9, [x19]
	str	w8, [x19, #8]
	mov	w21, #1
	b	LBB0_7
LBB0_6:
	mov	w21, #0
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_BFL_NOPA,4,2                   ; @BFL_NOPA
	.comm	_wlc_phy_init_lcnphy,4,2        ; @wlc_phy_init_lcnphy
	.comm	_wlc_phy_cal_init_lcnphy,4,2    ; @wlc_phy_cal_init_lcnphy
	.comm	_wlc_phy_chanspec_set_lcnphy,4,2 ; @wlc_phy_chanspec_set_lcnphy
	.comm	_wlc_phy_txpower_recalc_target_lcnphy,4,2 ; @wlc_phy_txpower_recalc_target_lcnphy
	.comm	_wlc_lcnphy_get_tx_iqcc,4,2     ; @wlc_lcnphy_get_tx_iqcc
	.comm	_wlc_lcnphy_set_tx_iqcc,4,2     ; @wlc_lcnphy_set_tx_iqcc
	.comm	_wlc_lcnphy_get_tx_locc,4,2     ; @wlc_lcnphy_get_tx_locc
	.comm	_wlc_lcnphy_get_radio_loft,4,2  ; @wlc_lcnphy_get_radio_loft
	.comm	_wlc_phy_detach_lcnphy,4,2      ; @wlc_phy_detach_lcnphy
.subsections_via_symbols
