	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8169_phy_connect
_r8169_phy_connect:                     ## @r8169_phy_connect
	.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	16(%rdi), %r14
	cmpq	$0, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	_PHY_INTERFACE_MODE_MII@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PHY_INTERFACE_MODE_GMII@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movl	8(%rbx), %edi
	movq	_r8169_phylink_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_phy_connect_direct
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	cmpq	$0, (%rbx)
	jne	LBB0_6
## %bb.5:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_phy_set_max_speed
LBB0_6:
	movq	%r14, %rdi
	callq	_phy_support_asym_pause
	movq	%r14, %rdi
	callq	_phy_attached_info
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_GMII,4,2    ## @PHY_INTERFACE_MODE_GMII
	.comm	_PHY_INTERFACE_MODE_MII,4,2     ## @PHY_INTERFACE_MODE_MII
	.comm	_r8169_phylink_handler,4,2      ## @r8169_phylink_handler
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.no_dead_strip	_r8169_phy_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8169_phy_connect
_r8169_phy_connect:                     ; @r8169_phy_connect
	.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	x21, x0
	ldr	x19, [x0, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PHY_INTERFACE_MODE_GMII@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_GMII@GOTPAGEOFF]
Lloh2:
	adrp	x10, _PHY_INTERFACE_MODE_MII@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PHY_INTERFACE_MODE_MII@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w3, [x8]
	ldr	w0, [x0, #8]
Lloh4:
	adrp	x8, _r8169_phylink_handler@GOTPAGE
Lloh5:
	ldr	x8, [x8, _r8169_phylink_handler@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_phy_connect_direct
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x21]
	cbnz	x8, LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_set_max_speed
LBB0_3:
	mov	x0, x19
	bl	_phy_support_asym_pause
	mov	x0, x19
	bl	_phy_attached_info
LBB0_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
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_GMII,4,2    ; @PHY_INTERFACE_MODE_GMII
	.comm	_PHY_INTERFACE_MODE_MII,4,2     ; @PHY_INTERFACE_MODE_MII
	.comm	_r8169_phylink_handler,4,2      ; @r8169_phylink_handler
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.no_dead_strip	_r8169_phy_connect
.subsections_via_symbols
