	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_get_variants_82571
_e1000_get_variants_82571:              ## @e1000_get_variants_82571
	.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
	leaq	8(%rdi), %r15
	movq	16(%rdi), %r12
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movl	%eax, %ebx
	movq	_E1000_STATUS_FUNC_1@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_e1000_init_mac_params_82571
	testq	%rax, %rax
	jne	LBB0_22
## %bb.1:
	movq	%r15, %rdi
	callq	_e1000_init_nvm_params_82571
	testq	%rax, %rax
	jne	LBB0_22
## %bb.2:
	movq	%r15, %rdi
	callq	_e1000_init_phy_params_82571
	testq	%rax, %rax
	jne	LBB0_22
## %bb.3:
	movl	(%r12), %eax
	leal	-130(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_7
## %bb.4:
	movq	_FLAG_IS_QUAD_PORT@GOTPCREL(%rip), %rcx
	movl	(%r14), %edx
	orl	(%rcx), %edx
	movl	%edx, (%r14)
	movl	_e1000_get_variants_82571.global_quad_port_a(%rip), %ecx
	testl	%ecx, %ecx
	jne	LBB0_6
## %bb.5:
	movq	_FLAG_IS_QUAD_PORT_A@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movl	%edx, (%r14)
LBB0_6:
	incl	%ecx
	xorl	%edx, %edx
	cmpl	$4, %ecx
	cmovnel	%ecx, %edx
	movl	%edx, _e1000_get_variants_82571.global_quad_port_a(%rip)
LBB0_7:
	movl	(%r15), %ecx
	cmpl	$128, %ecx
	je	LBB0_19
## %bb.8:
	cmpl	$129, %ecx
	jne	LBB0_21
## %bb.9:
	movq	_E1000_DEV_ID_82571EB_FIBER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.10:
	movq	_E1000_DEV_ID_82571EB_SERDES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.11:
	movq	_E1000_DEV_ID_82571EB_COPPER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
LBB0_12:
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.13:
	movq	_FLAG_HAS_WOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, (%r14)
LBB0_14:
	movl	(%r14), %ecx
	movq	_FLAG_IS_QUAD_PORT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_17
## %bb.15:
	movq	_FLAG_IS_QUAD_PORT_A@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_17
## %bb.16:
	movq	_FLAG_HAS_WOL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, (%r14)
LBB0_17:
	movq	_E1000_DEV_ID_82571EB_SERDES_QUAD@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_21
## %bb.18:
	movq	_FLAG_HAS_WOL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_21
LBB0_19:
	movq	_E1000_DEV_ID_82573L@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_21
## %bb.20:
	movq	_FLAG_HAS_JUMBO_FRAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	_DEFAULT_JUMBO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_21:
	xorl	%eax, %eax
LBB0_22:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_e1000_get_variants_82571.global_quad_port_a,4,2 ## @e1000_get_variants_82571.global_quad_port_a
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_FUNC_1,4,2        ## @E1000_STATUS_FUNC_1
	.comm	_FLAG_IS_QUAD_PORT,4,2          ## @FLAG_IS_QUAD_PORT
	.comm	_FLAG_IS_QUAD_PORT_A,4,2        ## @FLAG_IS_QUAD_PORT_A
	.comm	_E1000_DEV_ID_82571EB_FIBER,4,2 ## @E1000_DEV_ID_82571EB_FIBER
	.comm	_E1000_DEV_ID_82571EB_SERDES,4,2 ## @E1000_DEV_ID_82571EB_SERDES
	.comm	_E1000_DEV_ID_82571EB_COPPER,4,2 ## @E1000_DEV_ID_82571EB_COPPER
	.comm	_FLAG_HAS_WOL,4,2               ## @FLAG_HAS_WOL
	.comm	_E1000_DEV_ID_82571EB_SERDES_QUAD,4,2 ## @E1000_DEV_ID_82571EB_SERDES_QUAD
	.comm	_E1000_DEV_ID_82573L,4,2        ## @E1000_DEV_ID_82573L
	.comm	_FLAG_HAS_JUMBO_FRAMES,4,2      ## @FLAG_HAS_JUMBO_FRAMES
	.comm	_DEFAULT_JUMBO,4,2              ## @DEFAULT_JUMBO
	.no_dead_strip	_e1000_get_variants_82571
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_get_variants_82571
_e1000_get_variants_82571:              ; @e1000_get_variants_82571
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	add	x20, x0, #8
	ldr	x23, [x0, #16]
Lloh0:
	adrp	x8, _STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_er32
	mov	x21, x0
Lloh3:
	adrp	x8, _E1000_STATUS_FUNC_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E1000_STATUS_FUNC_1@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_e1000_init_mac_params_82571
	cbnz	x0, LBB0_21
; %bb.1:
	mov	x0, x20
	bl	_e1000_init_nvm_params_82571
	cbnz	x0, LBB0_21
; %bb.2:
	mov	x0, x20
	bl	_e1000_init_phy_params_82571
	cbnz	x0, LBB0_21
; %bb.3:
	ldr	w8, [x23]
	sub	w9, w8, #130
	cmp	w9, #3
	b.hi	LBB0_7
; %bb.4:
Lloh6:
	adrp	x9, _FLAG_IS_QUAD_PORT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FLAG_IS_QUAD_PORT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w11, w10, w9
	str	w11, [x19]
	adrp	x9, _e1000_get_variants_82571.global_quad_port_a@PAGE
	ldr	w10, [x9, _e1000_get_variants_82571.global_quad_port_a@PAGEOFF]
	cbnz	w10, LBB0_6
; %bb.5:
Lloh9:
	adrp	x12, _FLAG_IS_QUAD_PORT_A@GOTPAGE
Lloh10:
	ldr	x12, [x12, _FLAG_IS_QUAD_PORT_A@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	orr	w11, w12, w11
	str	w11, [x19]
LBB0_6:
	add	w11, w10, #1
	cmp	w11, #4
	csinc	w10, wzr, w10, eq
	str	w10, [x9, _e1000_get_variants_82571.global_quad_port_a@PAGEOFF]
LBB0_7:
	ldr	w9, [x20]
	cmp	w9, #128
	b.eq	LBB0_18
; %bb.8:
	cmp	w9, #129
	b.ne	LBB0_20
; %bb.9:
	and	w10, w22, w21
Lloh12:
	adrp	x9, _E1000_DEV_ID_82571EB_FIBER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _E1000_DEV_ID_82571EB_FIBER@GOTPAGEOFF]
Lloh14:
	adrp	x11, _E1000_DEV_ID_82571EB_SERDES@GOTPAGE
Lloh15:
	ldr	x11, [x11, _E1000_DEV_ID_82571EB_SERDES@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	ldr	w11, [x11]
	cmp	w8, w9
	ccmp	w8, w11, #4, ne
Lloh18:
	adrp	x9, _FLAG_HAS_WOL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FLAG_HAS_WOL@GOTPAGEOFF]
	b.eq	LBB0_11
; %bb.10:
Lloh20:
	adrp	x11, _E1000_DEV_ID_82571EB_COPPER@GOTPAGE
Lloh21:
	ldr	x11, [x11, _E1000_DEV_ID_82571EB_COPPER@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	cmp	w8, w11
	b.ne	LBB0_13
LBB0_11:
	cbz	w10, LBB0_13
; %bb.12:
	ldr	w10, [x9]
	ldr	w11, [x19]
	bic	w10, w11, w10
	str	w10, [x19]
LBB0_13:
	ldr	w10, [x19]
Lloh23:
	adrp	x11, _FLAG_IS_QUAD_PORT@GOTPAGE
Lloh24:
	ldr	x11, [x11, _FLAG_IS_QUAD_PORT@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_16
; %bb.14:
Lloh26:
	adrp	x11, _FLAG_IS_QUAD_PORT_A@GOTPAGE
Lloh27:
	ldr	x11, [x11, _FLAG_IS_QUAD_PORT_A@GOTPAGEOFF]
Lloh28:
	ldr	w11, [x11]
	tst	w11, w10
	b.ne	LBB0_16
; %bb.15:
	ldr	w11, [x9]
	bic	w10, w10, w11
	str	w10, [x19]
LBB0_16:
Lloh29:
	adrp	x11, _E1000_DEV_ID_82571EB_SERDES_QUAD@GOTPAGE
Lloh30:
	ldr	x11, [x11, _E1000_DEV_ID_82571EB_SERDES_QUAD@GOTPAGEOFF]
Lloh31:
	ldr	w11, [x11]
	cmp	w8, w11
	b.ne	LBB0_20
; %bb.17:
	mov	x0, #0
	ldr	w8, [x9]
	bic	w8, w10, w8
	str	w8, [x19]
	b	LBB0_21
LBB0_18:
Lloh32:
	adrp	x9, _E1000_DEV_ID_82573L@GOTPAGE
Lloh33:
	ldr	x9, [x9, _E1000_DEV_ID_82573L@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.19:
	mov	x0, #0
Lloh35:
	adrp	x8, _FLAG_HAS_JUMBO_FRAMES@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FLAG_HAS_JUMBO_FRAMES@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh38:
	adrp	x8, _DEFAULT_JUMBO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _DEFAULT_JUMBO@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_21
LBB0_20:
	mov	x0, #0
LBB0_21:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_e1000_get_variants_82571.global_quad_port_a,4,2 ; @e1000_get_variants_82571.global_quad_port_a
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_FUNC_1,4,2        ; @E1000_STATUS_FUNC_1
	.comm	_FLAG_IS_QUAD_PORT,4,2          ; @FLAG_IS_QUAD_PORT
	.comm	_FLAG_IS_QUAD_PORT_A,4,2        ; @FLAG_IS_QUAD_PORT_A
	.comm	_E1000_DEV_ID_82571EB_FIBER,4,2 ; @E1000_DEV_ID_82571EB_FIBER
	.comm	_E1000_DEV_ID_82571EB_SERDES,4,2 ; @E1000_DEV_ID_82571EB_SERDES
	.comm	_E1000_DEV_ID_82571EB_COPPER,4,2 ; @E1000_DEV_ID_82571EB_COPPER
	.comm	_FLAG_HAS_WOL,4,2               ; @FLAG_HAS_WOL
	.comm	_E1000_DEV_ID_82571EB_SERDES_QUAD,4,2 ; @E1000_DEV_ID_82571EB_SERDES_QUAD
	.comm	_E1000_DEV_ID_82573L,4,2        ; @E1000_DEV_ID_82573L
	.comm	_FLAG_HAS_JUMBO_FRAMES,4,2      ; @FLAG_HAS_JUMBO_FRAMES
	.comm	_DEFAULT_JUMBO,4,2              ; @DEFAULT_JUMBO
	.no_dead_strip	_e1000_get_variants_82571
.subsections_via_symbols
