	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gemini_port_irq
_gemini_port_irq:                       ## @gemini_port_irq
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rsi), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	_GLOBAL_INTERRUPT_STATUS_4_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movl	%eax, %ebx
	movq	_GLOBAL_INTERRUPT_ENABLE_4_REG@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	andl	%eax, %ebx
	movq	_SWFQ_EMPTY_INT_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_GMAC0_RX_OVERRUN_INT_BIT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_GMAC1_RX_OVERRUN_INT_BIT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movq	(%r12), %rsi
	addq	8(%r15), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_2:
	movq	%r15, %rdi
	callq	_spin_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_GLOBAL_INTERRUPT_STATUS_4_REG,8,3 ## @GLOBAL_INTERRUPT_STATUS_4_REG
	.comm	_GLOBAL_INTERRUPT_ENABLE_4_REG,8,3 ## @GLOBAL_INTERRUPT_ENABLE_4_REG
	.comm	_SWFQ_EMPTY_INT_BIT,4,2         ## @SWFQ_EMPTY_INT_BIT
	.comm	_GMAC0_RX_OVERRUN_INT_BIT,4,2   ## @GMAC0_RX_OVERRUN_INT_BIT
	.comm	_GMAC1_RX_OVERRUN_INT_BIT,4,2   ## @GMAC1_RX_OVERRUN_INT_BIT
	.comm	_IRQ_WAKE_THREAD,4,2            ## @IRQ_WAKE_THREAD
	.no_dead_strip	_gemini_port_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gemini_port_irq
_gemini_port_irq:                       ; @gemini_port_irq
	.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
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x19, [x1]
	mov	x0, x19
	bl	_spin_lock
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _GLOBAL_INTERRUPT_STATUS_4_REG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GLOBAL_INTERRUPT_STATUS_4_REG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x22, _GLOBAL_INTERRUPT_ENABLE_4_REG@GOTPAGE
Lloh7:
	ldr	x22, [x22, _GLOBAL_INTERRUPT_ENABLE_4_REG@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	and	w9, w0, w21
Lloh8:
	adrp	x8, _SWFQ_EMPTY_INT_BIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SWFQ_EMPTY_INT_BIT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh11:
	adrp	x9, _GMAC0_RX_OVERRUN_INT_BIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GMAC0_RX_OVERRUN_INT_BIT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _GMAC1_RX_OVERRUN_INT_BIT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _GMAC1_RX_OVERRUN_INT_BIT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w0, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
Lloh17:
	adrp	x8, _IRQ_WAKE_THREAD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IRQ_WAKE_THREAD@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
LBB0_2:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_GLOBAL_INTERRUPT_STATUS_4_REG,8,3 ; @GLOBAL_INTERRUPT_STATUS_4_REG
	.comm	_GLOBAL_INTERRUPT_ENABLE_4_REG,8,3 ; @GLOBAL_INTERRUPT_ENABLE_4_REG
	.comm	_SWFQ_EMPTY_INT_BIT,4,2         ; @SWFQ_EMPTY_INT_BIT
	.comm	_GMAC0_RX_OVERRUN_INT_BIT,4,2   ; @GMAC0_RX_OVERRUN_INT_BIT
	.comm	_GMAC1_RX_OVERRUN_INT_BIT,4,2   ; @GMAC1_RX_OVERRUN_INT_BIT
	.comm	_IRQ_WAKE_THREAD,4,2            ; @IRQ_WAKE_THREAD
	.no_dead_strip	_gemini_port_irq
.subsections_via_symbols
