	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_wa_initgains               ## -- Begin function b43_wa_initgains
	.p2align	4, 0x90
_b43_wa_initgains:                      ## @b43_wa_initgains
	.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
	movq	_B43_PHY_LNAHPFCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8185, %edx                     ## imm = 0x1FF9
	callq	_b43_phy_write
	movq	_B43_PHY_LPFGAINCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$65295, %edx                    ## imm = 0xFF0F
	callq	_b43_phy_mask
	cmpl	$2, (%rbx)
	jg	LBB0_2
## %bb.1:
	movq	_B43_OFDMTAB_LPFGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$8127, %ecx                     ## imm = 0x1FBF
	callq	_b43_ofdmtab_write16
LBB0_2:
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	$8127, %edx                     ## imm = 0x1FBF
	callq	_b43_radio_write16
	movq	%rbx, %rdi
	movl	$36, %esi
	movl	$18048, %edx                    ## imm = 0x4680
	callq	_b43_phy_write
	movq	%rbx, %rdi
	movl	$32, %esi
	movl	$3, %edx
	callq	_b43_phy_write
	movq	%rbx, %rdi
	movl	$29, %esi
	movl	$3904, %edx                     ## imm = 0xF40
	callq	_b43_phy_write
	movq	%rbx, %rdi
	movl	$31, %esi
	movl	$7168, %edx                     ## imm = 0x1C00
	callq	_b43_phy_write
	movl	(%rbx), %eax
	cmpl	$3, %eax
	jg	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	$42, %esi
	movl	$255, %edx
	movl	$1024, %ecx                     ## imm = 0x400
	callq	_b43_phy_maskset
	cmpl	$3, (%rbx)
	jge	LBB0_8
	jmp	LBB0_7
LBB0_4:
	cmpl	$5, %eax
	jne	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	movl	$42, %esi
	movl	$255, %edx
	movl	$6656, %ecx                     ## imm = 0x1A00
	callq	_b43_phy_maskset
	movq	%rbx, %rdi
	movl	$204, %esi
	movl	$8481, %edx                     ## imm = 0x2121
	callq	_b43_phy_write
	cmpl	$3, (%rbx)
	jl	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	movl	$186, %esi
	movl	$16085, %edx                    ## imm = 0x3ED5
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_b43_phy_write                  ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_PHY_LNAHPFCTL,4,2          ## @B43_PHY_LNAHPFCTL
	.comm	_B43_PHY_LPFGAINCTL,4,2         ## @B43_PHY_LPFGAINCTL
	.comm	_B43_OFDMTAB_LPFGAIN,4,2        ## @B43_OFDMTAB_LPFGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_wa_initgains               ; -- Begin function b43_wa_initgains
	.p2align	2
_b43_wa_initgains:                      ; @b43_wa_initgains
	.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
Lloh0:
	adrp	x8, _B43_PHY_LNAHPFCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_PHY_LNAHPFCTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #8185
	bl	_b43_phy_write
Lloh3:
	adrp	x8, _B43_PHY_LPFGAINCTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_PHY_LPFGAINCTL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65295
	bl	_b43_phy_mask
	ldr	w8, [x19]
	cmp	w8, #3
	b.ge	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _B43_OFDMTAB_LPFGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43_OFDMTAB_LPFGAIN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #8127
	bl	_b43_ofdmtab_write16
LBB0_2:
	mov	x0, x19
	mov	w1, #2
	mov	w2, #8127
	bl	_b43_radio_write16
	mov	x0, x19
	mov	w1, #36
	mov	w2, #18048
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #32
	mov	w2, #3
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #29
	mov	w2, #3904
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #31
	mov	w2, #7168
	bl	_b43_phy_write
	ldr	w8, [x19]
	cmp	w8, #3
	b.gt	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #42
	mov	w2, #255
	mov	w3, #1024
	bl	_b43_phy_maskset
	b	LBB0_6
LBB0_4:
	cmp	w8, #5
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	mov	w1, #42
	mov	w2, #255
	mov	w3, #6656
	bl	_b43_phy_maskset
	mov	x0, x19
	mov	w1, #204
	mov	w2, #8481
	bl	_b43_phy_write
LBB0_6:
	ldr	w8, [x19]
	cmp	w8, #3
	b.lt	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	w1, #186
	mov	w2, #16085
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b43_phy_write
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_PHY_LNAHPFCTL,4,2          ; @B43_PHY_LNAHPFCTL
	.comm	_B43_PHY_LPFGAINCTL,4,2         ; @B43_PHY_LPFGAINCTL
	.comm	_B43_OFDMTAB_LPFGAIN,4,2        ; @B43_OFDMTAB_LPFGAIN
.subsections_via_symbols
