	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bad_phy_status
_bad_phy_status:                        ## @bad_phy_status
	.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), %rax
	movq	_CHIP_ID_GENESIS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_XMR_FS_ERR@GOTPCREL(%rip), %rax
	movq	_XMR_FS_2L_VLAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%esi, %ecx
	setne	%al
	jmp	LBB0_3
LBB0_2:
	movq	_GMR_FS_ANY_ERR@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	setne	%cl
	movq	_GMR_FS_RX_OK@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	sete	%al
	orb	%cl, %al
LBB0_3:
	movzbl	%al, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_ID_GENESIS,8,3            ## @CHIP_ID_GENESIS
	.comm	_XMR_FS_ERR,4,2                 ## @XMR_FS_ERR
	.comm	_XMR_FS_2L_VLAN,4,2             ## @XMR_FS_2L_VLAN
	.comm	_GMR_FS_ANY_ERR,4,2             ## @GMR_FS_ANY_ERR
	.comm	_GMR_FS_RX_OK,4,2               ## @GMR_FS_RX_OK
	.no_dead_strip	_bad_phy_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bad_phy_status
_bad_phy_status:                        ; @bad_phy_status
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CHIP_ID_GENESIS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_ID_GENESIS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _XMR_FS_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XMR_FS_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _XMR_FS_2L_VLAN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XMR_FS_2L_VLAN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w1
	cset	w0, ne
	ret
LBB0_2:
Lloh9:
	adrp	x8, _GMR_FS_ANY_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GMR_FS_ANY_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w1
	cset	w8, ne
Lloh12:
	adrp	x9, _GMR_FS_RX_OK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GMR_FS_RX_OK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w1
	cset	w9, eq
	orr	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_ID_GENESIS,8,3            ; @CHIP_ID_GENESIS
	.comm	_XMR_FS_ERR,4,2                 ; @XMR_FS_ERR
	.comm	_XMR_FS_2L_VLAN,4,2             ; @XMR_FS_2L_VLAN
	.comm	_GMR_FS_ANY_ERR,4,2             ; @GMR_FS_ANY_ERR
	.comm	_GMR_FS_RX_OK,4,2               ; @GMR_FS_RX_OK
	.no_dead_strip	_bad_phy_status
.subsections_via_symbols
