	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function awg_newbuf_rx
_awg_newbuf_rx:                         ## @awg_newbuf_rx
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_PKTHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_m_getcl
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	%eax, 8(%rbx)
	movq	_ETHER_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_m_adj
	movl	8(%r15), %edi
	movl	12(%r15), %esi
	movq	_BUS_DMA_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-40(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movq	%rbx, %rdx
	callq	_bus_dmamap_load_mbuf_sg
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_m_freem
LBB0_1:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_4:
	movq	(%r15), %rax
	movslq	%r14d, %r12
	shlq	$4, %r12
	cmpq	$0, (%rax,%r12)
	je	LBB0_6
## %bb.5:
	movl	8(%r15), %edi
	movl	8(%rax,%r12), %esi
	movq	_BUS_DMASYNC_POSTREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bus_dmamap_sync
	movl	8(%r15), %edi
	movq	(%r15), %rax
	movl	8(%rax,%r12), %esi
	callq	_bus_dmamap_unload
	movq	(%r15), %rax
LBB0_6:
	movl	8(%rax,%r12), %ecx
	movl	12(%r15), %esi
	movl	%esi, 8(%rax,%r12)
	movl	%ecx, 12(%r15)
	movl	8(%r15), %edi
	movq	_BUS_DMASYNC_PREREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bus_dmamap_sync
	movq	(%r15), %rax
	movq	%rbx, (%rax,%r12)
	movl	-40(%rbp), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_awg_setup_rxdesc
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_MT_DATA,4,2                    ## @MT_DATA
	.comm	_M_PKTHDR,4,2                   ## @M_PKTHDR
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_ETHER_ALIGN,4,2                ## @ETHER_ALIGN
	.comm	_BUS_DMA_NOWAIT,4,2             ## @BUS_DMA_NOWAIT
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ## @BUS_DMASYNC_POSTREAD
	.comm	_BUS_DMASYNC_PREREAD,4,2        ## @BUS_DMASYNC_PREREAD
	.no_dead_strip	_awg_newbuf_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function awg_newbuf_rx
_awg_newbuf_rx:                         ; @awg_newbuf_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _MT_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _M_PKTHDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _M_PKTHDR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_m_getcl
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0]
	stp	w8, w8, [x0, #4]
Lloh9:
	adrp	x8, _ETHER_ALIGN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETHER_ALIGN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_m_adj
	ldp	w0, w1, [x20, #8]
Lloh12:
	adrp	x8, _BUS_DMA_NOWAIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BUS_DMA_NOWAIT@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x2, x21
	bl	_bus_dmamap_load_mbuf_sg
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_m_freem
LBB0_3:
Lloh15:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_4:
	ldr	x8, [x20]
	sxtw	x9, w19
	sbfiz	x10, x19, #4, #32
	ldr	x10, [x8, x10]
	lsl	x22, x9, #4
	cbz	x10, LBB0_6
; %bb.5:
	ldr	w0, [x20, #8]
	add	x8, x8, x22
	ldr	w1, [x8, #8]
Lloh18:
	adrp	x8, _BUS_DMASYNC_POSTREAD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BUS_DMASYNC_POSTREAD@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	bl	_bus_dmamap_sync
	ldr	w0, [x20, #8]
	ldr	x8, [x20]
	add	x8, x8, x22
	ldr	w1, [x8, #8]
	bl	_bus_dmamap_unload
	ldr	x8, [x20]
LBB0_6:
	add	x8, x8, x22
	ldr	w9, [x8, #8]
	ldp	w0, w1, [x20, #8]
	str	w1, [x8, #8]
	str	w9, [x20, #12]
Lloh21:
	adrp	x8, _BUS_DMASYNC_PREREAD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BUS_DMASYNC_PREREAD@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	bl	_bus_dmamap_sync
	ldr	x8, [x20]
	str	x21, [x8, x22]
	ldr	w2, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_awg_setup_rxdesc
	mov	w0, #0
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_MT_DATA,4,2                    ; @MT_DATA
	.comm	_M_PKTHDR,4,2                   ; @M_PKTHDR
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_ETHER_ALIGN,4,2                ; @ETHER_ALIGN
	.comm	_BUS_DMA_NOWAIT,4,2             ; @BUS_DMA_NOWAIT
	.comm	_BUS_DMASYNC_POSTREAD,4,2       ; @BUS_DMASYNC_POSTREAD
	.comm	_BUS_DMASYNC_PREREAD,4,2        ; @BUS_DMASYNC_PREREAD
	.no_dead_strip	_awg_newbuf_rx
.subsections_via_symbols
