	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gelic_card_interrupt
_gelic_card_interrupt:                  ## @gelic_card_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
	movl	(%rsi), %r15d
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	andl	4(%rsi), %r15d
	movq	_GELIC_CARD_RXINT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_gelic_card_rx_irq_off
	leaq	32(%rbx), %rdi
	callq	_napi_schedule
LBB0_4:
	movq	_GELIC_CARD_TXINT@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_6
## %bb.5:
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	$0, 24(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_gelic_card_release_tx_chain
	movl	20(%rbx), %esi
	movq	%rbx, %rdi
	callq	_gelic_card_kick_txdma
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_6:
	movq	_GELIC_CARD_PORT_STATUS_CHANGED@GOTPCREL(%rip), %rax
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	testl	%r15d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_gelic_card_get_ether_port_status
	jmp	LBB0_8
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
LBB0_8:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_GELIC_CARD_RXINT,4,2           ## @GELIC_CARD_RXINT
	.comm	_GELIC_CARD_TXINT,4,2           ## @GELIC_CARD_TXINT
	.comm	_GELIC_CARD_PORT_STATUS_CHANGED,4,2 ## @GELIC_CARD_PORT_STATUS_CHANGED
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_GELIC_CARD_WLAN_COMMAND_COMPLETED,4,2 ## @GELIC_CARD_WLAN_COMMAND_COMPLETED
	.comm	_GELIC_CARD_WLAN_EVENT_RECEIVED,4,2 ## @GELIC_CARD_WLAN_EVENT_RECEIVED
	.comm	_GELIC_PORT_WIRELESS,8,3        ## @GELIC_PORT_WIRELESS
	.no_dead_strip	_gelic_card_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gelic_card_interrupt
_gelic_card_interrupt:                  ; @gelic_card_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
	ldr	w8, [x1]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x1
	ldr	w9, [x1, #4]
	and	w21, w9, w8
Lloh0:
	adrp	x8, _GELIC_CARD_RXINT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GELIC_CARD_RXINT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w21, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_gelic_card_rx_irq_off
	add	x0, x19, #32
	bl	_napi_schedule
LBB0_3:
Lloh3:
	adrp	x8, _GELIC_CARD_TXINT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GELIC_CARD_TXINT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	str	xzr, [x19, #24]
	mov	x0, x19
	mov	w1, #0
	bl	_gelic_card_release_tx_chain
	ldr	w1, [x19, #20]
	mov	x0, x19
	bl	_gelic_card_kick_txdma
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_5:
Lloh6:
	adrp	x8, _GELIC_CARD_PORT_STATUS_CHANGED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GELIC_CARD_PORT_STATUS_CHANGED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #1
	bl	_gelic_card_get_ether_port_status
LBB0_7:
Lloh9:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_GELIC_CARD_RXINT,4,2           ; @GELIC_CARD_RXINT
	.comm	_GELIC_CARD_TXINT,4,2           ; @GELIC_CARD_TXINT
	.comm	_GELIC_CARD_PORT_STATUS_CHANGED,4,2 ; @GELIC_CARD_PORT_STATUS_CHANGED
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_GELIC_CARD_WLAN_COMMAND_COMPLETED,4,2 ; @GELIC_CARD_WLAN_COMMAND_COMPLETED
	.comm	_GELIC_CARD_WLAN_EVENT_RECEIVED,4,2 ; @GELIC_CARD_WLAN_EVENT_RECEIVED
	.comm	_GELIC_PORT_WIRELESS,8,3        ; @GELIC_PORT_WIRELESS
	.no_dead_strip	_gelic_card_interrupt
.subsections_via_symbols
