	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ncci_remove
_ncci_remove:                           ## @ncci_remove
	.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
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	16(%rdi), %r12
	movl	%esi, %r15d
	shll	$16, %r15d
	movl	(%rdi), %ebx
	shll	$8, %ebx
	orl	(%r12), %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_ncci_free_receive_buffers
LBB0_2:
	orl	%ebx, %r15d
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.11:
	movq	8(%r12), %rax
	movslq	%r14d, %rbx
	movq	(%rax,%rbx,8), %rax
	cmpq	(%r13), %rax
	jne	LBB0_24
## %bb.12:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_cleanup_ncci_data
	movq	_ncci_mapping_bug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %r8
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %edx
	movq	%rbx, %r15
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
	movq	16(%r12), %rax
	movq	40(%r12), %rcx
	movq	(%rax,%r15,8), %rdx
	movq	$0, (%rcx,%rdx,8)
	testl	%ebx, %ebx
	jne	LBB0_23
## %bb.13:
	movq	$0, (%rax,%r15,8)
	movq	8(%r12), %rax
	movq	$0, (%rax,%r15,8)
	movq	_IDLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	32(%r12), %rcx
	movq	%rax, (%rcx,%r15,8)
	movl	8(%r13), %ecx
	movq	24(%r12), %rax
	movl	%ecx, %edi
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	testl	%edi, %edi
	je	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%edi, %esi
	movslq	%edi, %rdx
	movl	(%rax,%rdx,4), %edi
	cmpl	%ecx, %edi
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%r14d, %edi
	jne	LBB0_14
LBB0_17:
	cmpl	%r14d, %edi
	jne	LBB0_22
## %bb.18:
	xorl	%edi, %edi
	cmpl	%r14d, %esi
	je	LBB0_20
## %bb.19:
	movl	%esi, %edi
	cmpl	%r14d, %ecx
	jne	LBB0_21
LBB0_20:
	movl	%edi, 8(%r13)
LBB0_21:
	movl	(%rax,%rbx,4), %ecx
	movl	%ecx, (%rax,%rdx,4)
LBB0_22:
	movl	$0, (%rax,%rbx,4)
	jmp	LBB0_23
LBB0_3:
	movq	_MAX_NCCI@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	jle	LBB0_9
## %bb.4:
	xorl	%r14d, %r14d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%rdx), %rax
	incq	%r14
	cmpq	%rax, %r14
	jge	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	8(%rax,%r14,8), %rax
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%r14), %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_cleanup_ncci_data
	movq	_ncci_mapping_bug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r12), %rax
	movq	8(%rax,%r14,8), %r8
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %edx
	movl	%r15d, %r13d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
	movq	16(%r12), %rax
	movq	40(%r12), %rcx
	movq	8(%rax,%r14,8), %rdx
	movq	$0, (%rcx,%rdx,8)
	movq	_MAX_NCCI@GOTPCREL(%rip), %rdx
	testl	%r15d, %r15d
	movl	%r13d, %r15d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, 8(%rax,%r14,8)
	movq	8(%r12), %rax
	movq	$0, 8(%rax,%r14,8)
	movq	_IDLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	32(%r12), %rcx
	movq	%rax, 8(%rcx,%r14,8)
	movq	24(%r12), %rax
	movl	$0, 4(%rax,%r14,4)
	jmp	LBB0_8
LBB0_9:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_23
## %bb.10:
	movl	$0, 8(%r13)
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	_ncci_mapping_bug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	incl	%esi
	movl	%esi, (%rax)
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	addq	$24, %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 doesn't exist %ld %08lx %02x"

L_.str.1:                               ## @.str.1
	.asciz	"NCCI mapping released %ld %08lx %02x %02x-%02x"

	.comm	_IDLE,8,3                       ## @IDLE
	.comm	_MAX_NCCI,4,2                   ## @MAX_NCCI
	.no_dead_strip	_ncci_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ncci_remove
