	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_bmac_interrupt
_niu_bmac_interrupt:                    ## @niu_bmac_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_BTXMAC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nr64_mac
	movq	_BTXMAC_STATUS_UNDERRUN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	incl	44(%rbx)
LBB0_2:
	movq	_BTXMAC_STATUS_MAX_PKT_ERR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	incl	40(%rbx)
LBB0_4:
	movq	_BTXMAC_STATUS_BYTE_CNT_EXP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_BTXMAC_BYTE_CNT_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, 36(%rbx)
LBB0_6:
	movq	_BTXMAC_STATUS_FRAME_CNT_EXP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_BTXMAC_FRM_CNT_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 32(%rbx)
LBB0_8:
	movq	_BRXMAC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nr64_mac
	movq	_BRXMAC_STATUS_OVERFLOW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	incl	28(%rbx)
LBB0_10:
	movq	_BRXMAC_STATUS_FRAME_CNT_EXP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	_BRXMAC_FRAME_CNT_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, 24(%rbx)
LBB0_12:
	movq	_BRXMAC_STATUS_ALIGN_ERR_EXP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.13:
	movq	_BRXMAC_ALIGN_ERR_CNT_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, 20(%rbx)
LBB0_14:
	movq	_BRXMAC_STATUS_CRC_ERR_EXP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.15:
	movq	_BRXMAC_ALIGN_ERR_CNT_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, 16(%rbx)
LBB0_16:
	movq	_BRXMAC_STATUS_LEN_ERR_EXP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.17:
	movq	_BRXMAC_CODE_VIOL_ERR_CNT_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 12(%rbx)
LBB0_18:
	movq	_BMAC_CTRL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nr64_mac
	movq	_BMAC_CTRL_STATUS_NOPAUSE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.19:
	incl	8(%rbx)
LBB0_20:
	movq	_BMAC_CTRL_STATUS_PAUSE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_22
## %bb.21:
	incl	4(%rbx)
LBB0_22:
	movq	_BMAC_CTRL_STATUS_PAUSE_RECV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_24
## %bb.23:
	incl	(%rbx)
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTXMAC_STATUS,4,2              ## @BTXMAC_STATUS
	.comm	_BTXMAC_STATUS_UNDERRUN,4,2     ## @BTXMAC_STATUS_UNDERRUN
	.comm	_BTXMAC_STATUS_MAX_PKT_ERR,4,2  ## @BTXMAC_STATUS_MAX_PKT_ERR
	.comm	_BTXMAC_STATUS_BYTE_CNT_EXP,4,2 ## @BTXMAC_STATUS_BYTE_CNT_EXP
	.comm	_BTXMAC_BYTE_CNT_COUNT,8,3      ## @BTXMAC_BYTE_CNT_COUNT
	.comm	_BTXMAC_STATUS_FRAME_CNT_EXP,4,2 ## @BTXMAC_STATUS_FRAME_CNT_EXP
	.comm	_BTXMAC_FRM_CNT_COUNT,8,3       ## @BTXMAC_FRM_CNT_COUNT
	.comm	_BRXMAC_STATUS,4,2              ## @BRXMAC_STATUS
	.comm	_BRXMAC_STATUS_OVERFLOW,4,2     ## @BRXMAC_STATUS_OVERFLOW
	.comm	_BRXMAC_STATUS_FRAME_CNT_EXP,4,2 ## @BRXMAC_STATUS_FRAME_CNT_EXP
	.comm	_BRXMAC_FRAME_CNT_COUNT,8,3     ## @BRXMAC_FRAME_CNT_COUNT
	.comm	_BRXMAC_STATUS_ALIGN_ERR_EXP,4,2 ## @BRXMAC_STATUS_ALIGN_ERR_EXP
	.comm	_BRXMAC_ALIGN_ERR_CNT_COUNT,8,3 ## @BRXMAC_ALIGN_ERR_CNT_COUNT
	.comm	_BRXMAC_STATUS_CRC_ERR_EXP,4,2  ## @BRXMAC_STATUS_CRC_ERR_EXP
	.comm	_BRXMAC_STATUS_LEN_ERR_EXP,4,2  ## @BRXMAC_STATUS_LEN_ERR_EXP
	.comm	_BRXMAC_CODE_VIOL_ERR_CNT_COUNT,8,3 ## @BRXMAC_CODE_VIOL_ERR_CNT_COUNT
	.comm	_BMAC_CTRL_STATUS,4,2           ## @BMAC_CTRL_STATUS
	.comm	_BMAC_CTRL_STATUS_NOPAUSE,4,2   ## @BMAC_CTRL_STATUS_NOPAUSE
	.comm	_BMAC_CTRL_STATUS_PAUSE,4,2     ## @BMAC_CTRL_STATUS_PAUSE
	.comm	_BMAC_CTRL_STATUS_PAUSE_RECV,4,2 ## @BMAC_CTRL_STATUS_PAUSE_RECV
	.no_dead_strip	_niu_bmac_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_bmac_interrupt
