	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function b43_nphy_adjust_lna_gain_table
LCPI0_0:
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.space	4
	.space	4
LCPI0_1:
	.long	4294966981                      ## 0xfffffec5
	.long	4294967072                      ## 0xffffff20
	.space	4
	.space	4
LCPI0_2:
	.long	40370                           ## 0x9db2
	.long	23242                           ## 0x5aca
	.space	4
	.space	4
LCPI0_3:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_b43_nphy_adjust_lna_gain_table:        ## @b43_nphy_adjust_lna_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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	8(%rdi), %r12
	cmpq	$0, (%r12)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_b43_nphy_stay_in_carrier_search
LBB0_2:
	cmpq	$0, 16(%r12)
	je	LBB0_3
## %bb.4:
	movl	16(%r14), %edi
	callq	_b43_current_band
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = <6,6,u,u>
	jmp	LBB0_7
LBB0_3:
	pxor	%xmm1, %xmm1
	jmp	LBB0_7
LBB0_6:
	movd	(%r14), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$80, %xmm0, %xmm1               ## xmm1 = xmm0[0,0,1,1]
	pmulld	LCPI0_1(%rip), %xmm1
	paddd	LCPI0_2(%rip), %xmm1
	movdqa	%xmm1, %xmm0
	psrad	$13, %xmm0
	psrld	$12, %xmm1
	pand	LCPI0_3(%rip), %xmm1
	paddd	%xmm0, %xmm1
LBB0_7:
	cmpq	$0, 8(%r12)
	movd	%xmm1, %r15d
	movdqa	%xmm1, -80(%rbp)                ## 16-byte Spill
	je	LBB0_9
## %bb.8:
	leal	19(%r15), %eax
	movl	%eax, -64(%rbp)
	leal	25(%r15), %eax
	movl	%eax, -60(%rbp)
	movl	%eax, -56(%rbp)
	jmp	LBB0_10
LBB0_9:
	leal	-2(%r15), %eax
	movl	%eax, -64(%rbp)
	leal	10(%r15), %eax
	movl	%eax, -60(%rbp)
	leal	19(%r15), %eax
	movl	%eax, -56(%rbp)
	leal	25(%r15), %eax
LBB0_10:
	movl	%eax, -52(%rbp)
	xorl	%edi, %edi
	movl	$8, %esi
	callq	_B43_NTAB16
	leaq	-64(%rbp), %rcx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_b43_ntab_write_bulk
	addl	$23, %r15d
	cmpq	$0, 8(%r12)
	movaps	-80(%rbp), %xmm0                ## 16-byte Reload
	extractps	$1, %xmm0, %ebx
	je	LBB0_12
## %bb.11:
	leal	19(%rbx), %eax
	movl	%eax, -64(%rbp)
	leal	25(%rbx), %eax
	movl	%eax, -60(%rbp)
	movl	%eax, -56(%rbp)
	jmp	LBB0_13
LBB0_12:
	leal	-2(%rbx), %eax
	movl	%eax, -64(%rbp)
	leal	10(%rbx), %eax
	movl	%eax, -60(%rbp)
	leal	19(%rbx), %eax
	movl	%eax, -56(%rbp)
	leal	25(%rbx), %eax
LBB0_13:
	movl	%eax, -52(%rbp)
	movl	$1, %edi
	movl	$8, %esi
	callq	_B43_NTAB16
	leaq	-64(%rbp), %rcx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_b43_ntab_write_bulk
	addl	$23, %ebx
	movq	_B43_NPHY_C1_MINMAX_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_NPHY_C1_MINGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	movq	_B43_NPHY_C1_MINGAIN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_b43_phy_maskset
	movq	_B43_NPHY_C2_MINMAX_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_NPHY_C2_MINGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	movq	_B43_NPHY_C2_MINGAIN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_b43_phy_maskset
	cmpq	$0, (%r12)
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_b43_nphy_stay_in_carrier_search
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_B43_NPHY_C1_MINMAX_GAIN,4,2    ## @B43_NPHY_C1_MINMAX_GAIN
	.comm	_B43_NPHY_C1_MINGAIN,4,2        ## @B43_NPHY_C1_MINGAIN
	.comm	_B43_NPHY_C1_MINGAIN_SHIFT,4,2  ## @B43_NPHY_C1_MINGAIN_SHIFT
	.comm	_B43_NPHY_C2_MINMAX_GAIN,4,2    ## @B43_NPHY_C2_MINMAX_GAIN
	.comm	_B43_NPHY_C2_MINGAIN,4,2        ## @B43_NPHY_C2_MINGAIN
	.comm	_B43_NPHY_C2_MINGAIN_SHIFT,4,2  ## @B43_NPHY_C2_MINGAIN_SHIFT
	.no_dead_strip	_b43_nphy_adjust_lna_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 b43_nphy_adjust_lna_gain_table