_ncci_remove:                           ; @ncci_remove
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x24, [x0, #16]
	ldr	w8, [x0]
	ldr	w9, [x24]
	orr	w9, w9, w1, lsl #16
	orr	w21, w9, w8, lsl #8
	cbz	w2, LBB0_10
; %bb.1:
	cbz	w22, LBB0_11
LBB0_2:
	ldr	x8, [x24, #8]
	ldr	x8, [x8, w22, sxtw #3]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.3:
	sxtw	x23, w22
	mov	x0, x19
	mov	x1, x22
	bl	_cleanup_ncci_data
Lloh0:
	adrp	x8, _ncci_mapping_bug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ncci_mapping_bug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x24, #16]
	lsl	x25, x23, #3
	ldr	x8, [x8, x25]
	mov	x9, x22
	stp	x8, x9, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
	ldr	x9, [x24, #40]
	ldr	x8, [x24, #16]
	ldr	x10, [x8, x25]
	str	xzr, [x9, x10, lsl #3]
	cbnz	w20, LBB0_24
; %bb.4:
	str	xzr, [x8, x25]
	ldr	x8, [x24, #8]
	str	xzr, [x8, x25]
Lloh5:
	adrp	x8, _IDLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IDLE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x24, #32]
	str	x8, [x9, x25]
	ldr	w10, [x19, #8]
	ldr	x8, [x24, #24]
	mov	x11, x10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w11, LBB0_23
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, x11
	ldr	w11, [x8, w11, sxtw #2]
	cmp	w11, w10
	ccmp	w11, w22, #4, ne
	b.ne	LBB0_5
; %bb.7:
	cmp	w11, w22
	b.ne	LBB0_23
; %bb.8:
	sxtw	x11, w9
	cmp	w9, w22
	b.ne	LBB0_20
; %bb.9:
	mov	w9, #0
	b	LBB0_21
LBB0_10:
	mov	x0, x19
	mov	x1, x22
	bl	_ncci_free_receive_buffers
	cbnz	w22, LBB0_2
LBB0_11:
Lloh8:
	adrp	x25, _MAX_NCCI@GOTPAGE
Lloh9:
	ldr	x25, [x25, _MAX_NCCI@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.12:
	mov	w22, #1
Lloh10:
	adrp	x26, _ncci_mapping_bug@GOTPAGE
Lloh11:
	ldr	x26, [x26, _ncci_mapping_bug@GOTPAGEOFF]
Lloh12:
	adrp	x27, _IDLE@GOTPAGE
Lloh13:
	ldr	x27, [x27, _IDLE@GOTPAGEOFF]
Lloh14:
	adrp	x23, l_.str.1@PAGE
Lloh15:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x22, #1
	ldrsw	x9, [x25]
	cmp	x22, x9
	mov	x22, x8
	b.ge	LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #8]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_cleanup_ncci_data
	ldr	w1, [x26]
	ldr	x8, [x24, #16]
	lsl	x28, x22, #3
	ldr	x8, [x8, x28]
	stp	x8, x22, [sp]
	mov	x0, x23
	mov	x2, x21
	mov	x3, x20
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
	ldr	x9, [x24, #40]
	ldr	x8, [x24, #16]
	ldr	x10, [x8, x28]
	str	xzr, [x9, x10, lsl #3]
	cbnz	w20, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	str	xzr, [x8, x28]
	ldr	x8, [x24, #8]
	str	xzr, [x8, x28]
	ldr	x8, [x27]
	ldr	x9, [x24, #32]
	str	x8, [x9, x28]
	ldr	x8, [x24, #24]
	str	wzr, [x8, x22, lsl #2]
	b	LBB0_13
LBB0_17:
	cbnz	w20, LBB0_24
; %bb.18:
	str	wzr, [x19, #8]
	b	LBB0_24
LBB0_19:
Lloh16:
	adrp	x8, _ncci_mapping_bug@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ncci_mapping_bug@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w1, w9, #1
	str	w1, [x8]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_dbug
LBB0_20:
	cmp	w10, w22
	b.ne	LBB0_22
LBB0_21:
	str	w9, [x19, #8]
LBB0_22:
	ldr	w9, [x8, x23, lsl #2]
	str	w9, [x8, x11, lsl #2]
LBB0_23:
	str	wzr, [x8, x23, lsl #2]
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ncci_mapping_bug,4,2           ; @ncci_mapping_bug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NCCI mapping doesn't exist %ld %08lx %02x"

l_.str.1:                               ; @.str.1
	.asciz	"NCCI mapping released %ld %08lx %02x %02x-%02x"

	.comm	_IDLE,8,3                       ; @IDLE
	.comm	_MAX_NCCI,4,2                   ; @MAX_NCCI
	.no_dead_strip	_ncci_remove
.subsections_via_symbols
