	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_phy_adjust_crsminpwr_nphy
_wlc_phy_adjust_crsminpwr_nphy:         ## @wlc_phy_adjust_crsminpwr_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	%rsi, %r14
	movq	%rdi, %rbx
	movl	20(%rdi), %edi
	movl	$3, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	16(%rbx), %edi
	callq	_CHSPEC_CHANNEL
	cmpl	$11, %eax
	jne	LBB0_5
## %bb.2:
	movl	16(%rbx), %edi
	callq	_CHSPEC_IS40
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpl	$0, (%rbx)
	jne	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	movl	$637, %esi                      ## imm = 0x27D
	callq	_read_phy_reg
	movzbl	%al, %ecx
	movq	8(%rbx), %rdx
	movl	%ecx, (%rdx)
	andl	$65280, %eax                    ## imm = 0xFF00
	orl	%r14d, %eax
	movq	%rbx, %rdi
	movl	$637, %esi                      ## imm = 0x27D
	movl	%eax, %edx
	callq	_write_phy_reg
	movq	%rbx, %rdi
	movl	$640, %esi                      ## imm = 0x280
	callq	_read_phy_reg
	movzbl	%al, %ecx
	movq	8(%rbx), %rdx
	movl	%ecx, 4(%rdx)
	andl	$65280, %eax                    ## imm = 0xFF00
	orl	%r14d, %eax
	movq	%rbx, %rdi
	movl	$640, %esi                      ## imm = 0x280
	movl	%eax, %edx
	callq	_write_phy_reg
	movq	%rbx, %rdi
	movl	$643, %esi                      ## imm = 0x283
	callq	_read_phy_reg
	movzbl	%al, %ecx
	movq	8(%rbx), %rdx
	movl	%ecx, 8(%rdx)
	andl	$65280, %eax                    ## imm = 0xFF00
	orl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$643, %esi                      ## imm = 0x283
	movl	%r14d, %edx
	callq	_write_phy_reg
	movl	$1, (%rbx)
	jmp	LBB0_7
LBB0_5:
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movl	$637, %esi                      ## imm = 0x27D
	callq	_read_phy_reg
	andl	$65280, %eax                    ## imm = 0xFF00
	movq	8(%rbx), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	$637, %esi                      ## imm = 0x27D
	movl	%eax, %edx
	callq	_write_phy_reg
	movq	%rbx, %rdi
	movl	$640, %esi                      ## imm = 0x280
	callq	_read_phy_reg
	andl	$65280, %eax                    ## imm = 0xFF00
	movq	8(%rbx), %rcx
	orl	4(%rcx), %eax
	movq	%rbx, %rdi
	movl	$640, %esi                      ## imm = 0x280
	movl	%eax, %edx
	callq	_write_phy_reg
	movq	%rbx, %rdi
	movl	$643, %esi                      ## imm = 0x283
	callq	_read_phy_reg
	andl	$65280, %eax                    ## imm = 0xFF00
	movq	8(%rbx), %rcx
	orl	8(%rcx), %eax
	movq	%rbx, %rdi
	movl	$643, %esi                      ## imm = 0x283
	movl	%eax, %edx
	callq	_write_phy_reg
	movl	$0, (%rbx)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wlc_phy_adjust_crsminpwr_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_adjust_crsminpwr_nphy
_wlc_phy_adjust_crsminpwr_nphy:         ; @wlc_phy_adjust_crsminpwr_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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #20]
	mov	w1, #3
	bl	_NREV_GE
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w0, [x19, #16]
	bl	_CHSPEC_CHANNEL
	cmp	w0, #11
	b.ne	LBB0_5
; %bb.2:
	ldr	w0, [x19, #16]
	bl	_CHSPEC_IS40
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x19]
	cbnz	w8, LBB0_7
; %bb.4:
	mov	x0, x19
	mov	w1, #637
	bl	_read_phy_reg
	and	w8, w0, #0xff
	ldr	x9, [x19, #8]
	str	w8, [x9]
	and	w8, w0, #0xff00
	orr	w2, w8, w20
	mov	x0, x19
	mov	w1, #637
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #640
	bl	_read_phy_reg
	and	w8, w0, #0xff
	ldr	x9, [x19, #8]
	str	w8, [x9, #4]
	and	w8, w0, #0xff00
	orr	w2, w8, w20
	mov	x0, x19
	mov	w1, #640
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #643
	bl	_read_phy_reg
	and	w8, w0, #0xff
	ldr	x9, [x19, #8]
	str	w8, [x9, #8]
	and	w8, w0, #0xff00
	orr	w2, w8, w20
	mov	x0, x19
	mov	w1, #643
	bl	_write_phy_reg
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_7
LBB0_5:
	ldr	w8, [x19]
	cbz	w8, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #637
	bl	_read_phy_reg
	and	w8, w0, #0xff00
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w1, #637
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #640
	bl	_read_phy_reg
	and	w8, w0, #0xff00
	ldr	x9, [x19, #8]
	ldr	w9, [x9, #4]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w1, #640
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #643
	bl	_read_phy_reg
	and	w8, w0, #0xff00
	ldr	x9, [x19, #8]
	ldr	w9, [x9, #8]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w1, #643
	bl	_write_phy_reg
	str	wzr, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wlc_phy_adjust_crsminpwr_nphy
.subsections_via_symbols
