	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_classifier_nphy        ## -- Begin function wlc_phy_classifier_nphy
	.p2align	4, 0x90
_wlc_phy_classifier_nphy:               ## @wlc_phy_classifier_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	4(%rax), %edi
	movl	$16, %esi
	callq	_D11REV_IS
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	8(%r14), %r12d
	movq	_maccontrol@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_bcma_read32
	movq	_MCTL_EN_MAC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.3:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_wlapi_suspend_mac_and_wait
LBB0_4:
	xorl	%r12d, %r12d
	jmp	LBB0_5
LBB0_2:
	movb	$1, %r12b
LBB0_5:
	movq	%r14, %rdi
	movl	$176, %esi
	callq	_read_phy_reg
	andl	%ebx, %r15d
	notl	%ebx
	andl	%eax, %ebx
	andl	$7, %ebx
	orl	%r15d, %ebx
	movq	%r14, %rdi
	movl	$176, %esi
	movl	$7, %edx
	movl	%ebx, %ecx
	callq	_mod_phy_reg
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movl	$16, %esi
	callq	_D11REV_IS
	testb	%r12b, %r12b
	jne	LBB0_8
## %bb.6:
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_wlapi_enable_mac
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_maccontrol,4,2                 ## @maccontrol
	.comm	_MCTL_EN_MAC,4,2                ## @MCTL_EN_MAC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_classifier_nphy        ; -- Begin function wlc_phy_classifier_nphy
	.p2align	2
_wlc_phy_classifier_nphy:               ; @wlc_phy_classifier_nphy
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w0, [x8, #4]
	mov	w1, #16
	bl	_D11REV_IS
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w22, [x19, #8]
Lloh0:
	adrp	x8, _maccontrol@GOTPAGE
Lloh1:
	ldr	x8, [x8, _maccontrol@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x22
	bl	_bcma_read32
Lloh3:
	adrp	x8, _MCTL_EN_MAC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCTL_EN_MAC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_wlapi_suspend_mac_and_wait
LBB0_3:
	mov	w22, #0
	b	LBB0_5
LBB0_4:
	mov	w22, #1
LBB0_5:
	mov	x0, x19
	mov	w1, #176
	bl	_read_phy_reg
	bic	w8, w0, w21
	and	w8, w8, #0x7
	and	w9, w20, w21
	orr	w20, w8, w9
	mov	x0, x19
	mov	w1, #176
	mov	w2, #7
	mov	x3, x20
	bl	_mod_phy_reg
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	mov	w1, #16
	bl	_D11REV_IS
	tbnz	w22, #0, LBB0_8
; %bb.6:
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_wlapi_enable_mac
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_maccontrol,4,2                 ; @maccontrol
	.comm	_MCTL_EN_MAC,4,2                ; @MCTL_EN_MAC
.subsections_via_symbols