_niu_bmac_interrupt:                    ; @niu_bmac_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, _BTXMAC_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTXMAC_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_nr64_mac
Lloh3:
	adrp	x8, _BTXMAC_STATUS_UNDERRUN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTXMAC_STATUS_UNDERRUN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19, #44]
	add	w8, w8, #1
	str	w8, [x19, #44]
LBB0_2:
Lloh6:
	adrp	x8, _BTXMAC_STATUS_MAX_PKT_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTXMAC_STATUS_MAX_PKT_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x19, #40]
	add	w8, w8, #1
	str	w8, [x19, #40]
LBB0_4:
Lloh9:
	adrp	x8, _BTXMAC_STATUS_BYTE_CNT_EXP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTXMAC_STATUS_BYTE_CNT_EXP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _BTXMAC_BYTE_CNT_COUNT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTXMAC_BYTE_CNT_COUNT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #36]
	add	w8, w9, w8
	str	w8, [x19, #36]
LBB0_6:
Lloh15:
	adrp	x8, _BTXMAC_STATUS_FRAME_CNT_EXP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BTXMAC_STATUS_FRAME_CNT_EXP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _BTXMAC_FRM_CNT_COUNT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BTXMAC_FRM_CNT_COUNT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	add	w8, w9, w8
	str	w8, [x19, #32]
LBB0_8:
Lloh21:
	adrp	x8, _BRXMAC_STATUS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BRXMAC_STATUS@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_nr64_mac
Lloh24:
	adrp	x8, _BRXMAC_STATUS_OVERFLOW@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BRXMAC_STATUS_OVERFLOW@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.9:
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
LBB0_10:
Lloh27:
	adrp	x8, _BRXMAC_STATUS_FRAME_CNT_EXP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BRXMAC_STATUS_FRAME_CNT_EXP@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.11:
Lloh30:
	adrp	x8, _BRXMAC_FRAME_CNT_COUNT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BRXMAC_FRAME_CNT_COUNT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	add	w8, w9, w8
	str	w8, [x19, #24]
LBB0_12:
Lloh33:
	adrp	x8, _BRXMAC_STATUS_ALIGN_ERR_EXP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BRXMAC_STATUS_ALIGN_ERR_EXP@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x8]
Lloh36:
	adrp	x8, _BRXMAC_ALIGN_ERR_CNT_COUNT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BRXMAC_ALIGN_ERR_CNT_COUNT@GOTPAGEOFF]
	tst	w9, w0
	b.eq	LBB0_14
; %bb.13:
	ldr	w9, [x8]
	ldr	w10, [x19, #20]
	add	w9, w10, w9
	str	w9, [x19, #20]
LBB0_14:
Lloh38:
	adrp	x9, _BRXMAC_STATUS_CRC_ERR_EXP@GOTPAGE
Lloh39:
	ldr	x9, [x9, _BRXMAC_STATUS_CRC_ERR_EXP@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_16
; %bb.15:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	add	w8, w9, w8
	str	w8, [x19, #16]
LBB0_16:
Lloh41:
	adrp	x8, _BRXMAC_STATUS_LEN_ERR_EXP@GOTPAGE
Lloh42:
	ldr	x8, [x8, _BRXMAC_STATUS_LEN_ERR_EXP@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_18
; %bb.17:
Lloh44:
	adrp	x8, _BRXMAC_CODE_VIOL_ERR_CNT_COUNT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _BRXMAC_CODE_VIOL_ERR_CNT_COUNT@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	add	w8, w9, w8
	str	w8, [x19, #12]
LBB0_18:
Lloh47:
	adrp	x8, _BMAC_CTRL_STATUS@GOTPAGE
Lloh48:
	ldr	x8, [x8, _BMAC_CTRL_STATUS@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_nr64_mac
Lloh50:
	adrp	x8, _BMAC_CTRL_STATUS_NOPAUSE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _BMAC_CTRL_STATUS_NOPAUSE@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_20
; %bb.19:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_20:
Lloh53:
	adrp	x8, _BMAC_CTRL_STATUS_PAUSE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _BMAC_CTRL_STATUS_PAUSE@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_22
; %bb.21:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_22:
Lloh56:
	adrp	x8, _BMAC_CTRL_STATUS_PAUSE_RECV@GOTPAGE
Lloh57:
	ldr	x8, [x8, _BMAC_CTRL_STATUS_PAUSE_RECV@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_24
; %bb.23:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_24:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_BTXMAC_STATUS,4,2              ; @BTXMAC_STATUS
	.comm	_BTXMAC_STATUS_UNDERRUN,4,2     ; @BTXMAC_STATUS_UNDERRUN
	.comm	_BTXMAC_STATUS_MAX_PKT_ERR,4,2  ; @BTXMAC_STATUS_MAX_PKT_ERR
	.comm	_BTXMAC_STATUS_BYTE_CNT_EXP,4,2 ; @BTXMAC_STATUS_BYTE_CNT_EXP
	.comm	_BTXMAC_BYTE_CNT_COUNT,8,3      ; @BTXMAC_BYTE_CNT_COUNT
	.comm	_BTXMAC_STATUS_FRAME_CNT_EXP,4,2 ; @BTXMAC_STATUS_FRAME_CNT_EXP
	.comm	_BTXMAC_FRM_CNT_COUNT,8,3       ; @BTXMAC_FRM_CNT_COUNT
	.comm	_BRXMAC_STATUS,4,2              ; @BRXMAC_STATUS
	.comm	_BRXMAC_STATUS_OVERFLOW,4,2     ; @BRXMAC_STATUS_OVERFLOW
	.comm	_BRXMAC_STATUS_FRAME_CNT_EXP,4,2 ; @BRXMAC_STATUS_FRAME_CNT_EXP
	.comm	_BRXMAC_FRAME_CNT_COUNT,8,3     ; @BRXMAC_FRAME_CNT_COUNT
	.comm	_BRXMAC_STATUS_ALIGN_ERR_EXP,4,2 ; @BRXMAC_STATUS_ALIGN_ERR_EXP
	.comm	_BRXMAC_ALIGN_ERR_CNT_COUNT,8,3 ; @BRXMAC_ALIGN_ERR_CNT_COUNT
	.comm	_BRXMAC_STATUS_CRC_ERR_EXP,4,2  ; @BRXMAC_STATUS_CRC_ERR_EXP
	.comm	_BRXMAC_STATUS_LEN_ERR_EXP,4,2  ; @BRXMAC_STATUS_LEN_ERR_EXP
	.comm	_BRXMAC_CODE_VIOL_ERR_CNT_COUNT,8,3 ; @BRXMAC_CODE_VIOL_ERR_CNT_COUNT
	.comm	_BMAC_CTRL_STATUS,4,2           ; @BMAC_CTRL_STATUS
	.comm	_BMAC_CTRL_STATUS_NOPAUSE,4,2   ; @BMAC_CTRL_STATUS_NOPAUSE
	.comm	_BMAC_CTRL_STATUS_PAUSE,4,2     ; @BMAC_CTRL_STATUS_PAUSE
	.comm	_BMAC_CTRL_STATUS_PAUSE_RECV,4,2 ; @BMAC_CTRL_STATUS_PAUSE_RECV
	.no_dead_strip	_niu_bmac_interrupt
.subsections_via_symbols
