	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function glc_intr
_glc_intr:                              ## @glc_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_mtx_lock
	leaq	24(%r14), %rdi
	callq	_atomic_readandclear_64
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movl	%eax, %ebx
	movq	_GELIC_INT_RXDONE@GOTPCREL(%rip), %rax
	movq	_GELIC_INT_RXFRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_glc_rxintr
LBB0_3:
	movq	_GELIC_INT_TXDONE@GOTPCREL(%rip), %rax
	movq	_GELIC_INT_TX_CHAIN_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_glc_txintr
LBB0_5:
	movq	_GELIC_INT_PHY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.6:
	movl	16(%r14), %esi
	movl	20(%r14), %edi
	movq	_GELIC_GET_LINK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GELIC_VLAN_TX_ETHERNET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %rax
	leaq	-20(%rbp), %rbx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rbx
	callq	_lv1_net_control
	addq	$16, %rsp
	movq	_GELIC_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-20(%rbp), %eax
	jne	LBB0_7
## %bb.8:
	movq	_LINK_STATE_DOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_12:
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
LBB0_7:
	movq	_LINK_STATE_UP@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	movl	%esi, -20(%rbp)
	movq	8(%r14), %rdi
	cmpl	(%rdi), %esi
	je	LBB0_11
## %bb.10:
	callq	_if_link_state_change
LBB0_11:
	movq	%r14, %rdi
	callq	_mtx_unlock
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GELIC_INT_RXDONE,4,2           ## @GELIC_INT_RXDONE
	.comm	_GELIC_INT_RXFRAME,4,2          ## @GELIC_INT_RXFRAME
	.comm	_GELIC_INT_TXDONE,4,2           ## @GELIC_INT_TXDONE
	.comm	_GELIC_INT_TX_CHAIN_END,4,2     ## @GELIC_INT_TX_CHAIN_END
	.comm	_GELIC_INT_PHY,4,2              ## @GELIC_INT_PHY
	.comm	_GELIC_GET_LINK_STATUS,4,2      ## @GELIC_GET_LINK_STATUS
	.comm	_GELIC_VLAN_TX_ETHERNET,4,2     ## @GELIC_VLAN_TX_ETHERNET
	.comm	_GELIC_LINK_UP,4,2              ## @GELIC_LINK_UP
	.comm	_LINK_STATE_UP,4,2              ## @LINK_STATE_UP
	.comm	_LINK_STATE_DOWN,4,2            ## @LINK_STATE_DOWN
	.no_dead_strip	_glc_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function glc_intr
_glc_intr:                              ; @glc_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_mtx_lock
	add	x0, x19, #24
	bl	_atomic_readandclear_64
	cbz	w0, LBB0_9
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _GELIC_INT_RXDONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GELIC_INT_RXDONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _GELIC_INT_RXFRAME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GELIC_INT_RXFRAME@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_glc_rxintr
LBB0_3:
Lloh6:
	adrp	x8, _GELIC_INT_TXDONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GELIC_INT_TXDONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _GELIC_INT_TX_CHAIN_END@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GELIC_INT_TX_CHAIN_END@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_glc_txintr
LBB0_5:
Lloh12:
	adrp	x8, _GELIC_INT_PHY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GELIC_INT_PHY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.6:
	ldp	w1, w0, [x19, #16]
Lloh15:
	adrp	x8, _GELIC_GET_LINK_STATUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GELIC_GET_LINK_STATUS@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _GELIC_VLAN_TX_ETHERNET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GELIC_VLAN_TX_ETHERNET@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	add	x6, sp, #12
	add	x7, sp, #8
	mov	w4, #0
	mov	w5, #0
	bl	_lv1_net_control
	ldr	w8, [sp, #12]
Lloh21:
	adrp	x9, _GELIC_LINK_UP@GOTPAGE
Lloh22:
	ldr	x9, [x9, _GELIC_LINK_UP@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _LINK_STATE_UP@GOTPAGE
Lloh25:
	ldr	x10, [x10, _LINK_STATE_UP@GOTPAGEOFF]
Lloh26:
	adrp	x11, _LINK_STATE_DOWN@GOTPAGE
Lloh27:
	ldr	x11, [x11, _LINK_STATE_DOWN@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w1, [x8]
	str	w1, [sp, #12]
	ldr	x0, [x19, #8]
	ldr	w8, [x0]
	cmp	w1, w8
	b.eq	LBB0_8
; %bb.7:
	bl	_if_link_state_change
LBB0_8:
	mov	x0, x19
	bl	_mtx_unlock
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_mtx_unlock
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GELIC_INT_RXDONE,4,2           ; @GELIC_INT_RXDONE
	.comm	_GELIC_INT_RXFRAME,4,2          ; @GELIC_INT_RXFRAME
	.comm	_GELIC_INT_TXDONE,4,2           ; @GELIC_INT_TXDONE
	.comm	_GELIC_INT_TX_CHAIN_END,4,2     ; @GELIC_INT_TX_CHAIN_END
	.comm	_GELIC_INT_PHY,4,2              ; @GELIC_INT_PHY
	.comm	_GELIC_GET_LINK_STATUS,4,2      ; @GELIC_GET_LINK_STATUS
	.comm	_GELIC_VLAN_TX_ETHERNET,4,2     ; @GELIC_VLAN_TX_ETHERNET
	.comm	_GELIC_LINK_UP,4,2              ; @GELIC_LINK_UP
	.comm	_LINK_STATE_UP,4,2              ; @LINK_STATE_UP
	.comm	_LINK_STATE_DOWN,4,2            ; @LINK_STATE_DOWN
	.no_dead_strip	_glc_intr
.subsections_via_symbols
