	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function awg_stop
_awg_stop:                              ## @awg_stop
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_AWG_ASSERT_LOCKED
	movl	76(%r15), %r13d
	leaq	72(%r15), %rdi
	callq	_callout_stop
	movq	_EMAC_TX_CTL_1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_RD4
	movq	_TX_DMA_EN@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_FLUSH_TX_FIFO@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_WR4
	movq	_EMAC_TX_CTL_0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_RD4
	movl	(%rbx), %esi
	movq	_TX_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r15, %rdi
	callq	_WR4
	movq	_EMAC_RX_CTL_0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_RD4
	movl	(%rbx), %esi
	movq	_RX_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r15, %rdi
	callq	_WR4
	movq	%r15, %rdi
	callq	_awg_disable_intr
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_RD4
	movl	(%r14), %esi
	movl	(%r12), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r15, %rdi
	callq	_WR4
	movq	_EMAC_RX_CTL_1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_RD4
	movl	(%rbx), %esi
	movq	_RX_DMA_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r15, %rdi
	callq	_WR4
	movq	$0, 64(%r15)
	movq	%r15, %rdi
	callq	_awg_txeof
	movl	24(%r15), %ebx
	cmpq	$0, 32(%r15)
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	jle	LBB0_4
## %bb.1:
	movq	_TX_DESC_CTL@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r15), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_le32toh
	testl	%eax, (%r12)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_awg_clean_txbuf
	movl	%ebx, %edi
	callq	_TX_NEXT
	movl	%eax, %ebx
	cmpq	$0, 32(%r15)
	jg	LBB0_2
LBB0_4:
	movl	%ebx, 24(%r15)
	jmp	LBB0_8
LBB0_5:
	movl	%ebx, 24(%r15)
	cmpq	$0, 32(%r15)
	jle	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r15), %rax
	movslq	%ebx, %rbx
	movq	$0, (%rax,%rbx,8)
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_awg_clean_txbuf
	movl	%ebx, %edi
	callq	_TX_NEXT
	movl	%eax, %ebx
	cmpq	$0, 32(%r15)
	jg	LBB0_6
## %bb.7:
	movl	24(%r15), %ebx
LBB0_8:
	movl	%ebx, 40(%r15)
	movl	44(%r15), %esi
	movl	48(%r15), %edi
	movq	_BUS_DMASYNC_PREREAD@GOTPCREL(%rip), %r12
	movq	_BUS_DMASYNC_PREWRITE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	(%r12), %edx
	callq	_bus_dmamap_sync
	movl	4(%r15), %esi
	movl	8(%r15), %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
	movslq	(%r15), %rbx
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_le32toh
	movq	_RX_DESC_CTL@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	jne	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_awg_reuse_rxdesc
	movl	%ebx, %edi
	callq	_RX_NEXT
	movl	%eax, %ebx
	movq	16(%r15), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_le32toh
	testl	%eax, (%r14)
	je	LBB0_9
LBB0_11:
	movl	%ebx, (%r15)
	movl	4(%r15), %esi
	movl	8(%r15), %edi
	movl	(%r13), %edx
	orl	(%r12), %edx
	callq	_bus_dmamap_sync
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rax
	movq	_IFF_DRV_OACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_if_setdrvflagbits              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_TX_CTL_1,4,2              ## @EMAC_TX_CTL_1
	.comm	_TX_DMA_EN,4,2                  ## @TX_DMA_EN
	.comm	_FLUSH_TX_FIFO,4,2              ## @FLUSH_TX_FIFO
	.comm	_EMAC_TX_CTL_0,4,2              ## @EMAC_TX_CTL_0
	.comm	_TX_EN,4,2                      ## @TX_EN
	.comm	_EMAC_RX_CTL_0,4,2              ## @EMAC_RX_CTL_0
	.comm	_RX_EN,4,2                      ## @RX_EN
	.comm	_EMAC_RX_CTL_1,4,2              ## @EMAC_RX_CTL_1
	.comm	_RX_DMA_EN,4,2                  ## @RX_DMA_EN
	.comm	_TX_DESC_CTL,4,2                ## @TX_DESC_CTL
	.comm	_BUS_DMASYNC_PREREAD,4,2        ## @BUS_DMASYNC_PREREAD
	.comm	_BUS_DMASYNC_PREWRITE,4,2       ## @BUS_DMASYNC_PREWRITE
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ## @BUS_DMASYNC_POSTREAD
	.comm	_BUS_DMASYNC_POSTWRITE,4,2      ## @BUS_DMASYNC_POSTWRITE
	.comm	_RX_DESC_CTL,4,2                ## @RX_DESC_CTL
	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.comm	_IFF_DRV_OACTIVE,4,2            ## @IFF_DRV_OACTIVE
	.no_dead_strip	_awg_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function awg_stop
