	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_lcnphy_glacial_timer_based_cal
_wlc_lcnphy_glacial_timer_based_cal:    ## @wlc_lcnphy_glacial_timer_based_cal
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_wlc_lcnphy_get_tx_pwr_ctrl
	movl	%eax, %r14d
	movq	24(%rbx), %r12
	movl	20(%rbx), %r15d
	movq	_maccontrol@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	%eax, %r15d
	movq	_MCTL_EN_MAC@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_wlapi_suspend_mac_and_wait
LBB0_2:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_wlc_lcnphy_deaf_mode
	movq	8(%rbx), %rax
	movl	4(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	$0, (%rbx)
	movl	(%r12), %r12d
	movq	%rbx, %rdi
	callq	_wlc_lcnphy_txpwrtbl_iqlo_cal
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_wlc_lcnphy_set_tx_pwr_by_index
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_wlc_lcnphy_set_tx_pwr_ctrl
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wlc_lcnphy_deaf_mode
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.4:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wlapi_enable_mac               ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_maccontrol,4,2                 ## @maccontrol
	.comm	_MCTL_EN_MAC,4,2                ## @MCTL_EN_MAC
	.no_dead_strip	_wlc_lcnphy_glacial_timer_based_cal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_lcnphy_glacial_timer_based_cal
_wlc_lcnphy_glacial_timer_based_cal:    ; @wlc_lcnphy_glacial_timer_based_cal
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_wlc_lcnphy_get_tx_pwr_ctrl
	mov	x20, x0
	ldr	x23, [x19, #24]
	ldr	w21, [x19, #20]
Lloh0:
	adrp	x8, _maccontrol@GOTPAGE
Lloh1:
	ldr	x8, [x8, _maccontrol@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x21
	bl	_bcma_read32
Lloh3:
	adrp	x8, _MCTL_EN_MAC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCTL_EN_MAC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ands	w22, w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_wlapi_suspend_mac_and_wait
LBB0_2:
	mov	x0, x19
	mov	w1, #1
	bl	_wlc_lcnphy_deaf_mode
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #4]
	str	w8, [x19, #16]
	str	wzr, [x19]
	ldr	w21, [x23]
	mov	x0, x19
	bl	_wlc_lcnphy_txpwrtbl_iqlo_cal
	mov	x0, x19
	mov	x1, x21
	bl	_wlc_lcnphy_set_tx_pwr_by_index
	mov	x0, x19
	mov	x1, x20
	bl	_wlc_lcnphy_set_tx_pwr_ctrl
	mov	x0, x19
	mov	w1, #0
	bl	_wlc_lcnphy_deaf_mode
	cbz	w22, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wlapi_enable_mac
LBB0_4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_maccontrol,4,2                 ; @maccontrol
	.comm	_MCTL_EN_MAC,4,2                ; @MCTL_EN_MAC
	.no_dead_strip	_wlc_lcnphy_glacial_timer_based_cal
.subsections_via_symbols
