	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_10g_phy_present
_niu_10g_phy_present:                   ## @niu_10g_phy_present
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_ESR_INT_SIGNALS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nr64
	movl	(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	xorl	%ecx, %ecx
	cmpl	$1, %edx
	jne	LBB0_5
## %bb.3:
	movq	_ESR_INT_SIGNALS_P1_BITS@GOTPCREL(%rip), %r8
	movq	_ESR_INT_XDP_P1_CH0@GOTPCREL(%rip), %r9
	movq	_ESR_INT_XDP_P1_CH1@GOTPCREL(%rip), %r10
	movq	_ESR_INT_XDP_P1_CH2@GOTPCREL(%rip), %rdi
	movq	_ESR_INT_XDP_P1_CH3@GOTPCREL(%rip), %rbx
	movq	_ESR_INT_XSRDY_P1@GOTPCREL(%rip), %rcx
	movq	_ESR_INT_DET0_P1@GOTPCREL(%rip), %rsi
	movq	_ESR_INT_SRDY0_P1@GOTPCREL(%rip), %rdx
	jmp	LBB0_4
LBB0_1:
	movq	_ESR_INT_SIGNALS_P0_BITS@GOTPCREL(%rip), %r8
	movq	_ESR_INT_XDP_P0_CH0@GOTPCREL(%rip), %r9
	movq	_ESR_INT_XDP_P0_CH1@GOTPCREL(%rip), %r10
	movq	_ESR_INT_XDP_P0_CH2@GOTPCREL(%rip), %rdi
	movq	_ESR_INT_XDP_P0_CH3@GOTPCREL(%rip), %rbx
	movq	_ESR_INT_XSRDY_P0@GOTPCREL(%rip), %rcx
	movq	_ESR_INT_DET0_P0@GOTPCREL(%rip), %rsi
	movq	_ESR_INT_SRDY0_P0@GOTPCREL(%rip), %rdx
LBB0_4:
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	orl	(%rcx), %esi
	orl	(%rbx), %esi
	orl	(%rdi), %esi
	orl	(%r10), %esi
	orl	(%r9), %esi
	andl	(%r8), %eax
	xorl	%ecx, %ecx
	cmpl	%esi, %eax
	sete	%cl
LBB0_5:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ESR_INT_SIGNALS,4,2            ## @ESR_INT_SIGNALS
	.comm	_ESR_INT_SIGNALS_P0_BITS,4,2    ## @ESR_INT_SIGNALS_P0_BITS
	.comm	_ESR_INT_SRDY0_P0,4,2           ## @ESR_INT_SRDY0_P0
	.comm	_ESR_INT_DET0_P0,4,2            ## @ESR_INT_DET0_P0
	.comm	_ESR_INT_XSRDY_P0,4,2           ## @ESR_INT_XSRDY_P0
	.comm	_ESR_INT_XDP_P0_CH3,4,2         ## @ESR_INT_XDP_P0_CH3
	.comm	_ESR_INT_XDP_P0_CH2,4,2         ## @ESR_INT_XDP_P0_CH2
	.comm	_ESR_INT_XDP_P0_CH1,4,2         ## @ESR_INT_XDP_P0_CH1
	.comm	_ESR_INT_XDP_P0_CH0,4,2         ## @ESR_INT_XDP_P0_CH0
	.comm	_ESR_INT_SIGNALS_P1_BITS,4,2    ## @ESR_INT_SIGNALS_P1_BITS
	.comm	_ESR_INT_SRDY0_P1,4,2           ## @ESR_INT_SRDY0_P1
	.comm	_ESR_INT_DET0_P1,4,2            ## @ESR_INT_DET0_P1
	.comm	_ESR_INT_XSRDY_P1,4,2           ## @ESR_INT_XSRDY_P1
	.comm	_ESR_INT_XDP_P1_CH3,4,2         ## @ESR_INT_XDP_P1_CH3
	.comm	_ESR_INT_XDP_P1_CH2,4,2         ## @ESR_INT_XDP_P1_CH2
	.comm	_ESR_INT_XDP_P1_CH1,4,2         ## @ESR_INT_XDP_P1_CH1
	.comm	_ESR_INT_XDP_P1_CH0,4,2         ## @ESR_INT_XDP_P1_CH0
	.no_dead_strip	_niu_10g_phy_present
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_10g_phy_present
_niu_10g_phy_present:                   ; @niu_10g_phy_present
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _ESR_INT_SIGNALS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESR_INT_SIGNALS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_nr64
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _ESR_INT_SIGNALS_P1_BITS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ESR_INT_SIGNALS_P1_BITS@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ESR_INT_XDP_P1_CH0@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ESR_INT_XDP_P1_CH0@GOTPAGEOFF]
Lloh7:
	adrp	x10, _ESR_INT_XDP_P1_CH1@GOTPAGE
Lloh8:
	ldr	x10, [x10, _ESR_INT_XDP_P1_CH1@GOTPAGEOFF]
Lloh9:
	adrp	x11, _ESR_INT_XDP_P1_CH2@GOTPAGE
Lloh10:
	ldr	x11, [x11, _ESR_INT_XDP_P1_CH2@GOTPAGEOFF]
