	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_zero_stag_recv
_build_zero_stag_recv:                  ## @build_zero_stag_recv
	.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	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	16(%rdi), %rdi
	movq	_T3_STAG0_PBL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cxio_hal_pblpool_alloc
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %ebx
	movq	16(%r15), %rax
	movl	(%rax), %r14d
	movl	(%r12), %edi
	callq	_cpu_to_be32
	movq	%rax, 24(%r13)
	cmpl	$0, (%r12)
	jle	LBB0_4
## %bb.11:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	subl	%r14d, %ebx
	sarl	$3, %ebx
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r15), %rcx
	movq	_T3_STAG0_MAX_PBE_LEN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jg	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_T3_STAG0_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	16(%r13), %rdx
	movq	%rcx, (%rdx,%r14,8)
	cmpq	$0, 8(%rax,%r15)
	jne	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r13), %rcx
	movq	$0, 16(%rcx,%r15)
	movl	(%rax,%r15), %edi
	callq	_cpu_to_be32
	movq	8(%r13), %rcx
	movq	%rax, 8(%rcx,%r15)
	movq	8(%r12), %rax
	movl	16(%rax,%r15), %edi
	callq	_cpu_to_be64
	movq	8(%r13), %rcx
	movq	%rax, (%rcx,%r15)
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%r14,8)
	addl	$2, %ebx
	incq	%r14
	movslq	(%r12), %rax
	addq	$24, %r15
	cmpq	%rax, %r14
	jl	LBB0_12
## %bb.5:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_4:
	xorl	%r14d, %r14d
LBB0_6:
	movq	_T3_MAX_SGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r14d
	jge	LBB0_9
## %bb.7:
	movl	%r14d, %ecx
	leaq	(,%rcx,8), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rsi
	movq	$0, (%rsi,%rcx,8)
	movq	8(%r13), %rsi
	movq	$0, 16(%rsi,%rdx)
	movq	8(%r13), %rsi
	movq	$0, 8(%rsi,%rdx)
	movq	8(%r13), %rsi
	movq	$0, (%rsi,%rdx)
	movq	(%r13), %rsi
	movq	$0, (%rsi,%rcx,8)
	incq	%rcx
	addq	$24, %rdx
	cmpq	%rcx, %rax
	jne	LBB0_8
LBB0_9:
	movl	4(%r12), %r14d
	movq	8(%r15), %r12
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_Q_PTR2IDX
	movl	%r14d, 4(%r12,%rax,8)
	movq	8(%r15), %r14
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_Q_PTR2IDX
	movl	%ebx, (%r14,%rax,8)
	xorl	%eax, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_T3_STAG0_PBL_SIZE,4,2          ## @T3_STAG0_PBL_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_T3_STAG0_MAX_PBE_LEN,8,3       ## @T3_STAG0_MAX_PBE_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_T3_STAG0_PAGE_SHIFT,8,3        ## @T3_STAG0_PAGE_SHIFT
	.comm	_T3_MAX_SGE,4,2                 ## @T3_MAX_SGE
	.no_dead_strip	_build_zero_stag_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_zero_stag_recv
_build_zero_stag_recv:                  ; @build_zero_stag_recv
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x8, _T3_STAG0_PBL_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _T3_STAG0_PBL_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cxio_hal_pblpool_alloc
	cbz	w0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	w23, [x8]
	ldr	w0, [x21]
	bl	_cpu_to_be32
	str	x0, [x22, #24]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x25, #0
	mov	x24, #0
	sub	w8, w20, w23
	asr	w23, w8, #3
Lloh3:
	adrp	x26, _T3_STAG0_MAX_PBE_LEN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _T3_STAG0_MAX_PBE_LEN@GOTPAGEOFF]
Lloh5:
	adrp	x27, _T3_STAG0_PAGE_SHIFT@GOTPAGE
Lloh6:
	ldr	x27, [x27, _T3_STAG0_PAGE_SHIFT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [x8, x25]
	ldr	x10, [x26]
	cmp	x9, x10
	b.gt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x27]
	ldr	x10, [x22, #16]
	str	x9, [x10, x24, lsl #3]
	add	x9, x8, x25
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x22, #8]
	add	x9, x9, x25
	str	xzr, [x9, #16]
	ldr	w0, [x8, x25]
	bl	_cpu_to_be32
	ldr	x8, [x22, #8]
	add	x8, x8, x25
	str	x0, [x8, #8]
	ldr	x8, [x21, #8]
	add	x8, x8, x25
	ldr	w0, [x8, #16]
	bl	_cpu_to_be64
	ldr	x8, [x22, #8]
	str	x0, [x8, x25]
	mov	x0, x23
	bl	_cpu_to_be32
	ldr	x8, [x22]
	str	x0, [x8, x24, lsl #3]
	add	w23, w23, #2
	add	x24, x24, #1
	ldrsw	x8, [x21]
	add	x25, x25, #24
	cmp	x24, x8
	b.lt	LBB0_3
	b	LBB0_10
LBB0_6:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_9:
	mov	w24, #0
LBB0_10:
Lloh11:
	adrp	x8, _T3_MAX_SGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _T3_MAX_SGE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ge	LBB0_13
; %bb.11:
	mov	w9, w24
	add	x10, x9, w24, uxtw #1
	lsl	x10, x10, #3
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x22, #16]
	lsl	x12, x9, #3
	str	xzr, [x11, x12]
	ldr	x11, [x22, #8]
	add	x11, x11, x10
	str	xzr, [x11, #16]
	ldr	x11, [x22, #8]
	add	x11, x11, x10
	str	xzr, [x11, #8]
	ldr	x11, [x22, #8]
	str	xzr, [x11, x10]
	ldr	x11, [x22]
	str	xzr, [x11, x12]
	add	x9, x9, #1
	add	x10, x10, #24
	cmp	x8, x9
	b.ne	LBB0_12
LBB0_13:
	ldr	w21, [x21, #4]
	ldr	x22, [x19, #8]
	ldp	w1, w0, [x19]
	bl	_Q_PTR2IDX
	add	x8, x22, x0, lsl #3
	str	w21, [x8, #4]
	ldr	x21, [x19, #8]
	ldp	w1, w0, [x19]
	bl	_Q_PTR2IDX
	mov	x8, x0
	mov	w0, #0
	lsl	x8, x8, #3
	str	w20, [x21, x8]
LBB0_14:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_T3_STAG0_PBL_SIZE,4,2          ; @T3_STAG0_PBL_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_T3_STAG0_MAX_PBE_LEN,8,3       ; @T3_STAG0_MAX_PBE_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_T3_STAG0_PAGE_SHIFT,8,3        ; @T3_STAG0_PAGE_SHIFT
	.comm	_T3_MAX_SGE,4,2                 ; @T3_MAX_SGE
	.no_dead_strip	_build_zero_stag_recv
.subsections_via_symbols
