	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_phy_bphy_init_nphy
_wlc_phy_bphy_init_nphy:                ## @wlc_phy_bphy_init_nphy
	.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, %r14
	movq	_NPHY_TO_BPHY_OFF@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	_BPHY_RSSI_LUT@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_BPHY_RSSI_LUT_END@GOTPCREL(%rip), %r12
	cmpq	(%r12), %r15
	jg	LBB0_3
## %bb.1:
	addq	%rsi, %r15
	movl	$7711, %ebx                     ## imm = 0x1E1F
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_write_phy_reg
	movq	(%r13), %rsi
	leaq	151(%rsi), %rax
	addq	$-514, %rbx                     ## imm = 0xFDFE
	cmpq	%rax, %r15
	movl	$15935, %eax                    ## imm = 0x3E3F
	cmoveq	%rax, %rbx
	leaq	1(%r15), %rax
	movq	(%r12), %rcx
	addq	%rsi, %rcx
	cmpq	%rcx, %r15
	movq	%rax, %r15
	jl	LBB0_2
LBB0_3:
	movq	_BPHY_STEP@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$1640, %edx                     ## imm = 0x668
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_phy_reg                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NPHY_TO_BPHY_OFF,8,3           ## @NPHY_TO_BPHY_OFF
	.comm	_BPHY_RSSI_LUT,8,3              ## @BPHY_RSSI_LUT
	.comm	_BPHY_RSSI_LUT_END,8,3          ## @BPHY_RSSI_LUT_END
	.comm	_BPHY_STEP,8,3                  ## @BPHY_STEP
	.no_dead_strip	_wlc_phy_bphy_init_nphy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_phy_bphy_init_nphy
_wlc_phy_bphy_init_nphy:                ; @wlc_phy_bphy_init_nphy
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _NPHY_TO_BPHY_OFF@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NPHY_TO_BPHY_OFF@GOTPAGEOFF]
Lloh2:
	adrp	x9, _BPHY_RSSI_LUT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BPHY_RSSI_LUT@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x23, _BPHY_RSSI_LUT_END@GOTPAGE
Lloh6:
	ldr	x23, [x23, _BPHY_RSSI_LUT_END@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x9, x10
	b.gt	LBB0_3
; %bb.1:
	add	x20, x9, x8
	mov	w21, #7711
	mov	w24, #15935
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_write_phy_reg
	ldr	x8, [x22]
	add	x9, x8, #151
	sub	x10, x21, #514
	cmp	x20, x9
	csel	x21, x24, x10, eq
	ldr	x9, [x23]
	add	x9, x9, x8
	cmp	x20, x9
	add	x20, x20, #1
	b.lt	LBB0_2
LBB0_3:
Lloh7:
	adrp	x9, _BPHY_STEP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BPHY_STEP@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	mov	w2, #1640
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_write_phy_reg
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NPHY_TO_BPHY_OFF,8,3           ; @NPHY_TO_BPHY_OFF
	.comm	_BPHY_RSSI_LUT,8,3              ; @BPHY_RSSI_LUT
	.comm	_BPHY_RSSI_LUT_END,8,3          ; @BPHY_RSSI_LUT_END
	.comm	_BPHY_STEP,8,3                  ; @BPHY_STEP
	.no_dead_strip	_wlc_phy_bphy_init_nphy
.subsections_via_symbols
