	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_phy_precal_txgain_nphy
_wlc_phy_precal_txgain_nphy:            ## @wlc_phy_precal_txgain_nphy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 32(%rdi)
	je	LBB0_5
## %bb.1:
	movl	20(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	16(%rbx), %eax
	cmpl	$6, %eax
	ja	LBB0_10
## %bb.3:
	movl	$88, %ecx
	btl	%eax, %ecx
	jae	LBB0_10
## %bb.4:
	movq	(%rbx), %rax
	movabsq	$42949672970, %rcx              ## imm = 0xA0000000A
	movq	%rcx, (%rax)
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	$10, %edx
	jmp	LBB0_11
LBB0_5:
	movq	%rbx, %rdi
	movl	$10, %esi
LBB0_6:
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wlc_phy_cal_txgainctrl_nphy    ## TAILCALL
LBB0_7:
	movl	20(%rbx), %edi
	movl	$5, %esi
	callq	_NREV_LT
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	%rbx, %rdi
	movl	$11, %esi
	xorl	%edx, %edx
	callq	_wlc_phy_cal_txgainctrl_nphy
	movq	24(%rbx), %rax
	cmpl	$3, (%rax)
	jne	LBB0_18
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_10:
	movq	(%rbx), %rax
	movq	$0, (%rax)
	movq	%rbx, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
LBB0_11:
	xorl	%ecx, %ecx
LBB0_12:
	callq	_wlc_phy_txpwr_index_nphy
LBB0_13:
	leaq	8(%rbx), %r9
	movq	%rbx, %rdi
	movl	$15, %esi
	movl	$1, %edx
	movl	$87, %ecx
	movl	$16, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wlc_phy_table_read_nphy        ## TAILCALL
LBB0_14:
	movl	20(%rbx), %edi
	movl	$5, %esi
	callq	_NREV_IS
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	movq	%rbx, %rdi
	callq	_PHY_IPA
	testq	%rax, %rax
	je	LBB0_23
## %bb.16:
	movl	12(%rbx), %edi
	callq	_CHSPEC_IS2G
	testq	%rax, %rax
	jne	LBB0_22
## %bb.17:
	movq	(%rbx), %rax
	movabsq	$343597383760, %rcx             ## imm = 0x5000000050
	movq	%rcx, (%rax)
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	$80, %edx
	jmp	LBB0_11
LBB0_18:
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movl	%edx, 4(%rax)
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	$1, %ecx
	jmp	LBB0_12
LBB0_19:
	movl	20(%rbx), %edi
	movl	$6, %esi
	callq	_NREV_IS
	testq	%rax, %rax
	je	LBB0_9
## %bb.20:
	movq	%rbx, %rdi
	callq	_PHY_IPA
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:
	movl	12(%rbx), %edi
	callq	_CHSPEC_IS2G
	testq	%rax, %rax
	je	LBB0_24
LBB0_22:
	movq	%rbx, %rdi
	movl	$12, %esi
	jmp	LBB0_6
LBB0_23:
	movq	%rbx, %rdi
	callq	_wlc_phy_internal_cal_txgain_nphy
	jmp	LBB0_13
LBB0_24:
	movq	%rbx, %rdi
	movl	$14, %esi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wlc_phy_precal_txgain_nphy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_phy_precal_txgain_nphy
_wlc_phy_precal_txgain_nphy:            ; @wlc_phy_precal_txgain_nphy
	.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	x8, [x0, #32]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w0, [x19, #20]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x19, #16]
	cmp	w8, #6
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #88
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.eq	LBB0_9
; %bb.3:
	ldr	x8, [x19]
	movi.2s	v0, #10
	str	d0, [x8]
	mov	x0, x19
	mov	w1, #3
	mov	w2, #10
	b	LBB0_10
LBB0_4:
	mov	x0, x19
	mov	w1, #10
LBB0_5:
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wlc_phy_cal_txgainctrl_nphy
LBB0_6:
	ldr	w0, [x19, #20]
	mov	w1, #5
	bl	_NREV_LT
	cbz	x0, LBB0_13
; %bb.7:
	mov	x0, x19
	mov	w1, #11
	mov	w2, #0
	bl	_wlc_phy_cal_txgainctrl_nphy
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	cmp	w8, #3
	b.ne	LBB0_17
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x8, [x19]
	str	xzr, [x8]
	mov	x0, x19
	mov	w1, #3
	mov	w2, #0
LBB0_10:
	mov	w3, #0
LBB0_11:
	bl	_wlc_phy_txpwr_index_nphy
LBB0_12:
	add	x5, x19, #8
	mov	x0, x19
	mov	w1, #15
	mov	w2, #1
	mov	w3, #87
	mov	w4, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wlc_phy_table_read_nphy
LBB0_13:
	ldr	w0, [x19, #20]
	mov	w1, #5
	bl	_NREV_IS
	cbz	x0, LBB0_18
; %bb.14:
	mov	x0, x19
	bl	_PHY_IPA
	cbz	x0, LBB0_22
; %bb.15:
	ldr	w0, [x19, #12]
	bl	_CHSPEC_IS2G
	cbnz	x0, LBB0_21
; %bb.16:
	ldr	x8, [x19]
	movi.2s	v0, #80
	str	d0, [x8]
	mov	x0, x19
	mov	w1, #3
	mov	w2, #80
	b	LBB0_10
LBB0_17:
	ldr	x8, [x19]
	ldr	w2, [x8]
	str	w2, [x8, #4]
	mov	x0, x19
	mov	w1, #3
	mov	w3, #1
	b	LBB0_11
LBB0_18:
	ldr	w0, [x19, #20]
	mov	w1, #6
	bl	_NREV_IS
	cbz	x0, LBB0_8
; %bb.19:
	mov	x0, x19
	bl	_PHY_IPA
	cbz	x0, LBB0_22
; %bb.20:
	ldr	w0, [x19, #12]
	bl	_CHSPEC_IS2G
	cbz	x0, LBB0_23
LBB0_21:
	mov	x0, x19
	mov	w1, #12
	b	LBB0_5
LBB0_22:
	mov	x0, x19
	bl	_wlc_phy_internal_cal_txgain_nphy
	b	LBB0_12
LBB0_23:
	mov	x0, x19
	mov	w1, #14
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wlc_phy_precal_txgain_nphy
.subsections_via_symbols