lCPI0_0:
	.long	4294967294                      ; 0xfffffffe
	.long	10                              ; 0xa
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_b43_nphy_adjust_lna_gain_table:        ; @b43_nphy_adjust_lna_gain_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x20, [x0, #8]
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_b43_nphy_stay_in_carrier_search
LBB0_2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w0, [x19, #16]
	bl	_b43_current_band
Lloh3:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.4:
	mov	w22, #6
	mov	w21, #6
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_6
	b	LBB0_8
LBB0_5:
	mov	w22, #0
	mov	w21, #0
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
LBB0_6:
	add	w9, w22, #19
	add	w8, w22, #25
	stp	w9, w8, [sp, #8]
	str	w8, [sp, #16]
	b	LBB0_9
LBB0_7:
	ldr	w8, [x19]
	mov	w9, #-315
	mov	w10, #40370
	madd	w9, w8, w9, w10
	ubfx	w10, w9, #12, #1
	add	w22, w10, w9, asr #13
	mov	w9, #-224
	mov	w10, #23242
	madd	w8, w8, w9, w10
	ubfx	w9, w8, #12, #1
	add	w21, w9, w8, asr #13
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_6
LBB0_8:
	dup.2s	v0, w22
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	add.2s	v0, v0, v1
	str	d0, [sp, #8]
	add	w8, w22, #19
	str	w8, [sp, #16]
	add	w8, w22, #25
LBB0_9:
	str	w8, [sp, #20]
	mov	w0, #0
	mov	w1, #8
	bl	_B43_NTAB16
	mov	x1, x0
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #4
	bl	_b43_ntab_write_bulk
	add	w22, w22, #23
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
; %bb.10:
	add	w9, w21, #19
	add	w8, w21, #25
	stp	w9, w8, [sp, #8]
	str	w8, [sp, #16]
	b	LBB0_12
LBB0_11:
	dup.2s	v0, w21
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	add.2s	v0, v0, v1
	str	d0, [sp, #8]
	add	w8, w21, #19
	str	w8, [sp, #16]
	add	w8, w21, #25
LBB0_12:
	str	w8, [sp, #20]
	mov	w0, #1
	mov	w1, #8
	bl	_B43_NTAB16
	mov	x1, x0
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #4
	bl	_b43_ntab_write_bulk
	add	w21, w21, #23
Lloh10:
	adrp	x8, _B43_NPHY_C1_MINMAX_GAIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _B43_NPHY_C1_MINMAX_GAIN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _B43_NPHY_C1_MINGAIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _B43_NPHY_C1_MINGAIN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	mvn	w2, w8
Lloh16:
	adrp	x8, _B43_NPHY_C1_MINGAIN_SHIFT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _B43_NPHY_C1_MINGAIN_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	lsl	w3, w22, w8
	mov	x0, x19
	bl	_b43_phy_maskset
Lloh19:
	adrp	x8, _B43_NPHY_C2_MINMAX_GAIN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _B43_NPHY_C2_MINMAX_GAIN@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _B43_NPHY_C2_MINGAIN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _B43_NPHY_C2_MINGAIN@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	mvn	w2, w8
Lloh25:
	adrp	x8, _B43_NPHY_C2_MINGAIN_SHIFT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _B43_NPHY_C2_MINGAIN_SHIFT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	lsl	w3, w21, w8
	mov	x0, x19
	bl	_b43_phy_maskset
	ldr	x8, [x20]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x19
	mov	w1, #0
	bl	_b43_nphy_stay_in_carrier_search
LBB0_14:
	ldr	x8, [sp, #24]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	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
	add	sp, sp, #80
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_B43_NPHY_C1_MINMAX_GAIN,4,2    ; @B43_NPHY_C1_MINMAX_GAIN
	.comm	_B43_NPHY_C1_MINGAIN,4,2        ; @B43_NPHY_C1_MINGAIN
	.comm	_B43_NPHY_C1_MINGAIN_SHIFT,4,2  ; @B43_NPHY_C1_MINGAIN_SHIFT
	.comm	_B43_NPHY_C2_MINMAX_GAIN,4,2    ; @B43_NPHY_C2_MINMAX_GAIN
	.comm	_B43_NPHY_C2_MINGAIN,4,2        ; @B43_NPHY_C2_MINGAIN
	.comm	_B43_NPHY_C2_MINGAIN_SHIFT,4,2  ; @B43_NPHY_C2_MINGAIN_SHIFT
	.no_dead_strip	_b43_nphy_adjust_lna_gain_table
.subsections_via_symbols
