	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmac_misc_intr
_bmac_misc_intr:                        ## @bmac_misc_intr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bmread
	movl	%eax, %ebx
	movq	_miscintcount@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	cmpl	$9, %ecx
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_XXDEBUG
LBB0_2:
	movq	_RxErrorMask@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	incl	28(%r14)
LBB0_4:
	movq	_RxCRCCntExp@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	incl	24(%r14)
LBB0_6:
	movq	_RxLenCntExp@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	incl	20(%r14)
LBB0_8:
	movq	_RxOverFlow@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:
	incl	16(%r14)
LBB0_10:
	movq	_RxAlignCntExp@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.11:
	incl	12(%r14)
LBB0_12:
	movq	_TxErrorMask@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.13:
	incl	8(%r14)
LBB0_14:
	movq	_TxUnderrun@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_16
## %bb.15:
	incl	4(%r14)
LBB0_16:
	movq	_TxNormalCollExp@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_18
## %bb.17:
	incl	(%r14)
LBB0_18:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_miscintcount,4,2               ## @miscintcount
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bmac_misc_intr\n"

	.comm	_RxErrorMask,4,2                ## @RxErrorMask
	.comm	_RxCRCCntExp,4,2                ## @RxCRCCntExp
	.comm	_RxLenCntExp,4,2                ## @RxLenCntExp
	.comm	_RxOverFlow,4,2                 ## @RxOverFlow
	.comm	_RxAlignCntExp,4,2              ## @RxAlignCntExp
	.comm	_TxErrorMask,4,2                ## @TxErrorMask
	.comm	_TxUnderrun,4,2                 ## @TxUnderrun
	.comm	_TxNormalCollExp,4,2            ## @TxNormalCollExp
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_bmac_misc_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmac_misc_intr
_bmac_misc_intr:                        ; @bmac_misc_intr
	.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, x1
Lloh0:
	adrp	x8, _STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bmread
	mov	x20, x0
Lloh3:
	adrp	x8, _miscintcount@GOTPAGE
Lloh4:
	ldr	x8, [x8, _miscintcount@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	cmp	w9, #9
	b.gt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_XXDEBUG
LBB0_2:
Lloh7:
	adrp	x8, _RxErrorMask@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RxErrorMask@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
LBB0_4:
Lloh10:
	adrp	x8, _RxCRCCntExp@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RxCRCCntExp@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
LBB0_6:
Lloh13:
	adrp	x8, _RxLenCntExp@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RxLenCntExp@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
LBB0_8:
Lloh16:
	adrp	x8, _RxOverFlow@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RxOverFlow@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_10:
Lloh19:
	adrp	x8, _RxAlignCntExp@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RxAlignCntExp@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.11:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
LBB0_12:
Lloh22:
	adrp	x8, _TxErrorMask@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TxErrorMask@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.13:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_14:
Lloh25:
	adrp	x8, _TxUnderrun@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TxUnderrun@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_16
; %bb.15:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_16:
Lloh28:
	adrp	x8, _TxNormalCollExp@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TxNormalCollExp@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_18
; %bb.17:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_18:
Lloh31:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_miscintcount,4,2               ; @miscintcount
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bmac_misc_intr\n"

	.comm	_RxErrorMask,4,2                ; @RxErrorMask
	.comm	_RxCRCCntExp,4,2                ; @RxCRCCntExp
	.comm	_RxLenCntExp,4,2                ; @RxLenCntExp
	.comm	_RxOverFlow,4,2                 ; @RxOverFlow
	.comm	_RxAlignCntExp,4,2              ; @RxAlignCntExp
	.comm	_TxErrorMask,4,2                ; @TxErrorMask
	.comm	_TxUnderrun,4,2                 ; @TxUnderrun
	.comm	_TxNormalCollExp,4,2            ; @TxNormalCollExp
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_bmac_misc_intr
.subsections_via_symbols
