	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_pa_override_nphy       ## -- Begin function wlc_phy_pa_override_nphy
	.p2align	4, 0x90
_wlc_phy_pa_override_nphy:              ## @wlc_phy_pa_override_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_1
## %bb.8:
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	movl	$145, %esi
	callq	_write_phy_reg
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	movl	$146, %esi
	jmp	LBB0_7
LBB0_1:
	movq	%rbx, %rdi
	movl	$145, %esi
	callq	_read_phy_reg
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movl	$146, %esi
	callq	_read_phy_reg
	movl	%eax, 4(%rbx)
	movl	12(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_GE
	movl	$5248, %r14d                    ## imm = 0x1480
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movl	12(%rbx), %edi
	movl	$3, %esi
	callq	_NREV_GE
	movq	%rax, %r14
	movl	8(%rbx), %edi
	callq	_CHSPEC_IS5G
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	testq	%rax, %rax
	movl	$1152, %eax                     ## imm = 0x480
	movl	$1536, %r14d                    ## imm = 0x600
	jmp	LBB0_5
LBB0_4:
	testq	%rax, %rax
	movl	$288, %eax                      ## imm = 0x120
	movl	$384, %r14d                     ## imm = 0x180
LBB0_5:
	cmovel	%eax, %r14d
LBB0_6:
	movq	%rbx, %rdi
	movl	$145, %esi
	movl	%r14d, %edx
	callq	_write_phy_reg
	movq	%rbx, %rdi
	movl	$146, %esi
	movl	%r14d, %edx
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_write_phy_reg                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_pa_override_nphy       ; -- Begin function wlc_phy_pa_override_nphy
	.p2align	2
_wlc_phy_pa_override_nphy:              ; @wlc_phy_pa_override_nphy
	.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
	cbz	w1, LBB0_2
; %bb.1:
	ldr	w2, [x19]
	mov	x0, x19
	mov	w1, #145
	bl	_write_phy_reg
	ldr	w2, [x19, #4]
	mov	x0, x19
	mov	w1, #146
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	mov	w1, #145
	bl	_read_phy_reg
	str	w0, [x19]
	mov	x0, x19
	mov	w1, #146
	bl	_read_phy_reg
	str	w0, [x19, #4]
	ldr	w0, [x19, #12]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x0, LBB0_4
; %bb.3:
	mov	w20, #5248
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #12]
	mov	w1, #3
	bl	_NREV_GE
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_CHSPEC_IS5G
	cmp	x0, #0
	mov	w8, #384
	mov	w9, #288
	csel	w8, w9, w8, eq
	mov	w9, #1536
	mov	w10, #1152
	csel	w9, w10, w9, eq
	cmp	x20, #0
	csel	w20, w8, w9, eq
LBB0_5:
	mov	x0, x19
	mov	w1, #145
	mov	x2, x20
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #146
	mov	x2, x20
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_write_phy_reg
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
