	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_nphy_update_tx_cal_ladder
_b43_nphy_update_tx_cal_ladder:         ## @b43_nphy_update_tx_cal_ladder
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, %rcx
	shrq	$8, %rcx
	testq	%rsi, %rsi
	cmovneq	%rax, %rcx
	movzbl	%cl, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$8, %r13d
	xorl	%r15d, %r15d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ladder_lo@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-8(%rsi,%r13), %rcx
	imulq	%r12, %rcx
	movq	%rcx, %rax
	movabsq	$-6640827866535438581, %r14     ## imm = 0xA3D70A3D70A3D70B
	imulq	%r14
	addq	%rcx, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	shrl	$6, %edx
	addl	%eax, %edx
	shll	$8, %edx
	movzwl	%dx, %ebx
	orq	(%rsi,%r13), %rbx
	movl	$15, %edi
	movl	%r15d, %esi
	callq	_B43_NTAB16
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_b43_ntab_write
	movq	_ladder_iq@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-8(%rsi,%r13), %rcx
	imulq	%r12, %rcx
	movq	%rcx, %rax
	movabsq	$-6640827866535438581, %rdx     ## imm = 0xA3D70A3D70A3D70B
	imulq	%rdx
	addq	%rcx, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	shrl	$6, %edx
	addl	%eax, %edx
	shll	$8, %edx
	movzwl	%dx, %ebx
	orq	(%rsi,%r13), %rbx
	leal	32(%r15), %esi
	movl	$15, %edi
	callq	_B43_NTAB16
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_b43_ntab_write
	incq	%r15
	addq	$16, %r13
	cmpq	$18, %r15
	jne	LBB0_1
## %bb.2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ladder_lo,8,3                  ## @ladder_lo
	.comm	_ladder_iq,8,3                  ## @ladder_iq
	.no_dead_strip	_b43_nphy_update_tx_cal_ladder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_nphy_update_tx_cal_ladder
_b43_nphy_update_tx_cal_ladder:         ; @b43_nphy_update_tx_cal_ladder
	.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
	mov	x19, x0
	mov	x22, #0
	mov	x20, #0
	ldr	x8, [x0]
	ldr	x8, [x8]
	lsr	x9, x8, #8
	cmp	x1, #0
	csel	x8, x9, x8, eq
	and	x23, x8, #0xff
Lloh0:
	adrp	x24, _ladder_lo@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ladder_lo@GOTPAGEOFF]
	mov	x25, #55051
	movk	x25, #28835, lsl #16
	movk	x25, #2621, lsl #32
	movk	x25, #41943, lsl #48
Lloh2:
	adrp	x26, _ladder_iq@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ladder_iq@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x8, x8, x22
	ldp	x9, x8, [x8]
	mul	x9, x9, x23
	smulh	x10, x9, x25
	add	x9, x10, x9
	lsr	x10, x9, #63
	add	w9, w10, w9, lsr #6
	lsl	w9, w9, #8
	and	x9, x9, #0xff00
	orr	x21, x9, x8
	mov	w0, #15
	mov	x1, x20
	bl	_B43_NTAB16
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_b43_ntab_write
	ldr	x8, [x26]
	add	x8, x8, x22
	ldp	x9, x8, [x8]
	mul	x9, x9, x23
	smulh	x10, x9, x25
	add	x9, x10, x9
	lsr	x10, x9, #63
	add	w9, w10, w9, lsr #6
	lsl	w9, w9, #8
	and	x9, x9, #0xff00
	orr	x21, x9, x8
	add	w1, w20, #32
	mov	w0, #15
	bl	_B43_NTAB16
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_b43_ntab_write
	add	x20, x20, #1
	add	x22, x22, #16
	cmp	x20, #18
	b.ne	LBB0_1
; %bb.2:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ladder_lo,8,3                  ; @ladder_lo
	.comm	_ladder_iq,8,3                  ; @ladder_iq
	.no_dead_strip	_b43_nphy_update_tx_cal_ladder
.subsections_via_symbols
