	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_determine_phy_address   ## -- Begin function e1000e_determine_phy_address
	.p2align	4, 0x90
_e1000e_determine_phy_address:          ## @e1000e_determine_phy_address
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_e1000_phy_unknown@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, (%rdi)
	movq	_E1000_MAX_PHY_ADDR@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	jle	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, 8(%rbx)
	movq	%rbx, %rdi
	callq	_e1000e_get_phy_id
	movl	(%rbx), %edi
	callq	_e1000e_get_phy_type_from_id
	cmpl	(%r15), %eax
	jne	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	%rbx, %rdi
	callq	_e1000e_get_phy_id
	movl	(%rbx), %edi
	callq	_e1000e_get_phy_type_from_id
	cmpl	(%r15), %eax
	jne	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	%rbx, %rdi
	callq	_e1000e_get_phy_id
	movl	(%rbx), %edi
	callq	_e1000e_get_phy_type_from_id
	cmpl	(%r15), %eax
	jne	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	%rbx, %rdi
	callq	_e1000e_get_phy_id
	movl	(%rbx), %edi
	callq	_e1000e_get_phy_type_from_id
	cmpl	(%r15), %eax
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	%rbx, %rdi
	callq	_e1000e_get_phy_id
	movl	(%rbx), %edi
	callq	_e1000e_get_phy_type_from_id
	cmpl	(%r15), %eax
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	%rbx, %rdi
	callq	_e1000e_get_phy_id
	movl	(%rbx), %edi
	callq	_e1000e_get_phy_type_from_id
	cmpl	(%r15), %eax
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	%rbx, %rdi
	callq	_e1000e_get_phy_id
	movl	(%rbx), %edi
	callq	_e1000e_get_phy_type_from_id
	cmpl	(%r15), %eax
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	%rbx, %rdi
	callq	_e1000e_get_phy_id
	movl	(%rbx), %edi
	callq	_e1000e_get_phy_type_from_id
	cmpl	(%r15), %eax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	%rbx, %rdi
	callq	_e1000e_get_phy_id
	movl	(%rbx), %edi
	callq	_e1000e_get_phy_type_from_id
	cmpl	(%r15), %eax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movq	%rbx, %rdi
	callq	_e1000e_get_phy_id
	movl	(%rbx), %edi
	callq	_e1000e_get_phy_type_from_id
	cmpl	(%r15), %eax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	incq	%r13
	cmpq	(%r12), %r13
	jl	LBB0_2
LBB0_13:
	movq	_E1000_ERR_PHY_TYPE@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_phy_unknown,4,2          ## @e1000_phy_unknown
	.comm	_E1000_MAX_PHY_ADDR,8,3         ## @E1000_MAX_PHY_ADDR
	.comm	_E1000_ERR_PHY_TYPE,4,2         ## @E1000_ERR_PHY_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_determine_phy_address   ; -- Begin function e1000e_determine_phy_address
	.p2align	2
_e1000e_determine_phy_address:          ; @e1000e_determine_phy_address
	.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
Lloh0:
	adrp	x20, _e1000_phy_unknown@GOTPAGE
Lloh1:
	ldr	x20, [x20, _e1000_phy_unknown@GOTPAGEOFF]
	ldr	w8, [x20]
	str	w8, [x0]
Lloh2:
	adrp	x21, _E1000_MAX_PHY_ADDR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _E1000_MAX_PHY_ADDR@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	x22, [x19, #8]
	mov	x0, x19
	bl	_e1000e_get_phy_id
	ldr	w0, [x19]
	bl	_e1000e_get_phy_type_from_id
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_e1000e_get_phy_id
	ldr	w0, [x19]
	bl	_e1000e_get_phy_type_from_id
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_e1000e_get_phy_id
	ldr	w0, [x19]
	bl	_e1000e_get_phy_type_from_id
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_e1000e_get_phy_id
	ldr	w0, [x19]
	bl	_e1000e_get_phy_type_from_id
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_e1000e_get_phy_id
	ldr	w0, [x19]
	bl	_e1000e_get_phy_type_from_id
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_e1000e_get_phy_id
	ldr	w0, [x19]
	bl	_e1000e_get_phy_type_from_id
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_e1000e_get_phy_id
	ldr	w0, [x19]
	bl	_e1000e_get_phy_type_from_id
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_e1000e_get_phy_id
	ldr	w0, [x19]
	bl	_e1000e_get_phy_type_from_id
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_e1000e_get_phy_id
	ldr	w0, [x19]
	bl	_e1000e_get_phy_type_from_id
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	x0, x19
	bl	_e1000e_get_phy_id
	ldr	w0, [x19]
	bl	_e1000e_get_phy_type_from_id
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	add	x22, x22, #1
	ldr	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_13:
Lloh4:
	adrp	x8, _E1000_ERR_PHY_TYPE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _E1000_ERR_PHY_TYPE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_14:
	mov	w0, #0
LBB0_15:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_phy_unknown,4,2          ; @e1000_phy_unknown
	.comm	_E1000_MAX_PHY_ADDR,8,3         ; @E1000_MAX_PHY_ADDR
	.comm	_E1000_ERR_PHY_TYPE,4,2         ; @E1000_ERR_PHY_TYPE
.subsections_via_symbols
