	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_check_polarity
_e1000_check_polarity:                  ## @e1000_check_polarity
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_e1000_phy_m88@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_M88E1000_PHY_SPEC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_14
## %bb.2:
	movq	_M88E1000_PSSR_REV_POLARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-20(%rbp), %eax
	movq	_M88E1000_PSSR_REV_POLARITY_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
LBB0_9:
	testl	%eax, %eax
	jne	LBB0_10
## %bb.11:
	movq	_e1000_rev_polarity_normal@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	movq	_e1000_phy_igp@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.4:
	movq	_IGP01E1000_PHY_PORT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_14
## %bb.5:
	movl	-20(%rbp), %eax
	movq	_IGP01E1000_PSSR_SPEED_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_IGP01E1000_PSSR_SPEED_1000MBPS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_8
## %bb.6:
	movq	_IGP01E1000_PHY_PCS_INIT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_14
## %bb.7:
	movq	_IGP01E1000_PHY_POLARITY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-20(%rbp), %eax
	jmp	LBB0_9
LBB0_10:
	movq	_e1000_rev_polarity_reversed@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_13:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	_IGP01E1000_PSSR_POLARITY_REVERSED@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_phy_m88,8,3              ## @e1000_phy_m88
	.comm	_M88E1000_PHY_SPEC_STATUS,4,2   ## @M88E1000_PHY_SPEC_STATUS
	.comm	_M88E1000_PSSR_REV_POLARITY,4,2 ## @M88E1000_PSSR_REV_POLARITY
	.comm	_M88E1000_PSSR_REV_POLARITY_SHIFT,4,2 ## @M88E1000_PSSR_REV_POLARITY_SHIFT
	.comm	_e1000_rev_polarity_reversed,4,2 ## @e1000_rev_polarity_reversed
	.comm	_e1000_rev_polarity_normal,4,2  ## @e1000_rev_polarity_normal
	.comm	_e1000_phy_igp,8,3              ## @e1000_phy_igp
	.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_SUCCESS,8,3              ## @E1000_SUCCESS
	.no_dead_strip	_e1000_check_polarity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_check_polarity
_e1000_check_polarity:                  ; @e1000_check_polarity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _e1000_phy_m88@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_phy_m88@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _M88E1000_PHY_SPEC_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M88E1000_PHY_SPEC_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_12
; %bb.2:
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _M88E1000_PSSR_REV_POLARITY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M88E1000_PSSR_REV_POLARITY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh9:
	adrp	x9, _M88E1000_PSSR_REV_POLARITY_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _M88E1000_PSSR_REV_POLARITY_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w8, w8, w9
	b	LBB0_10
LBB0_3:
Lloh12:
	adrp	x9, _e1000_phy_igp@GOTPAGE
Lloh13:
	ldr	x9, [x9, _e1000_phy_igp@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.4:
Lloh15:
	adrp	x8, _IGP01E1000_PHY_PORT_STATUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IGP01E1000_PHY_PORT_STATUS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_12
; %bb.5:
	ldr	w8, [sp, #12]
Lloh18:
	adrp	x9, _IGP01E1000_PSSR_SPEED_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IGP01E1000_PSSR_SPEED_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh21:
	adrp	x10, _IGP01E1000_PSSR_SPEED_1000MBPS@GOTPAGE
Lloh22:
	ldr	x10, [x10, _IGP01E1000_PSSR_SPEED_1000MBPS@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_8
; %bb.6:
Lloh24:
	adrp	x8, _IGP01E1000_PHY_PCS_INIT_REG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IGP01E1000_PHY_PCS_INIT_REG@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_12
; %bb.7:
	ldr	w8, [sp, #12]
Lloh27:
	adrp	x9, _IGP01E1000_PHY_POLARITY_MASK@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IGP01E1000_PHY_POLARITY_MASK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh29:
	adrp	x9, _IGP01E1000_PSSR_POLARITY_REVERSED@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IGP01E1000_PSSR_POLARITY_REVERSED@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	and	w8, w9, w8
LBB0_10:
Lloh31:
	adrp	x9, _e1000_rev_polarity_reversed@GOTPAGE
Lloh32:
	ldr	x9, [x9, _e1000_rev_polarity_reversed@GOTPAGEOFF]
Lloh33:
	adrp	x10, _e1000_rev_polarity_normal@GOTPAGE
Lloh34:
	ldr	x10, [x10, _e1000_rev_polarity_normal@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_11:
Lloh35:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh37:
	ldr	x0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_phy_m88,8,3              ; @e1000_phy_m88
	.comm	_M88E1000_PHY_SPEC_STATUS,4,2   ; @M88E1000_PHY_SPEC_STATUS
	.comm	_M88E1000_PSSR_REV_POLARITY,4,2 ; @M88E1000_PSSR_REV_POLARITY
	.comm	_M88E1000_PSSR_REV_POLARITY_SHIFT,4,2 ; @M88E1000_PSSR_REV_POLARITY_SHIFT
	.comm	_e1000_rev_polarity_reversed,4,2 ; @e1000_rev_polarity_reversed
	.comm	_e1000_rev_polarity_normal,4,2  ; @e1000_rev_polarity_normal
	.comm	_e1000_phy_igp,8,3              ; @e1000_phy_igp
	.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_SUCCESS,8,3              ; @E1000_SUCCESS
	.no_dead_strip	_e1000_check_polarity
.subsections_via_symbols
