	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function glc_txintr
_glc_txintr:                            ## @glc_txintr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	64(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	56(%rdi), %esi
	movl	60(%rdi), %edi
	movq	_BUS_DMASYNC_POSTREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bus_dmamap_sync
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_STAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	40(%r12), %rax
	movq	(%rbx), %rcx
	movq	_GELIC_DESCR_OWNED@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	andl	(%rax,%rcx,4), %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	jne	LBB0_12
## %bb.3:
	leaq	32(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_txs_q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STAILQ_REMOVE_HEAD
	movl	52(%r12), %edi
	movl	32(%rbx), %esi
	callq	_bus_dmamap_unload
	movl	24(%rbx), %eax
	subl	%eax, 48(%r12)
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_m_freem
	movq	$0, 16(%rbx)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%r12), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %eax
	cmpl	$268435456, %eax                ## imm = 0x10000000
	jb	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	24(%r12), %esi
	movl	28(%r12), %edi
	xorl	%edx, %edx
	callq	_lv1_net_stop_tx_dma
	movq	_IFCOUNTER_OERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_if_inc_counter
	movq	40(%r12), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_GELIC_CMDSTAT_CHAIN_END@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	$1, %eax
	cmovnel	%eax, %r14d
	movq	_txs_q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_STAILQ_INSERT_TAIL
	movq	_IFCOUNTER_OPACKETS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_if_inc_counter
	movq	%r15, %rdi
	callq	_STAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	40(%r12), %rax
	movq	(%rbx), %rcx
	movl	(%r13), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_5
LBB0_12:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	setne	%r14b
	movslq	8(%rbx), %rdx
	movl	%edx, (%r12)
	shlq	$2, %rdx