_awg_stop:                              ; @awg_stop
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_AWG_ASSERT_LOCKED
	ldr	w19, [x20, #76]
	add	x0, x20, #72
	bl	_callout_stop
Lloh0:
	adrp	x21, _EMAC_TX_CTL_1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EMAC_TX_CTL_1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_RD4
Lloh2:
	adrp	x22, _TX_DMA_EN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TX_DMA_EN@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w8, w0, w8
Lloh4:
	adrp	x9, _FLUSH_TX_FIFO@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FLUSH_TX_FIFO@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	w1, [x21]
	mov	x0, x20
	bl	_WR4
Lloh7:
	adrp	x23, _EMAC_TX_CTL_0@GOTPAGE
Lloh8:
	ldr	x23, [x23, _EMAC_TX_CTL_0@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_RD4
	ldr	w1, [x23]
Lloh9:
	adrp	x8, _TX_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TX_EN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x20
	bl	_WR4
Lloh12:
	adrp	x23, _EMAC_RX_CTL_0@GOTPAGE
Lloh13:
	ldr	x23, [x23, _EMAC_RX_CTL_0@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_RD4
	ldr	w1, [x23]
Lloh14:
	adrp	x8, _RX_EN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RX_EN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x20
	bl	_WR4
	mov	x0, x20
	bl	_awg_disable_intr
	ldr	w1, [x21]
	mov	x0, x20
	bl	_RD4
	ldr	w1, [x21]
	ldr	w8, [x22]
	bic	w2, w0, w8
	mov	x0, x20
	bl	_WR4
Lloh17:
	adrp	x21, _EMAC_RX_CTL_1@GOTPAGE
Lloh18:
	ldr	x21, [x21, _EMAC_RX_CTL_1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_RD4
	ldr	w1, [x21]
Lloh19:
	adrp	x8, _RX_DMA_EN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RX_DMA_EN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x20
	bl	_WR4
	str	xzr, [x20, #64]
	mov	x0, x20
	bl	_awg_txeof
	ldr	w21, [x20, #24]
	ldr	x8, [x20, #32]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.1:
Lloh22:
	adrp	x22, _TX_DESC_CTL@GOTPAGE
Lloh23:
	ldr	x22, [x22, _TX_DESC_CTL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #56]
	ldr	x0, [x8, w21, sxtw #3]
	bl	_le32toh
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_awg_clean_txbuf
	mov	x0, x21
	bl	_TX_NEXT
	mov	x21, x0
	ldr	x8, [x20, #32]
	cmp	x8, #0
	b.gt	LBB0_2
LBB0_4:
	str	w21, [x20, #24]
	b	LBB0_8
LBB0_5:
	ldr	x8, [x20, #32]
	str	w21, [x20, #24]
	cmp	x8, #1
	b.lt	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #56]
	str	xzr, [x8, w21, sxtw #3]
	mov	x0, x20
	mov	x1, x21
	bl	_awg_clean_txbuf
	mov	x0, x21
	bl	_TX_NEXT
	mov	x21, x0
	ldr	x8, [x20, #32]
	cmp	x8, #0
	b.gt	LBB0_6
; %bb.7:
	ldr	w21, [x20, #24]
LBB0_8:
	str	w21, [x20, #40]
Lloh24:
	adrp	x22, _BUS_DMASYNC_PREREAD@GOTPAGE
Lloh25:
	ldr	x22, [x22, _BUS_DMASYNC_PREREAD@GOTPAGEOFF]
	ldp	w1, w0, [x20, #44]
	ldr	w8, [x22]
Lloh26:
	adrp	x23, _BUS_DMASYNC_PREWRITE@GOTPAGE
Lloh27:
	ldr	x23, [x23, _BUS_DMASYNC_PREWRITE@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w2, w9, w8
	bl	_bus_dmamap_sync
Lloh28:
	adrp	x8, _BUS_DMASYNC_POSTREAD@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BUS_DMASYNC_POSTREAD@GOTPAGEOFF]
	ldp	w1, w0, [x20, #4]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _BUS_DMASYNC_POSTWRITE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _BUS_DMASYNC_POSTWRITE@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_bus_dmamap_sync
	ldrsw	x21, [x20]
	ldr	x8, [x20, #16]
	ldr	x0, [x8, x21, lsl #3]
	bl	_le32toh
Lloh34:
	adrp	x24, _RX_DESC_CTL@GOTPAGE
Lloh35:
	ldr	x24, [x24, _RX_DESC_CTL@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_awg_reuse_rxdesc
	mov	x0, x21
	bl	_RX_NEXT
	mov	x21, x0
	ldr	x8, [x20, #16]
	ldr	x0, [x8, w0, sxtw #3]
	bl	_le32toh
	b	LBB0_9
LBB0_11:
	str	w21, [x20]
	ldp	w1, w0, [x20, #4]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w2, w9, w8
	bl	_bus_dmamap_sync
Lloh36:
	adrp	x8, _IFF_DRV_RUNNING@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh38:
	adrp	x9, _IFF_DRV_OACTIVE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _IFF_DRV_OACTIVE@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_if_setdrvflagbits
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_TX_CTL_1,4,2              ; @EMAC_TX_CTL_1
	.comm	_TX_DMA_EN,4,2                  ; @TX_DMA_EN
	.comm	_FLUSH_TX_FIFO,4,2              ; @FLUSH_TX_FIFO
	.comm	_EMAC_TX_CTL_0,4,2              ; @EMAC_TX_CTL_0
	.comm	_TX_EN,4,2                      ; @TX_EN
	.comm	_EMAC_RX_CTL_0,4,2              ; @EMAC_RX_CTL_0
	.comm	_RX_EN,4,2                      ; @RX_EN
	.comm	_EMAC_RX_CTL_1,4,2              ; @EMAC_RX_CTL_1
	.comm	_RX_DMA_EN,4,2                  ; @RX_DMA_EN
	.comm	_TX_DESC_CTL,4,2                ; @TX_DESC_CTL
	.comm	_BUS_DMASYNC_PREREAD,4,2        ; @BUS_DMASYNC_PREREAD
	.comm	_BUS_DMASYNC_PREWRITE,4,2       ; @BUS_DMASYNC_PREWRITE
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ; @BUS_DMASYNC_POSTREAD
	.comm	_BUS_DMASYNC_POSTWRITE,4,2      ; @BUS_DMASYNC_POSTWRITE
	.comm	_RX_DESC_CTL,4,2                ; @RX_DESC_CTL
	.comm	_IFF_DRV_RUNNING,4,2            ; @IFF_DRV_RUNNING
	.comm	_IFF_DRV_OACTIVE,4,2            ; @IFF_DRV_OACTIVE
	.no_dead_strip	_awg_stop
.subsections_via_symbols
