	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_integrated_phy_loopback
_e1000_integrated_phy_loopback:         ## @e1000_integrated_phy_loopback
	.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
	movq	%rdi, %r14
	movl	$0, (%rdi)
	movq	8(%rdi), %rax
	movq	_e1000_phy_m88@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.1:
	movq	_M88E1000_PHY_SPEC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$2056, %edx                     ## imm = 0x808
	callq	_e1000_write_phy_reg
	movq	_PHY_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$37184, %edx                    ## imm = 0x9140
	callq	_e1000_write_phy_reg
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$33088, %edx                    ## imm = 0x8140
	callq	_e1000_write_phy_reg
LBB0_2:
	movq	_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_er32
	movq	_PHY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$16704, %edx                    ## imm = 0x4140
	callq	_e1000_write_phy_reg
	movl	(%r12), %edi
	callq	_er32
	movq	_E1000_CTRL_SPD_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	_E1000_CTRL_FRCSPD@GOTPCREL(%rip), %rax
	movq	_E1000_CTRL_FRCDPX@GOTPCREL(%rip), %rcx
	movq	_E1000_CTRL_SPD_1000@GOTPCREL(%rip), %rdx
	movq	_E1000_CTRL_FD@GOTPCREL(%rip), %rsi
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	orl	(%rsi), %ebx
	movq	16(%r14), %rax
	movq	_e1000_media_type_copper@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	8(%r14), %rax
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.4:
	movq	_E1000_CTRL_ILOS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_7
LBB0_5:
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_STATUS_FD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:
	movq	_E1000_CTRL_ILOS@GOTPCREL(%rip), %rax
	movq	_E1000_CTRL_SLU@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
LBB0_7:
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_ew32
	movq	8(%r14), %rax
	cmpq	(%r15), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_e1000_phy_disable_receiver
LBB0_9:
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_udelay
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_phy_m88,8,3              ## @e1000_phy_m88
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ## @M88E1000_PHY_SPEC_CTRL
	.comm	_PHY_CTRL,4,2                   ## @PHY_CTRL
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_E1000_CTRL_SPD_SEL,4,2         ## @E1000_CTRL_SPD_SEL
	.comm	_E1000_CTRL_FRCSPD,4,2          ## @E1000_CTRL_FRCSPD
	.comm	_E1000_CTRL_FRCDPX,4,2          ## @E1000_CTRL_FRCDPX
	.comm	_E1000_CTRL_SPD_1000,4,2        ## @E1000_CTRL_SPD_1000
	.comm	_E1000_CTRL_FD,4,2              ## @E1000_CTRL_FD
	.comm	_e1000_media_type_copper,8,3    ## @e1000_media_type_copper
	.comm	_E1000_CTRL_ILOS,4,2            ## @E1000_CTRL_ILOS
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_FD,4,2            ## @E1000_STATUS_FD
	.comm	_E1000_CTRL_SLU,4,2             ## @E1000_CTRL_SLU
	.no_dead_strip	_e1000_integrated_phy_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_integrated_phy_loopback
_e1000_integrated_phy_loopback:         ; @e1000_integrated_phy_loopback
	.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
	str	wzr, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x21, _e1000_phy_m88@GOTPAGE
Lloh1:
	ldr	x21, [x21, _e1000_phy_m88@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh2:
	adrp	x20, _PHY_CTRL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _PHY_CTRL@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _M88E1000_PHY_SPEC_CTRL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M88E1000_PHY_SPEC_CTRL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2056
	bl	_e1000_write_phy_reg
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #37184
	bl	_e1000_write_phy_reg
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #33088
	bl	_e1000_write_phy_reg
LBB0_2:
Lloh7:
	adrp	x22, _CTRL@GOTPAGE
Lloh8:
	ldr	x22, [x22, _CTRL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_er32
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #16704
	bl	_e1000_write_phy_reg
	ldr	w0, [x22]
	bl	_er32
Lloh9:
	adrp	x8, _E1000_CTRL_SPD_SEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E1000_CTRL_SPD_SEL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh12:
	adrp	x9, _E1000_CTRL_FRCSPD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _E1000_CTRL_FRCSPD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _E1000_CTRL_FRCDPX@GOTPAGE
Lloh16:
	ldr	x10, [x10, _E1000_CTRL_FRCDPX@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _E1000_CTRL_SPD_1000@GOTPAGE
Lloh19:
	ldr	x11, [x11, _E1000_CTRL_SPD_1000@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
Lloh21:
	adrp	x12, _E1000_CTRL_FD@GOTPAGE
Lloh22:
	ldr	x12, [x12, _E1000_CTRL_FD@GOTPAGEOFF]
Lloh23:
	ldr	w12, [x12]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w20, w8, w12
	ldr	x8, [x19, #16]
Lloh24:
	adrp	x9, _e1000_media_type_copper@GOTPAGE
Lloh25:
	ldr	x9, [x9, _e1000_media_type_copper@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh27:
	adrp	x8, _E1000_CTRL_ILOS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _E1000_CTRL_ILOS@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_7
LBB0_5:
Lloh30:
	adrp	x8, _STATUS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_er32
Lloh33:
	adrp	x8, _E1000_STATUS_FD@GOTPAGE
Lloh34:
	ldr	x8, [x8, _E1000_STATUS_FD@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.6:
Lloh36:
	adrp	x8, _E1000_CTRL_ILOS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _E1000_CTRL_ILOS@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _E1000_CTRL_SLU@GOTPAGE
Lloh40:
	ldr	x9, [x9, _E1000_CTRL_SLU@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w20, w8, w9
LBB0_7:
	ldr	w0, [x22]
	mov	x1, x20
	bl	_ew32
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_e1000_phy_disable_receiver
LBB0_9:
	mov	w0, #500
	bl	_udelay
	mov	w0, #0
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_phy_m88,8,3              ; @e1000_phy_m88
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ; @M88E1000_PHY_SPEC_CTRL
	.comm	_PHY_CTRL,4,2                   ; @PHY_CTRL
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_E1000_CTRL_SPD_SEL,4,2         ; @E1000_CTRL_SPD_SEL
	.comm	_E1000_CTRL_FRCSPD,4,2          ; @E1000_CTRL_FRCSPD
	.comm	_E1000_CTRL_FRCDPX,4,2          ; @E1000_CTRL_FRCDPX
	.comm	_E1000_CTRL_SPD_1000,4,2        ; @E1000_CTRL_SPD_1000
	.comm	_E1000_CTRL_FD,4,2              ; @E1000_CTRL_FD
	.comm	_e1000_media_type_copper,8,3    ; @e1000_media_type_copper
	.comm	_E1000_CTRL_ILOS,4,2            ; @E1000_CTRL_ILOS
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_FD,4,2            ; @E1000_STATUS_FD
	.comm	_E1000_CTRL_SLU,4,2             ; @E1000_CTRL_SLU
	.no_dead_strip	_e1000_integrated_phy_loopback
.subsections_via_symbols
