	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_phy_lcn_load_tx_gain_tab
_b43_phy_lcn_load_tx_gain_tab:          ## @b43_phy_lcn_load_tx_gain_tab
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_B43_BFL_FEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	movl	$1879048192, %eax               ## imm = 0x70000000
	movl	$268435456, %edx                ## imm = 0x10000000
	cmovel	%eax, %edx
	movq	_B43_LCNTAB_TX_GAIN_SIZE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	%rsi, %r12
	addq	$16, %r12
	xorl	%r13d, %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-16(%r12), %eax
	movl	-12(%r12), %ecx
	shll	$16, %eax
	orl	%edx, %eax
	shll	$8, %ecx
	orl	%eax, %ecx
	orl	-8(%r12), %ecx
	movslq	%ecx, %r15
	leal	192(%r13), %esi
	movl	$7, %edi
	callq	_B43_LCNTAB32
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_b43_lcntab_write
	leal	320(%r13), %r14d
	movl	$7, %edi
	movl	%r14d, %esi
	callq	_B43_LCNTAB32
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_b43_lcntab_read
	andl	$1048575, %eax                  ## imm = 0xFFFFF
	movl	-4(%r12), %ecx
	movl	(%r12), %edx
	shll	$28, %ecx
	shll	$20, %edx
	orl	%ecx, %edx
	movq	%rbx, %r15
	movslq	%edx, %rbx
	orq	%rax, %rbx
	movl	$7, %edi
	movl	%r14d, %esi
	callq	_B43_LCNTAB32
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	movq	%r15, %rbx
	callq	_b43_lcntab_write
	movq	_B43_LCNTAB_TX_GAIN_SIZE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	incq	%r13
	addq	$20, %r12
	cmpq	(%rax), %r13
	jb	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_BFL_FEM,4,2                ## @B43_BFL_FEM
	.comm	_B43_LCNTAB_TX_GAIN_SIZE,8,3    ## @B43_LCNTAB_TX_GAIN_SIZE
	.no_dead_strip	_b43_phy_lcn_load_tx_gain_tab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_phy_lcn_load_tx_gain_tab
_b43_phy_lcn_load_tx_gain_tab:          ; @b43_phy_lcn_load_tx_gain_tab
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _B43_BFL_FEM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _B43_BFL_FEM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #268435456
	mov	w9, #1879048192
	csel	w22, w9, w8, eq
Lloh3:
	adrp	x23, _B43_LCNTAB_TX_GAIN_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _B43_LCNTAB_TX_GAIN_SIZE@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x24, #0
	add	x25, x1, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [x25, #-8]
	orr	w8, w22, w8, lsl #16
	orr	w8, w8, w9, lsl #8
	ldr	w9, [x25]
	orr	w8, w8, w9
	sxtw	x20, w8
	add	w1, w24, #192
	mov	w0, #7
	bl	_B43_LCNTAB32
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_b43_lcntab_write
	add	w20, w24, #320
	mov	w0, #7
	mov	x1, x20
	bl	_B43_LCNTAB32
	mov	x1, x0
	mov	x0, x19
	bl	_b43_lcntab_read
	ldp	w8, w9, [x25, #4]
	lsl	w9, w9, #20
	orr	w8, w9, w8, lsl #28
	sxtw	x21, w8
	bfxil	x21, x0, #0, #20
	mov	w0, #7
	mov	x1, x20
	bl	_B43_LCNTAB32
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_b43_lcntab_write
	add	x24, x24, #1
	ldr	x8, [x23]
	add	x25, x25, #20
	cmp	x24, x8
	b.lo	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_BFL_FEM,4,2                ; @B43_BFL_FEM
	.comm	_B43_LCNTAB_TX_GAIN_SIZE,8,3    ; @B43_LCNTAB_TX_GAIN_SIZE
	.no_dead_strip	_b43_phy_lcn_load_tx_gain_tab
.subsections_via_symbols
