	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_nphy_tx_pwr_ctrl_coef_setup
_b43_nphy_tx_pwr_ctrl_coef_setup:       ## @b43_nphy_tx_pwr_ctrl_coef_setup
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_b43_nphy_stay_in_carrier_search
LBB0_2:
	movl	$15, %edi
	movl	$80, %esi
	callq	_B43_NTAB16
	leaq	-80(%rbp), %rcx
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$7, %edx
	callq	_b43_ntab_read_bulk
	movl	-80(%rbp), %r14d
	movl	%r14d, %ebx
	shll	$10, %ebx
	movl	$1023, %r12d                    ## imm = 0x3FF
	andl	-76(%rbp), %r12d
	movq	_B43_NPHY_TABLE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$26944, %edx                    ## imm = 0x6940
	callq	_b43_phy_write
	shrl	$6, %r14d
	andl	$15, %r14d
	movzwl	%bx, %r15d
	orl	%r12d, %r15d
	movl	$128, %ebx
	movq	_B43_NPHY_TABLE_DATAHI@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_b43_phy_write
	movq	_B43_NPHY_TABLE_DATALO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_b43_phy_write
	decl	%ebx
	jne	LBB0_3
## %bb.4:
	movl	-72(%rbp), %r14d
	movl	%r14d, %ebx
	shll	$10, %ebx
	movl	$1023, %eax                     ## imm = 0x3FF
	andl	-68(%rbp), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	_B43_NPHY_TABLE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$27968, %edx                    ## imm = 0x6D40
	callq	_b43_phy_write
	shrl	$6, %r14d
	andl	$15, %r14d
	movzwl	%bx, %r15d
	addl	-84(%rbp), %r15d                ## 4-byte Folded Reload
	movl	$128, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_b43_phy_write
	movq	_B43_NPHY_TABLE_DATALO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_b43_phy_write
	decl	%ebx
	jne	LBB0_5
## %bb.6:
	movl	-60(%rbp), %ecx
	movzbl	%ch, %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movzbl	%cl, %r15d
	movl	%ecx, %r14d
	movq	_B43_NPHY_TABLE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$27072, %edx                    ## imm = 0x69C0
	callq	_b43_phy_write
	movl	(%r13), %eax
	cmpl	$3, %eax
	movzwl	%r14w, %ebx
	cmovll	%r14d, %ebx
	xorl	%r14d, %r14d
	cmpl	$2, %eax
	jg	LBB0_9
	.p2align	4, 0x90
LBB0_8:
	movq	_loscale@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, %ecx
	imull	-84(%rbp), %ecx                 ## 4-byte Folded Reload
	subl	$-128, %ecx
	imull	%r15d, %eax
	subl	$-128, %eax
	andl	$65280, %ecx                    ## imm = 0xFF00
	movzbl	%ah, %ebx
	orl	%ecx, %ebx
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_B43_NPHY_TABLE_DATAHI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	shrl	$16, %edx
	movq	%r13, %rdi
	callq	_b43_phy_write
	movq	_B43_NPHY_TABLE_DATALO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzwl	%bx, %edx
	movq	%r13, %rdi
	callq	_b43_phy_write
	cmpq	$127, %r14
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r13), %eax
	incq	%r14
	cmpl	$2, %eax
	jle	LBB0_8
	jmp	LBB0_9
LBB0_11:
	movl	-56(%rbp), %ebx
	movzbl	%bh, %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movzbl	%bl, %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	_B43_NPHY_TABLE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$28096, %edx                    ## imm = 0x6DC0
	callq	_b43_phy_write
	movl	(%r13), %eax
	cmpl	$3, %eax
	movzwl	%bx, %r12d
	cmovll	%ebx, %r12d
	xorl	%ebx, %ebx
	movq	_B43_NPHY_TABLE_DATAHI@GOTPCREL(%rip), %r14
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r14), %esi
	movl	%r12d, %r15d
	movl	%r12d, %edx
	shrl	$16, %edx
	movq	%r13, %rdi
	callq	_b43_phy_write
	movq	_B43_NPHY_TABLE_DATALO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzwl	%r15w, %edx
	movq	%r13, %rdi
	callq	_b43_phy_write
	incq	%rbx
	movl	(%r13), %eax
	cmpq	$128, %rbx
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$2, %eax
	jg	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_loscale@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %eax
	movl	%eax, %ecx
	imull	-84(%rbp), %ecx                 ## 4-byte Folded Reload
	subl	$-128, %ecx
	imull	-88(%rbp), %eax                 ## 4-byte Folded Reload
	subl	$-128, %eax
	andl	$65280, %ecx                    ## imm = 0xFF00
	movzbl	%ah, %eax
	orl	%ecx, %eax
	movl	%eax, %r12d
	jmp	LBB0_14