LBB0_13:
	movl	24(%r12), %esi
	movl	28(%r12), %edi
	addq	16(%r12), %rdx
	xorl	%ecx, %ecx
	callq	_lv1_net_start_tx_dma
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	12(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_device_printf
LBB0_15:
	testb	%r14b, %r14b
	jne	LBB0_18
LBB0_16:
	movq	_IFF_DRV_OACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	andl	%eax, (%rbx)
	movq	%r15, %rdi
	callq	_STAILQ_EMPTY
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leal	(%rcx,%rcx,4), %eax
	movl	%eax, 4(%r12)
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_18
## %bb.17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %rdi
	callq	_IFQ_DRV_IS_EMPTY
	testl	%eax, %eax
	jne	LBB0_18
## %bb.19:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_glc_start_locked               ## TAILCALL
LBB0_1:
	movl	$-1, (%r12)
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	$-1, (%r12)
	testl	%r14d, %r14d
	je	LBB0_16
## %bb.11:
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ## @BUS_DMASYNC_POSTREAD
	.comm	_GELIC_DESCR_OWNED,4,2          ## @GELIC_DESCR_OWNED
	.comm	_txs_q,4,2                      ## @txs_q
	.comm	_IFCOUNTER_OERRORS,4,2          ## @IFCOUNTER_OERRORS
	.comm	_GELIC_CMDSTAT_CHAIN_END,4,2    ## @GELIC_CMDSTAT_CHAIN_END
	.comm	_IFCOUNTER_OPACKETS,4,2         ## @IFCOUNTER_OPACKETS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lv1_net_start_tx_dma error: %d\n"

	.comm	_IFF_DRV_OACTIVE,4,2            ## @IFF_DRV_OACTIVE
	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.no_dead_strip	_glc_txintr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function glc_txintr
_glc_txintr:                            ; @glc_txintr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	x19, [x0, #64]
	ldr	w0, [x0, #60]
	ldr	w1, [x20, #56]
Lloh0:
	adrp	x8, _BUS_DMASYNC_POSTREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUS_DMASYNC_POSTREAD@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_bus_dmamap_sync
	add	x21, x20, #8
	mov	x0, x21
	bl	_STAILQ_FIRST
	cbz	x0, LBB0_16
; %bb.1:
	mov	x22, x0
	ldr	x8, [x20, #40]
	ldr	x9, [x0]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x25, _GELIC_DESCR_OWNED@GOTPAGE
Lloh4:
	ldr	x25, [x25, _GELIC_DESCR_OWNED@GOTPAGEOFF]
	ldr	w9, [x25]
	ands	w8, w9, w8
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b.ne	LBB0_9
; %bb.2:
	mov	w24, #0
	add	x23, x20, #32
Lloh5:
	adrp	x26, _txs_q@GOTPAGE
Lloh6:
	ldr	x26, [x26, _txs_q@GOTPAGEOFF]
Lloh7:
	adrp	x27, _GELIC_CMDSTAT_CHAIN_END@GOTPAGE
Lloh8:
	ldr	x27, [x27, _GELIC_CMDSTAT_CHAIN_END@GOTPAGEOFF]
Lloh9:
	adrp	x28, _IFCOUNTER_OPACKETS@GOTPAGE
Lloh10:
	ldr	x28, [x28, _IFCOUNTER_OPACKETS@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	x0, x21
	bl	_STAILQ_REMOVE_HEAD
	ldr	w0, [x20, #52]
	ldr	w1, [x22, #32]
	bl	_bus_dmamap_unload
	ldr	w8, [x22, #24]
	ldr	w9, [x20, #48]
	sub	w8, w9, w8
	str	w8, [x20, #48]
	ldr	x0, [x22, #16]
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_m_freem
	str	xzr, [x22, #16]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #40]
	ldr	x9, [x22]
	ldr	w8, [x8, x9, lsl #2]
	lsr	w9, w8, #28
	cbz	w9, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w1, w0, [x20, #24]
	mov	w2, #0
	bl	_lv1_net_stop_tx_dma
Lloh11:
	adrp	x8, _IFCOUNTER_OERRORS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IFCOUNTER_OERRORS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w24, #1
	mov	x0, x19
	mov	w2, #1
	bl	_if_inc_counter
	ldr	x8, [x20, #40]
	ldr	x9, [x22]
	ldr	w8, [x8, x9, lsl #2]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x27]
	tst	w9, w8
	csinc	w24, w24, wzr, eq
	ldr	w2, [x26]
	mov	x0, x23
	mov	x1, x22
	bl	_STAILQ_INSERT_TAIL
	ldr	w1, [x28]
	mov	x0, x19
	mov	w2, #1
	bl	_if_inc_counter
	mov	x0, x21
	bl	_STAILQ_FIRST
	cbz	x0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	ldr	x8, [x20, #40]
	ldr	x9, [x0]
	ldr	w8, [x8, x9, lsl #2]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_9:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #0
	cset	w23, ne
	ldrsw	x8, [x22, #8]
	str	w8, [x20]
	lsl	x8, x8, #2
LBB0_10:
	ldp	w1, w0, [x20, #24]
	ldr	x9, [x20, #16]
	add	x2, x9, x8
	mov	w3, #0
	bl	_lv1_net_start_tx_dma
	cbz	w0, LBB0_12
; %bb.11:
	mov	x2, x0
	ldr	w0, [x20, #12]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_printf
LBB0_12:
	tbnz	w23, #0, LBB0_17
LBB0_13:
Lloh16:
	adrp	x8, _IFF_DRV_OACTIVE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IFF_DRV_OACTIVE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	mov	x0, x21
	bl	_STAILQ_EMPTY
	cmp	x0, #0
	mov	w8, #5
	csel	w8, w8, wzr, eq
	str	w8, [x20, #4]
	ldr	w8, [x19]
Lloh19:
	adrp	x9, _IFF_DRV_RUNNING@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.14:
	add	x0, x19, #4
	bl	_IFQ_DRV_IS_EMPTY
	cbnz	w0, LBB0_17
; %bb.15:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_glc_start_locked
LBB0_16:
	mov	w8, #-1
	str	w8, [x20]
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_18:
	mov	w8, #-1
	str	w8, [x20]
	cbz	w24, LBB0_13
; %bb.19:
	mov	w23, #0
	mov	x8, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ; @BUS_DMASYNC_POSTREAD
	.comm	_GELIC_DESCR_OWNED,4,2          ; @GELIC_DESCR_OWNED
	.comm	_txs_q,4,2                      ; @txs_q
	.comm	_IFCOUNTER_OERRORS,4,2          ; @IFCOUNTER_OERRORS
	.comm	_GELIC_CMDSTAT_CHAIN_END,4,2    ; @GELIC_CMDSTAT_CHAIN_END
	.comm	_IFCOUNTER_OPACKETS,4,2         ; @IFCOUNTER_OPACKETS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lv1_net_start_tx_dma error: %d\n"

	.comm	_IFF_DRV_OACTIVE,4,2            ; @IFF_DRV_OACTIVE
	.comm	_IFF_DRV_RUNNING,4,2            ; @IFF_DRV_RUNNING
	.no_dead_strip	_glc_txintr
.subsections_via_symbols
