	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_check_polarity_igp       ## -- Begin function e1000_check_polarity_igp
	.p2align	4, 0x90
_e1000_check_polarity_igp:              ## @e1000_check_polarity_igp
	.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	%rdi, %r14
	movq	_IGP01E1000_PHY_PORT_STATUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	_IGP01E1000_PSSR_SPEED_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	-44(%rbp), %r15d
	movq	_IGP01E1000_PSSR_SPEED_1000MBPS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_IGP01E1000_PHY_POLARITY_MASK@GOTPCREL(%rip), %rax
	movq	_IGP01E1000_PSSR_POLARITY_REVERSED@GOTPCREL(%rip), %rcx
	cmpl	%r12d, %r15d
	jne	LBB0_3
## %bb.2:
	movq	_IGP01E1000_PHY_PCS_INIT_REG@GOTPCREL(%rip), %rbx
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %r13d
	movl	(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_e1e_rphy
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	cmpl	%r12d, %r15d
	cmovel	-48(%rbp), %r13d                ## 4-byte Folded Reload
	andl	-44(%rbp), %r13d
	jne	LBB0_5
## %bb.6:
	movq	_e1000_rev_polarity_normal@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_e1000_rev_polarity_reversed@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IGP01E1000_PHY_PORT_STATUS,4,2 ## @IGP01E1000_PHY_PORT_STATUS
	.comm	_IGP01E1000_PSSR_SPEED_MASK,4,2 ## @IGP01E1000_PSSR_SPEED_MASK
	.comm	_IGP01E1000_PSSR_SPEED_1000MBPS,4,2 ## @IGP01E1000_PSSR_SPEED_1000MBPS
	.comm	_IGP01E1000_PHY_PCS_INIT_REG,4,2 ## @IGP01E1000_PHY_PCS_INIT_REG
	.comm	_IGP01E1000_PHY_POLARITY_MASK,4,2 ## @IGP01E1000_PHY_POLARITY_MASK
	.comm	_IGP01E1000_PSSR_POLARITY_REVERSED,4,2 ## @IGP01E1000_PSSR_POLARITY_REVERSED
	.comm	_e1000_rev_polarity_reversed,4,2 ## @e1000_rev_polarity_reversed
	.comm	_e1000_rev_polarity_normal,4,2  ## @e1000_rev_polarity_normal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_check_polarity_igp       ; -- Begin function e1000_check_polarity_igp
	.p2align	2
_e1000_check_polarity_igp:              ; @e1000_check_polarity_igp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x20, _IGP01E1000_PHY_PORT_STATUS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IGP01E1000_PHY_PORT_STATUS@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_e1e_rphy
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x9, _IGP01E1000_PSSR_SPEED_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IGP01E1000_PSSR_SPEED_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w21, w9, w8
Lloh5:
	adrp	x8, _IGP01E1000_PSSR_SPEED_1000MBPS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IGP01E1000_PSSR_SPEED_1000MBPS@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
Lloh8:
	adrp	x8, _IGP01E1000_PHY_POLARITY_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IGP01E1000_PHY_POLARITY_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
Lloh11:
	adrp	x8, _IGP01E1000_PSSR_POLARITY_REVERSED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IGP01E1000_PSSR_POLARITY_REVERSED@GOTPAGEOFF]
Lloh13:
	ldr	w24, [x8]
Lloh14:
	adrp	x8, _IGP01E1000_PHY_PCS_INIT_REG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IGP01E1000_PHY_PCS_INIT_REG@GOTPAGEOFF]
	cmp	w21, w22
	csel	x8, x8, x20, eq
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1e_rphy
	cbnz	x0, LBB0_3
; %bb.2:
	cmp	w21, w22
	csel	w8, w23, w24, eq
	ldr	w9, [sp, #12]
Lloh16:
	adrp	x10, _e1000_rev_polarity_reversed@GOTPAGE
Lloh17:
	ldr	x10, [x10, _e1000_rev_polarity_reversed@GOTPAGEOFF]
Lloh18:
	adrp	x11, _e1000_rev_polarity_normal@GOTPAGE
Lloh19:
	ldr	x11, [x11, _e1000_rev_polarity_normal@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IGP01E1000_PHY_PORT_STATUS,4,2 ; @IGP01E1000_PHY_PORT_STATUS
	.comm	_IGP01E1000_PSSR_SPEED_MASK,4,2 ; @IGP01E1000_PSSR_SPEED_MASK
	.comm	_IGP01E1000_PSSR_SPEED_1000MBPS,4,2 ; @IGP01E1000_PSSR_SPEED_1000MBPS
	.comm	_IGP01E1000_PHY_PCS_INIT_REG,4,2 ; @IGP01E1000_PHY_PCS_INIT_REG
	.comm	_IGP01E1000_PHY_POLARITY_MASK,4,2 ; @IGP01E1000_PHY_POLARITY_MASK
	.comm	_IGP01E1000_PSSR_POLARITY_REVERSED,4,2 ; @IGP01E1000_PSSR_POLARITY_REVERSED
	.comm	_e1000_rev_polarity_reversed,4,2 ; @e1000_rev_polarity_reversed
	.comm	_e1000_rev_polarity_normal,4,2  ; @e1000_rev_polarity_normal
.subsections_via_symbols
