	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bigmac_interrupt
_bigmac_interrupt:                      ## @bigmac_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	%rsi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DIRQ
	movq	_CREG_STAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_sbus_readl
	movl	%eax, %ebx
	movq	_GLOB_STAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_sbus_readl
	movl	%eax, %r15d
	movslq	%ebx, %rdi
	callq	_DIRQ
	movq	_GLOB_STAT_ER@GOTPCREL(%rip), %rax
	movq	_GLOB_STAT_BM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r15d, %ecx
	jne	LBB0_2
## %bb.1:
	movq	_CREG_STAT_ERRORS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_bigmac_is_medium_rare
LBB0_3:
	movq	_CREG_STAT_TXIRQ@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_bigmac_tx
LBB0_5:
	movq	_CREG_STAT_RXIRQ@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_bigmac_rx
LBB0_7:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bigmac_interrupt: "

	.comm	_CREG_STAT,8,3                  ## @CREG_STAT
	.comm	_GLOB_STAT,8,3                  ## @GLOB_STAT
	.comm	_GLOB_STAT_ER,4,2               ## @GLOB_STAT_ER
	.comm	_GLOB_STAT_BM,4,2               ## @GLOB_STAT_BM
	.comm	_CREG_STAT_ERRORS,4,2           ## @CREG_STAT_ERRORS
	.comm	_CREG_STAT_TXIRQ,4,2            ## @CREG_STAT_TXIRQ
	.comm	_CREG_STAT_RXIRQ,4,2            ## @CREG_STAT_RXIRQ
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_bigmac_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bigmac_interrupt
_bigmac_interrupt:                      ; @bigmac_interrupt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DIRQ
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _CREG_STAT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CREG_STAT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_sbus_readl
	mov	x20, x0
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _GLOB_STAT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GLOB_STAT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_sbus_readl
	mov	x21, x0
	sxtw	x0, w20
	bl	_DIRQ
Lloh8:
	adrp	x8, _GLOB_STAT_ER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GLOB_STAT_ER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _GLOB_STAT_BM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GLOB_STAT_BM@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w21
	b.ne	LBB0_2
; %bb.1:
Lloh14:
	adrp	x8, _CREG_STAT_ERRORS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CREG_STAT_ERRORS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_bigmac_is_medium_rare
LBB0_3:
Lloh17:
	adrp	x8, _CREG_STAT_TXIRQ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CREG_STAT_TXIRQ@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_bigmac_tx
LBB0_5:
Lloh20:
	adrp	x8, _CREG_STAT_RXIRQ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CREG_STAT_RXIRQ@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_bigmac_rx
LBB0_7:
Lloh23:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bigmac_interrupt: "

	.comm	_CREG_STAT,8,3                  ; @CREG_STAT
	.comm	_GLOB_STAT,8,3                  ; @GLOB_STAT
	.comm	_GLOB_STAT_ER,4,2               ; @GLOB_STAT_ER
	.comm	_GLOB_STAT_BM,4,2               ; @GLOB_STAT_BM
	.comm	_CREG_STAT_ERRORS,4,2           ; @CREG_STAT_ERRORS
	.comm	_CREG_STAT_TXIRQ,4,2            ; @CREG_STAT_TXIRQ
	.comm	_CREG_STAT_RXIRQ,4,2            ; @CREG_STAT_RXIRQ
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_bigmac_interrupt
.subsections_via_symbols
