	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgmac_interrupt
_bgmac_interrupt:                       ## @bgmac_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	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_BGMAC_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bgmac_read
	andl	(%rbx), %eax
	je	LBB0_1
## %bb.2:
	movq	_BGMAC_IS_TX0@GOTPCREL(%rip), %rcx
	movq	_BGMAC_IS_RX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %eax
	je	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_4:
	movq	%rbx, %rdi
	callq	_bgmac_chip_intrs_off
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_napi_schedule
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BGMAC_INT_STATUS,4,2           ## @BGMAC_INT_STATUS
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_BGMAC_IS_TX0,4,2               ## @BGMAC_IS_TX0
	.comm	_BGMAC_IS_RX,4,2                ## @BGMAC_IS_RX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown IRQs: 0x%08X\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_bgmac_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgmac_interrupt
_bgmac_interrupt:                       ; @bgmac_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	x0, x1
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _BGMAC_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BGMAC_INT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bgmac_read
	ldr	w8, [x19]
	ands	w8, w8, w0
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _BGMAC_IS_TX0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BGMAC_IS_TX0@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _BGMAC_IS_RX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BGMAC_IS_RX@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bics	w2, w8, w9
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_3:
	mov	x0, x19
	bl	_bgmac_chip_intrs_off
	add	x0, x19, #4
	bl	_napi_schedule
Lloh11:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BGMAC_INT_STATUS,4,2           ; @BGMAC_INT_STATUS
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_BGMAC_IS_TX0,4,2               ; @BGMAC_IS_TX0
	.comm	_BGMAC_IS_RX,4,2                ; @BGMAC_IS_RX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown IRQs: 0x%08X\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_bgmac_interrupt
.subsections_via_symbols