LBB0_15:
	cmpl	$3, %eax
	jl	LBB0_17
## %bb.16:
	movq	_B43_SHM_SHARED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_B43_SHM_SH_NPHY_TXPWR_INDX0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_b43_shm_write16
	movl	(%rbx), %esi
	movq	_B43_SHM_SH_NPHY_TXPWR_INDX1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_b43_shm_write16
LBB0_17:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.18:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_b43_nphy_stay_in_carrier_search
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_NPHY_TABLE_ADDR,4,2        ## @B43_NPHY_TABLE_ADDR
	.comm	_B43_NPHY_TABLE_DATAHI,4,2      ## @B43_NPHY_TABLE_DATAHI
	.comm	_B43_NPHY_TABLE_DATALO,4,2      ## @B43_NPHY_TABLE_DATALO
	.comm	_loscale,8,3                    ## @loscale
	.comm	_B43_SHM_SHARED,4,2             ## @B43_SHM_SHARED
	.comm	_B43_SHM_SH_NPHY_TXPWR_INDX0,4,2 ## @B43_SHM_SH_NPHY_TXPWR_INDX0
	.comm	_B43_SHM_SH_NPHY_TXPWR_INDX1,4,2 ## @B43_SHM_SH_NPHY_TXPWR_INDX1
	.no_dead_strip	_b43_nphy_tx_pwr_ctrl_coef_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_nphy_tx_pwr_ctrl_coef_setup
