	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_mif_interrupt
_niu_mif_interrupt:                     ## @niu_mif_interrupt
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_MIF_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nr64
	movl	%eax, %r15d
	movq	_NIU_FLAGS_XMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	movl	$0, %ecx
	testl	%eax, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_XRXMAC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nr64_mac
	movq	_XRXMAC_STATUS_PHY_MDINT@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	testl	%eax, (%rdx)
	setne	%cl
LBB0_2:
	movl	4(%r14), %edi
	movslq	%r15d, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIF_STATUS,4,2                 ## @MIF_STATUS
	.comm	_NIU_FLAGS_XMAC,4,2             ## @NIU_FLAGS_XMAC
	.comm	_XRXMAC_STATUS,4,2              ## @XRXMAC_STATUS
	.comm	_XRXMAC_STATUS_PHY_MDINT,4,2    ## @XRXMAC_STATUS_PHY_MDINT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MIF interrupt, stat[%llx] phy_mdint(%d)\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_niu_mif_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_mif_interrupt
_niu_mif_interrupt:                     ; @niu_mif_interrupt
	.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, _MIF_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIF_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_nr64
	mov	x20, x0
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _NIU_FLAGS_XMAC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NIU_FLAGS_XMAC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _XRXMAC_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XRXMAC_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_nr64_mac
Lloh9:
	adrp	x8, _XRXMAC_STATUS_PHY_MDINT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XRXMAC_STATUS_PHY_MDINT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w3, ne
	b	LBB0_3
LBB0_2:
	mov	w3, #0
LBB0_3:
	ldr	w0, [x19, #4]
	sxtw	x2, w20
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MIF_STATUS,4,2                 ; @MIF_STATUS
	.comm	_NIU_FLAGS_XMAC,4,2             ; @NIU_FLAGS_XMAC
	.comm	_XRXMAC_STATUS,4,2              ; @XRXMAC_STATUS
	.comm	_XRXMAC_STATUS_PHY_MDINT,4,2    ; @XRXMAC_STATUS_PHY_MDINT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MIF interrupt, stat[%llx] phy_mdint(%d)\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_niu_mif_interrupt
.subsections_via_symbols
