	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd8111e_set_ext_phy
_amd8111e_set_ext_phy:                  ## @amd8111e_set_ext_phy
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	4(%rax), %esi
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_amd8111e_mdio_read
	movq	_ADVERTISE_ALL@GOTPCREL(%rip), %rcx
	movq	_ADVERTISE_100BASE4@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	$-129, %ecx
	addl	(%rbx), %ecx
	cmpl	$3, %ecx
	ja	LBB0_2
## %bb.1:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_3:
	movq	_ADVERTISE_10HALF@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	movq	_ADVERTISE_10HALF@GOTPCREL(%rip), %rsi
	movq	_ADVERTISE_10FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movq	_ADVERTISE_100HALF@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_ADVERTISE_100FULL@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	jmp	LBB0_8
LBB0_4:
	movq	_ADVERTISE_10FULL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_ADVERTISE_100HALF@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_ADVERTISE_100FULL@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
LBB0_8:
	orl	%edx, %ecx
	cmpl	%ecx, %eax
	je	LBB0_10
## %bb.9:
	movl	4(%rbx), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_amd8111e_mdio_write
LBB0_10:
	movl	4(%rbx), %esi
	movq	_MII_BMCR@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_amd8111e_mdio_read
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rcx
	movq	_BMCR_ANRESTART@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movl	4(%rbx), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_amd8111e_mdio_write            ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_ADVERTISE_ALL,4,2              ## @ADVERTISE_ALL
	.comm	_ADVERTISE_100BASE4,4,2         ## @ADVERTISE_100BASE4
	.comm	_ADVERTISE_10HALF,4,2           ## @ADVERTISE_10HALF
	.comm	_ADVERTISE_10FULL,4,2           ## @ADVERTISE_10FULL
	.comm	_ADVERTISE_100HALF,4,2          ## @ADVERTISE_100HALF
	.comm	_ADVERTISE_100FULL,4,2          ## @ADVERTISE_100FULL
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ## @BMCR_ANRESTART
	.no_dead_strip	_amd8111e_set_ext_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd8111e_set_ext_phy
_amd8111e_set_ext_phy:                  ; @amd8111e_set_ext_phy
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w1, [x0, #4]
Lloh0:
	adrp	x21, _MII_ADVERTISE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MII_ADVERTISE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_amd8111e_mdio_read
Lloh2:
	adrp	x8, _ADVERTISE_ALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADVERTISE_ALL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ADVERTISE_100BASE4@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ADVERTISE_100BASE4@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
	ldr	w9, [x20]
	sub	w9, w9, #129
	cmp	w9, #3
	b.hi	LBB0_3
; %bb.1:
Lloh8:
	adrp	x10, lJTI0_0@PAGE
Lloh9:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh10:
	adrp	x9, _ADVERTISE_10HALF@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ADVERTISE_10HALF@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh12:
	adrp	x9, _ADVERTISE_10HALF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ADVERTISE_10HALF@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _ADVERTISE_10FULL@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ADVERTISE_10FULL@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh18:
	adrp	x10, _ADVERTISE_100HALF@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ADVERTISE_100HALF@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh21:
	adrp	x10, _ADVERTISE_100FULL@GOTPAGE
Lloh22:
	ldr	x10, [x10, _ADVERTISE_100FULL@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w9, w10
	b	LBB0_8
LBB0_4:
Lloh24:
	adrp	x9, _ADVERTISE_10FULL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ADVERTISE_10FULL@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh26:
	adrp	x9, _ADVERTISE_100HALF@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ADVERTISE_100HALF@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh28:
	adrp	x9, _ADVERTISE_100FULL@GOTPAGE
Lloh29:
	ldr	x9, [x9, _ADVERTISE_100FULL@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
LBB0_8:
	orr	w3, w9, w8
	cmp	w0, w3
	b.eq	LBB0_10
; %bb.9:
	ldr	w1, [x20, #4]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_amd8111e_mdio_write
LBB0_10:
	ldr	w1, [x20, #4]
Lloh30:
	adrp	x21, _MII_BMCR@GOTPAGE
Lloh31:
	ldr	x21, [x21, _MII_BMCR@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_amd8111e_mdio_read
Lloh32:
	adrp	x8, _BMCR_ANENABLE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _BMCR_ANRESTART@GOTPAGE
Lloh36:
	ldr	x9, [x9, _BMCR_ANRESTART@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w3, w8, w9
	ldr	w1, [x20, #4]
	ldr	w2, [x21]
	mov	x0, x19
	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	_amd8111e_mdio_write
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_ADVERTISE_ALL,4,2              ; @ADVERTISE_ALL
	.comm	_ADVERTISE_100BASE4,4,2         ; @ADVERTISE_100BASE4
	.comm	_ADVERTISE_10HALF,4,2           ; @ADVERTISE_10HALF
	.comm	_ADVERTISE_10FULL,4,2           ; @ADVERTISE_10FULL
	.comm	_ADVERTISE_100HALF,4,2          ; @ADVERTISE_100HALF
	.comm	_ADVERTISE_100FULL,4,2          ; @ADVERTISE_100FULL
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ; @BMCR_ANRESTART
	.no_dead_strip	_amd8111e_set_ext_phy
.subsections_via_symbols
