	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function awg_txeof
_awg_txeof:                             ## @awg_txeof
	.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, %rbx
	callq	_AWG_ASSERT_LOCKED
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	movq	_BUS_DMASYNC_POSTREAD@GOTPCREL(%rip), %rax
	movq	_BUS_DMASYNC_POSTWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_bus_dmamap_sync
	cmpq	$0, 8(%rbx)
	jle	LBB0_10
## %bb.1:
	movl	32(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %r12d
	xorl	%r13d, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	$1, %edx
	callq	_if_inc_counter
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_awg_clean_txbuf
	movl	%r12d, %edi
	callq	_TX_NEXT
	movl	%eax, %r12d
	decl	%r13d
	cmpq	$0, 8(%rbx)
	jle	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %r14
	movslq	%r12d, %r15
	movl	4(%r14,%r15,8), %edi
	callq	_le32toh
	movl	%eax, %ebx
	movq	_TX_DESC_CTL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14,%r15,8), %edi
	callq	_le32toh
	movq	_TX_LAST_DESC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TX_PAYLOAD_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_TX_HEADER_ERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_IFCOUNTER_OERRORS@GOTPCREL(%rip), %rax
	testl	%ebx, %ecx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_IFCOUNTER_OPACKETS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_9:
	testl	%r13d, %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_10
LBB0_8:
	movl	%r12d, (%rbx)
	movq	_IFF_DRV_OACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_if_setdrvflagbits              ## TAILCALL
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ## @BUS_DMASYNC_POSTREAD
	.comm	_BUS_DMASYNC_POSTWRITE,4,2      ## @BUS_DMASYNC_POSTWRITE
	.comm	_TX_DESC_CTL,4,2                ## @TX_DESC_CTL
	.comm	_TX_LAST_DESC,4,2               ## @TX_LAST_DESC
	.comm	_TX_HEADER_ERR,4,2              ## @TX_HEADER_ERR
	.comm	_TX_PAYLOAD_ERR,4,2             ## @TX_PAYLOAD_ERR
	.comm	_IFCOUNTER_OERRORS,4,2          ## @IFCOUNTER_OERRORS
	.comm	_IFCOUNTER_OPACKETS,4,2         ## @IFCOUNTER_OPACKETS
	.comm	_IFF_DRV_OACTIVE,4,2            ## @IFF_DRV_OACTIVE
	.no_dead_strip	_awg_txeof
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function awg_txeof
_awg_txeof:                             ; @awg_txeof
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	bl	_AWG_ASSERT_LOCKED
Lloh0:
	adrp	x8, _BUS_DMASYNC_POSTREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUS_DMASYNC_POSTREAD@GOTPAGEOFF]
	ldp	w1, w0, [x19, #24]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BUS_DMASYNC_POSTWRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BUS_DMASYNC_POSTWRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_bus_dmamap_sync
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w23, #0
	ldr	w20, [x19, #32]
	ldr	w21, [x19]
Lloh6:
	adrp	x24, _TX_DESC_CTL@GOTPAGE
Lloh7:
	ldr	x24, [x24, _TX_DESC_CTL@GOTPAGEOFF]
Lloh8:
	adrp	x25, _TX_LAST_DESC@GOTPAGE
Lloh9:
	ldr	x25, [x25, _TX_LAST_DESC@GOTPAGEOFF]
Lloh10:
	adrp	x28, _IFCOUNTER_OPACKETS@GOTPAGE
Lloh11:
	ldr	x28, [x28, _IFCOUNTER_OPACKETS@GOTPAGEOFF]
Lloh12:
	adrp	x26, _IFCOUNTER_OERRORS@GOTPAGE
Lloh13:
	ldr	x26, [x26, _IFCOUNTER_OERRORS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_awg_clean_txbuf
	mov	x0, x21
	bl	_TX_NEXT
	mov	x21, x0
	ldr	x8, [x19, #8]
	sub	w23, w23, #1
	cmp	x8, #0
	b.le	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, #16]
	add	x8, x27, w21, sxtw #3
	ldr	w0, [x8, #4]
	bl	_le32toh
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	sxtw	x8, w21
	lsl	x8, x8, #3
	ldr	w0, [x27, x8]
	bl	_le32toh
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh14:
	adrp	x8, _TX_HEADER_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TX_HEADER_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _TX_PAYLOAD_ERR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TX_PAYLOAD_ERR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w22
	csel	x8, x28, x26, eq
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_if_inc_counter
	b	LBB0_2
LBB0_6:
	cbz	w23, LBB0_8
LBB0_7:
	str	w21, [x19]
Lloh20:
	adrp	x8, _IFF_DRV_OACTIVE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IFF_DRV_OACTIVE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_if_setdrvflagbits
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ; @BUS_DMASYNC_POSTREAD
	.comm	_BUS_DMASYNC_POSTWRITE,4,2      ; @BUS_DMASYNC_POSTWRITE
	.comm	_TX_DESC_CTL,4,2                ; @TX_DESC_CTL
	.comm	_TX_LAST_DESC,4,2               ; @TX_LAST_DESC
	.comm	_TX_HEADER_ERR,4,2              ; @TX_HEADER_ERR
	.comm	_TX_PAYLOAD_ERR,4,2             ; @TX_PAYLOAD_ERR
	.comm	_IFCOUNTER_OERRORS,4,2          ; @IFCOUNTER_OERRORS
	.comm	_IFCOUNTER_OPACKETS,4,2         ; @IFCOUNTER_OPACKETS
	.comm	_IFF_DRV_OACTIVE,4,2            ; @IFF_DRV_OACTIVE
	.no_dead_strip	_awg_txeof
.subsections_via_symbols
