	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ncci_free_receive_buffers
_ncci_free_receive_buffers:             ## @ncci_free_receive_buffers
	.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, %r13
	movq	(%rdi), %r9
	movq	16(%rdi), %r12
	movl	%esi, %ecx
	shll	$16, %ecx
	movl	%r9d, %r14d
	shll	$8, %r14d
	orl	%ecx, %r14d
	movl	(%r12), %ecx
	orl	%ecx, %r14d
	testl	%esi, %esi
	je	LBB0_1
## %bb.6:
	movq	8(%r12), %rdx
	movslq	%esi, %rdi
	cmpq	%r9, (%rdx,%rdi,8)
	jne	LBB0_14
## %bb.7:
	movq	8(%r13), %r8
	testq	%r8, %r8
	je	LBB0_23
## %bb.8:
	movl	(%r8), %edi
	testl	%edi, %edi
	jle	LBB0_14
## %bb.9:
	shll	$8, %ecx
	orl	%esi, %ecx
	movq	8(%r8), %rsi
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movslq	%edi, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%ecx, (%rsi,%rbx,4)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%r8), %rdx
	movl	(%rdx,%rbx,4), %edx
	sarl	$8, %edx
	movslq	%edx, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$0, (%rsi,%rbx,4)
	movl	(%r8), %edi
	jmp	LBB0_13
LBB0_1:
	movq	_MAX_NCCI@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	jle	LBB0_14
## %bb.2:
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movq	8(%r12), %rcx
	cmpq	%r9, (%rcx,%r15,8)
	jne	LBB0_21
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rcx), %edx
	testl	%edx, %edx
	jle	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %edi
	shll	$8, %edi
	movl	%r15d, %esi
	orl	%edi, %esi
	movq	8(%rcx), %rdi
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=2
	incq	%rbx
	movslq	%edx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_21
LBB0_17:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%esi, (%rdi,%rbx,4)
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	16(%rcx), %rax
	movl	(%rax,%rbx,4), %eax
	sarl	$8, %eax
	cltq
	cmpq	%rax, %r9
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=2
	movl	$0, (%rdi,%rbx,4)
	movl	(%rcx), %edx
	jmp	LBB0_20
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_ncci_mapping_bug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	incl	%esi
	movl	%esi, (%rax)
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %edx
	movq	%r8, %rbx
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
	movq	%rbx, %r8
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r8), %rax
	cmpq	%rax, %r15
	jge	LBB0_14
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movq	(%r13), %r9
	jmp	LBB0_3
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_ncci_mapping_bug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	incl	%esi
	movl	%esi, (%rax)
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dbug                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ncci_mapping_bug,4,2           ## @ncci_mapping_bug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NCCI mapping appl expected %ld %08lx"

	.comm	_MAX_NCCI,4,2                   ## @MAX_NCCI
L_.str.1:                               ## @.str.1
	.asciz	"NCCI mapping no appl %ld %08lx"

	.no_dead_strip	_ncci_free_receive_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ncci_free_receive_buffers
_ncci_free_receive_buffers:             ; @ncci_free_receive_buffers
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	ldr	x22, [x0, #16]
	ldr	x8, [x0]
	ldr	w12, [x22]
	orr	w9, w12, w1, lsl #16
	orr	w19, w9, w8, lsl #8
	cbz	w1, LBB0_9
; %bb.1:
	ldr	x9, [x22, #8]
	ldr	x9, [x9, w1, sxtw #3]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.2:
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_23
; %bb.3:
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_22
; %bb.4:
	mov	x11, #0
	orr	w12, w1, w12, lsl #8
	ldr	x13, [x9, #8]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x11, x11, #1
	cmp	x11, w10, sxtw
	b.ge	LBB0_22
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x13, x11, lsl #2]
	cmp	w14, w12
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x14, [x9, #16]
	ldr	w14, [x14, x11, lsl #2]
	asr	w14, w14, #8
	cmp	x8, w14, sxtw
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [x13, x11, lsl #2]
	ldr	w10, [x9]
	b	LBB0_5
LBB0_9:
Lloh0:
	adrp	x23, _MAX_NCCI@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAX_NCCI@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.10:
	mov	w24, #1
Lloh2:
	adrp	x25, _ncci_mapping_bug@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ncci_mapping_bug@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	ldr	x9, [x22, #8]
	ldr	x9, [x9, x24, lsl #3]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x11, #0
	ldr	w12, [x22]
	orr	w12, w24, w12, lsl #8
	ldr	x13, [x9, #8]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	x11, x11, #1
	cmp	x11, w10, sxtw
	b.ge	LBB0_20
LBB0_16:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x13, x11, lsl #2]
	cmp	w14, w12
	b.ne	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	x14, [x9, #16]
	ldr	w14, [x14, x11, lsl #2]
	asr	w14, w14, #8
	cmp	x8, w14, sxtw
	b.ne	LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	str	wzr, [x13, x11, lsl #2]
	ldr	w10, [x9]
	b	LBB0_15
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x25]
	add	w1, w8, #1
	str	w1, [x25]
	mov	x0, x21
	mov	x2, x19
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
LBB0_20:                                ;   in Loop: Header=BB0_11 Depth=1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.ge	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x24, x24, #1
	ldr	x8, [x20]
	b	LBB0_11
LBB0_22:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_23:
Lloh6:
	adrp	x8, _ncci_mapping_bug@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ncci_mapping_bug@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w1, w9, #1
	str	w1, [x8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dbug
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ncci_mapping_bug,4,2           ; @ncci_mapping_bug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NCCI mapping appl expected %ld %08lx"

	.comm	_MAX_NCCI,4,2                   ; @MAX_NCCI
l_.str.1:                               ; @.str.1
	.asciz	"NCCI mapping no appl %ld %08lx"

	.no_dead_strip	_ncci_free_receive_buffers
.subsections_via_symbols
