	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_5700_link_polarity
_tg3_5700_link_polarity:                ## @tg3_5700_link_polarity
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	_LED_CTRL_MODE_PHY_2@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.1:
	movq	_TG3_PHY_ID_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	8(%rdi), %edx
	movq	_TG3_PHY_ID_BCM5411@GOTPCREL(%rip), %rdi
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	(%rdi), %edx
	jne	LBB0_3
## %bb.2:
	cmpq	%rsi, %rcx
	je	LBB0_4
	jmp	LBB0_5
LBB0_3:
	cmpq	%rsi, %rcx
	je	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LED_CTRL_MODE_PHY_2,8,3        ## @LED_CTRL_MODE_PHY_2
	.comm	_TG3_PHY_ID_MASK,4,2            ## @TG3_PHY_ID_MASK
	.comm	_TG3_PHY_ID_BCM5411,4,2         ## @TG3_PHY_ID_BCM5411
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.no_dead_strip	_tg3_5700_link_polarity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_5700_link_polarity
_tg3_5700_link_polarity:                ; @tg3_5700_link_polarity
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _LED_CTRL_MODE_PHY_2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LED_CTRL_MODE_PHY_2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	ret
LBB0_2:
	ldr	w8, [x0, #8]
Lloh3:
	adrp	x9, _TG3_PHY_ID_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TG3_PHY_ID_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _TG3_PHY_ID_BCM5411@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TG3_PHY_ID_BCM5411@GOTPAGEOFF]
	and	w9, w9, w8
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x8, _SPEED_10@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SPEED_10@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.3:
	cmp	x8, x1
	b.eq	LBB0_7
; %bb.4:
	mov	w0, #1
	ret
LBB0_5:
	cmp	x8, x1
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #1
	ret
LBB0_7:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LED_CTRL_MODE_PHY_2,8,3        ; @LED_CTRL_MODE_PHY_2
	.comm	_TG3_PHY_ID_MASK,4,2            ; @TG3_PHY_ID_MASK
	.comm	_TG3_PHY_ID_BCM5411,4,2         ; @TG3_PHY_ID_BCM5411
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.no_dead_strip	_tg3_5700_link_polarity
.subsections_via_symbols
