	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar8xxx_phy_config_init
_ar8xxx_phy_config_init:                ## @ar8xxx_phy_config_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	16(%rdi), %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	24(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ar8xxx_phy_check_aneg          ## TAILCALL
LBB0_3:
	movq	%rbx, 16(%r14)
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_chip_is_ar8316
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	_AR8216_NUM_PORTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	decq	%rax
	movq	%rax, 8(%r14)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	_ar8316_hw_init
	jmp	LBB0_9
LBB0_6:
	movq	%r14, %rdi
	callq	_ar8xxx_start
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_chip_is_ar8216
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, 16(%r15)
	movq	_IFF_NO_IP_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
	movq	_ar8216_mangle_rx@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_ar8216_mangle_tx@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_AR8216_NUM_PORTS,8,3           ## @AR8216_NUM_PORTS
	.comm	_IFF_NO_IP_ALIGN,4,2            ## @IFF_NO_IP_ALIGN
	.comm	_ar8216_mangle_rx,4,2           ## @ar8216_mangle_rx
	.comm	_ar8216_mangle_tx,4,2           ## @ar8216_mangle_tx
	.no_dead_strip	_ar8xxx_phy_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ar8xxx_phy_config_init
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ar8xxx_phy_config_init:                ; @ar8xxx_phy_config_init
	.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, x0
	ldp	x21, x19, [x0, #8]
	cmp	x19, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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
LBB0_3:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	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
	b	_ar8xxx_phy_check_aneg
LBB0_5:
	str	x20, [x19, #16]
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_chip_is_ar8316
	cbz	x0, LBB0_2
; %bb.7:
Lloh3:
	adrp	x8, _AR8216_NUM_PORTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR8216_NUM_PORTS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	sub	x8, x8, #1
	str	x8, [x19, #8]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	mov	x0, x19
	bl	_ar8316_hw_init
	mov	w0, #0
	b	LBB0_2
LBB0_8:
	mov	x0, x19
	bl	_ar8xxx_start
	cbnz	w0, LBB0_2
; %bb.9:
	mov	x0, x19
	bl	_chip_is_ar8216
	cbz	x0, LBB0_2
; %bb.10:
	mov	w0, #0
	str	x19, [x21, #16]
Lloh8:
	adrp	x8, _IFF_NO_IP_ALIGN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IFF_NO_IP_ALIGN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	orr	w8, w9, w8
	str	w8, [x21, #8]
Lloh11:
	adrp	x8, _ar8216_mangle_rx@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ar8216_mangle_rx@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _ar8216_mangle_tx@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ar8216_mangle_tx@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x21]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_AR8216_NUM_PORTS,8,3           ; @AR8216_NUM_PORTS
	.comm	_IFF_NO_IP_ALIGN,4,2            ; @IFF_NO_IP_ALIGN
	.comm	_ar8216_mangle_rx,4,2           ; @ar8216_mangle_rx
	.comm	_ar8216_mangle_tx,4,2           ; @ar8216_mangle_tx
	.no_dead_strip	_ar8xxx_phy_config_init
.subsections_via_symbols
