	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_lcnphy_load_tx_gain_table
_wlc_lcnphy_load_tx_gain_table:         ## @wlc_lcnphy_load_tx_gain_table
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %eax
	movq	_BFL_FEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	movl	$1610612736, %edx               ## imm = 0x60000000
	movl	$268435456, %esi                ## imm = 0x10000000
	cmovel	%edx, %esi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	_LCNPHY_TBL_ID_TXPWRCTL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -56(%rbp)
	movabsq	$4294967328, %rdx               ## imm = 0x100000020
	movq	%rdx, -80(%rbp)
	leaq	-44(%rbp), %rdx
	movq	%rdx, -72(%rbp)
	addq	$16, %rbx
	movl	$15, %r13d
	xorl	%r12d, %r12d
	leaq	-80(%rbp), %r15
	testl	%eax, %ecx
	je	LBB0_3
	.p2align	4, 0x90
LBB0_2:
	movl	-16(%rbx), %r13d
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-12(%rbx), %eax
	movl	-8(%rbx), %ecx
	shll	$16, %eax
	shll	$8, %ecx
	movl	%r13d, %edx
	orl	-48(%rbp), %edx                 ## 4-byte Folded Reload
	orl	%eax, %edx
	orl	%ecx, %edx
	movl	%edx, -44(%rbp)
	movq	_LCNPHY_TX_PWR_CTRL_GAIN_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%r12, %rax
	movq	%rax, -64(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	-4(%rbx), %eax
	movl	(%rbx), %ecx
	shll	$28, %eax
	shll	$20, %ecx
	orl	%eax, %ecx
	movl	%ecx, -44(%rbp)
	movq	_LCNPHY_TX_PWR_CTRL_IQ_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%r12, %rax
	movq	%rax, -64(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	cmpq	$127, %r12
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	movl	(%rax), %eax
	movq	_BFL_FEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addq	$20, %rbx
	incq	%r12
	testl	%eax, %ecx
	jne	LBB0_2
	jmp	LBB0_3
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BFL_FEM,4,2                    ## @BFL_FEM
	.comm	_LCNPHY_TBL_ID_TXPWRCTL,4,2     ## @LCNPHY_TBL_ID_TXPWRCTL
	.comm	_LCNPHY_TX_PWR_CTRL_GAIN_OFFSET,8,3 ## @LCNPHY_TX_PWR_CTRL_GAIN_OFFSET
	.comm	_LCNPHY_TX_PWR_CTRL_IQ_OFFSET,8,3 ## @LCNPHY_TX_PWR_CTRL_IQ_OFFSET
	.no_dead_strip	_wlc_lcnphy_load_tx_gain_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function wlc_lcnphy_load_tx_gain_table
lCPI0_0:
	.long	32                              ; 0x20
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_wlc_lcnphy_load_tx_gain_table:         ; @wlc_lcnphy_load_tx_gain_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x0
	mov	x20, #0
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x21, _BFL_FEM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BFL_FEM@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	mov	w10, #268435456
	mov	w11, #1610612736
	csel	w22, w11, w10, eq
Lloh2:
	adrp	x10, _LCNPHY_TBL_ID_TXPWRCTL@GOTPAGE
Lloh3:
	ldr	x10, [x10, _LCNPHY_TBL_ID_TXPWRCTL@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	str	w10, [sp, #40]
Lloh5:
	adrp	x10, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
	add	x10, sp, #12
	str	x10, [sp, #24]
	add	x23, x1, #8
	mov	w24, #15
Lloh7:
	adrp	x25, _LCNPHY_TX_PWR_CTRL_GAIN_OFFSET@GOTPAGE
Lloh8:
	ldr	x25, [x25, _LCNPHY_TX_PWR_CTRL_GAIN_OFFSET@GOTPAGEOFF]
Lloh9:
	adrp	x26, _LCNPHY_TX_PWR_CTRL_IQ_OFFSET@GOTPAGE
Lloh10:
	ldr	x26, [x26, _LCNPHY_TX_PWR_CTRL_IQ_OFFSET@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	ldur	w24, [x23, #-8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [x23, #-4]
	orr	w10, w24, w22
	orr	w8, w10, w8, lsl #16
	orr	w8, w8, w9, lsl #8
	str	w8, [sp, #12]
	ldr	x8, [x25]
	add	x8, x20, x8
	str	x8, [sp, #32]
	add	x1, sp, #16
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	ldp	w8, w9, [x23, #4]
	lsl	w9, w9, #20
	orr	w8, w9, w8, lsl #28
	str	w8, [sp, #12]
	ldr	x8, [x26]
	add	x8, x20, x8
	str	x8, [sp, #32]
	add	x1, sp, #16
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	cmp	x20, #127
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	ldr	w8, [x8]
	ldr	w9, [x21]
	add	x23, x23, #20
	add	x20, x20, #1
	tst	w9, w8
	b.ne	LBB0_1
	b	LBB0_2
LBB0_4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BFL_FEM,4,2                    ; @BFL_FEM
	.comm	_LCNPHY_TBL_ID_TXPWRCTL,4,2     ; @LCNPHY_TBL_ID_TXPWRCTL
	.comm	_LCNPHY_TX_PWR_CTRL_GAIN_OFFSET,8,3 ; @LCNPHY_TX_PWR_CTRL_GAIN_OFFSET
	.comm	_LCNPHY_TX_PWR_CTRL_IQ_OFFSET,8,3 ; @LCNPHY_TX_PWR_CTRL_IQ_OFFSET
	.no_dead_strip	_wlc_lcnphy_load_tx_gain_table
.subsections_via_symbols