Lloh11:
	adrp	x12, _ESR_INT_XDP_P1_CH3@GOTPAGE
Lloh12:
	ldr	x12, [x12, _ESR_INT_XDP_P1_CH3@GOTPAGEOFF]
Lloh13:
	adrp	x13, _ESR_INT_XSRDY_P1@GOTPAGE
Lloh14:
	ldr	x13, [x13, _ESR_INT_XSRDY_P1@GOTPAGEOFF]
Lloh15:
	adrp	x14, _ESR_INT_DET0_P1@GOTPAGE
Lloh16:
	ldr	x14, [x14, _ESR_INT_DET0_P1@GOTPAGEOFF]
Lloh17:
	adrp	x15, _ESR_INT_SRDY0_P1@GOTPAGE
Lloh18:
	ldr	x15, [x15, _ESR_INT_SRDY0_P1@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh19:
	adrp	x8, _ESR_INT_SIGNALS_P0_BITS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ESR_INT_SIGNALS_P0_BITS@GOTPAGEOFF]
Lloh21:
	adrp	x9, _ESR_INT_XDP_P0_CH0@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ESR_INT_XDP_P0_CH0@GOTPAGEOFF]
Lloh23:
	adrp	x10, _ESR_INT_XDP_P0_CH1@GOTPAGE
Lloh24:
	ldr	x10, [x10, _ESR_INT_XDP_P0_CH1@GOTPAGEOFF]
Lloh25:
	adrp	x11, _ESR_INT_XDP_P0_CH2@GOTPAGE
Lloh26:
	ldr	x11, [x11, _ESR_INT_XDP_P0_CH2@GOTPAGEOFF]
Lloh27:
	adrp	x12, _ESR_INT_XDP_P0_CH3@GOTPAGE
Lloh28:
	ldr	x12, [x12, _ESR_INT_XDP_P0_CH3@GOTPAGEOFF]
Lloh29:
	adrp	x13, _ESR_INT_XSRDY_P0@GOTPAGE
Lloh30:
	ldr	x13, [x13, _ESR_INT_XSRDY_P0@GOTPAGEOFF]
Lloh31:
	adrp	x14, _ESR_INT_DET0_P0@GOTPAGE
Lloh32:
	ldr	x14, [x14, _ESR_INT_DET0_P0@GOTPAGEOFF]
Lloh33:
	adrp	x15, _ESR_INT_SRDY0_P0@GOTPAGE
Lloh34:
	ldr	x15, [x15, _ESR_INT_SRDY0_P0@GOTPAGEOFF]
LBB0_4:
	ldr	w15, [x15]
	ldr	w14, [x14]
	orr	w14, w14, w15
	ldr	w13, [x13]
	orr	w13, w14, w13
	ldr	w12, [x12]
	orr	w12, w13, w12
	ldr	w11, [x11]
	orr	w11, w12, w11
	ldr	w10, [x10]
	orr	w10, w11, w10
	ldr	w9, [x9]
	orr	w9, w10, w9
	ldr	w8, [x8]
	and	w8, w8, w0
	cmp	w8, w9
	cset	w0, eq
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ESR_INT_SIGNALS,4,2            ; @ESR_INT_SIGNALS
	.comm	_ESR_INT_SIGNALS_P0_BITS,4,2    ; @ESR_INT_SIGNALS_P0_BITS
	.comm	_ESR_INT_SRDY0_P0,4,2           ; @ESR_INT_SRDY0_P0
	.comm	_ESR_INT_DET0_P0,4,2            ; @ESR_INT_DET0_P0
	.comm	_ESR_INT_XSRDY_P0,4,2           ; @ESR_INT_XSRDY_P0
	.comm	_ESR_INT_XDP_P0_CH3,4,2         ; @ESR_INT_XDP_P0_CH3
	.comm	_ESR_INT_XDP_P0_CH2,4,2         ; @ESR_INT_XDP_P0_CH2
	.comm	_ESR_INT_XDP_P0_CH1,4,2         ; @ESR_INT_XDP_P0_CH1
	.comm	_ESR_INT_XDP_P0_CH0,4,2         ; @ESR_INT_XDP_P0_CH0
	.comm	_ESR_INT_SIGNALS_P1_BITS,4,2    ; @ESR_INT_SIGNALS_P1_BITS
	.comm	_ESR_INT_SRDY0_P1,4,2           ; @ESR_INT_SRDY0_P1
	.comm	_ESR_INT_DET0_P1,4,2            ; @ESR_INT_DET0_P1
	.comm	_ESR_INT_XSRDY_P1,4,2           ; @ESR_INT_XSRDY_P1
	.comm	_ESR_INT_XDP_P1_CH3,4,2         ; @ESR_INT_XDP_P1_CH3
	.comm	_ESR_INT_XDP_P1_CH2,4,2         ; @ESR_INT_XDP_P1_CH2
	.comm	_ESR_INT_XDP_P1_CH1,4,2         ; @ESR_INT_XDP_P1_CH1
	.comm	_ESR_INT_XDP_P1_CH0,4,2         ; @ESR_INT_XDP_P1_CH0
	.no_dead_strip	_niu_10g_phy_present
.subsections_via_symbols