_b43_nphy_tx_pwr_ctrl_coef_setup:       ; @b43_nphy_tx_pwr_ctrl_coef_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	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, #40]
	ldr	x8, [x0, #8]
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_b43_nphy_stay_in_carrier_search
LBB0_2:
	mov	w0, #15
	mov	w1, #80
	bl	_B43_NTAB16
	mov	x1, x0
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #7
	bl	_b43_ntab_read_bulk
	ldp	w22, w8, [sp, #12]
	and	w20, w8, #0x3ff
Lloh3:
	adrp	x25, _B43_NPHY_TABLE_ADDR@GOTPAGE
Lloh4:
	ldr	x25, [x25, _B43_NPHY_TABLE_ADDR@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #26944
	bl	_b43_phy_write
	ubfx	w21, w22, #6, #4
	bfi	w20, w22, #10, #6
	mov	w22, #128
Lloh5:
	adrp	x23, _B43_NPHY_TABLE_DATAHI@GOTPAGE
Lloh6:
	ldr	x23, [x23, _B43_NPHY_TABLE_DATAHI@GOTPAGEOFF]
Lloh7:
	adrp	x24, _B43_NPHY_TABLE_DATALO@GOTPAGE
Lloh8:
	ldr	x24, [x24, _B43_NPHY_TABLE_DATALO@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_b43_phy_write
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_b43_phy_write
	subs	w22, w22, #1
	b.ne	LBB0_3
; %bb.4:
	ldp	w22, w8, [sp, #20]
	and	w20, w8, #0x3ff
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #27968
	bl	_b43_phy_write
	ubfx	w21, w22, #6, #4
	bfi	w20, w22, #10, #6
	mov	w22, #128
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_b43_phy_write
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_b43_phy_write
	subs	w22, w22, #1
	b.ne	LBB0_5
; %bb.6:
	ldr	w20, [sp, #32]
	ubfx	w21, w20, #8, #8
	and	w26, w20, #0xff
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #27072
	bl	_b43_phy_write
	mov	x27, #0
	ldr	w8, [x19]
	and	w9, w20, #0xffff
	cmp	w8, #2
	csel	w22, w9, w20, gt
Lloh9:
	adrp	x20, _loscale@GOTPAGE
Lloh10:
	ldr	x20, [x20, _loscale@GOTPAGEOFF]
	orr	w28, wzr, #0x80
	cmp	w8, #2
	b.gt	LBB0_8
LBB0_7:
	ldr	x8, [x20]
	ldr	w8, [x8, x27]
	madd	w9, w8, w21, w28
	madd	w8, w8, w26, w28
	and	w22, w9, #0xff00
	bfxil	w22, w8, #8, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	lsr	w2, w22, #16
	mov	x0, x19
	bl	_b43_phy_write
	ldr	w1, [x24]
	and	w2, w22, #0xffff
	mov	x0, x19
	bl	_b43_phy_write
	cmp	x27, #508
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19]
	add	x27, x27, #4
	cmp	w8, #2
	b.le	LBB0_7
	b	LBB0_8
LBB0_10:
	ldr	w22, [sp, #36]
	ubfx	w21, w22, #8, #8
	and	w26, w22, #0xff
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #28096
	bl	_b43_phy_write
	mov	x25, #0
	ldr	w8, [x19]
	and	w9, w22, #0xffff
	cmp	w8, #2
	csel	w27, w9, w22, gt
	orr	w22, wzr, #0x80
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x23]
	lsr	w2, w27, #16
	mov	x0, x19
	bl	_b43_phy_write
	ldr	w1, [x24]
	and	w2, w27, #0xffff
	mov	x0, x19
	bl	_b43_phy_write
	ldr	w8, [x19]
	add	x25, x25, #4
	cmp	x25, #512
	b.eq	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cmp	w8, #2
	b.gt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20]
	ldr	w8, [x8, x25]
	madd	w9, w8, w21, w22
	madd	w8, w8, w26, w22
	and	w27, w9, #0xff00
	bfxil	w27, w8, #8, #8
	b	LBB0_11
LBB0_14:
	cmp	w8, #3
	b.lt	LBB0_16
; %bb.15:
Lloh11:
	adrp	x20, _B43_SHM_SHARED@GOTPAGE
Lloh12:
	ldr	x20, [x20, _B43_SHM_SHARED@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh13:
	adrp	x8, _B43_SHM_SH_NPHY_TXPWR_INDX0@GOTPAGE
Lloh14:
	ldr	x8, [x8, _B43_SHM_SH_NPHY_TXPWR_INDX0@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #65535
	bl	_b43_shm_write16
	ldr	w1, [x20]
Lloh16:
	adrp	x8, _B43_SHM_SH_NPHY_TXPWR_INDX1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _B43_SHM_SH_NPHY_TXPWR_INDX1@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #65535
	bl	_b43_shm_write16
LBB0_16:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.17:
	mov	x0, x19
	mov	w1, #0
	bl	_b43_nphy_stay_in_carrier_search
LBB0_18:
	ldr	x8, [sp, #40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_NPHY_TABLE_ADDR,4,2        ; @B43_NPHY_TABLE_ADDR
	.comm	_B43_NPHY_TABLE_DATAHI,4,2      ; @B43_NPHY_TABLE_DATAHI
	.comm	_B43_NPHY_TABLE_DATALO,4,2      ; @B43_NPHY_TABLE_DATALO
	.comm	_loscale,8,3                    ; @loscale
	.comm	_B43_SHM_SHARED,4,2             ; @B43_SHM_SHARED
	.comm	_B43_SHM_SH_NPHY_TXPWR_INDX0,4,2 ; @B43_SHM_SH_NPHY_TXPWR_INDX0
	.comm	_B43_SHM_SH_NPHY_TXPWR_INDX1,4,2 ; @B43_SHM_SH_NPHY_TXPWR_INDX1
	.no_dead_strip	_b43_nphy_tx_pwr_ctrl_coef_setup
.subsections_via_symbols
