	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zone_import
_zone_import:                           ## @zone_import
	.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	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %r13
	movl	%edx, %r14d
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	andl	%eax, %r8d
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, %ebx
	jge	LBB0_9
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ecx
	callq	_zone_fetch_slab
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r12
	movq	8(%rax), %r15
	movslq	%ebx, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%r12)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpq	%r14, %rbx
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_slab_alloc_item
	movq	%rax, (%r13,%rbx,8)
	incq	%rbx
	movq	(%r15), %rax
	cmpq	8(%r15), %rax
	jg	LBB0_5
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	callq	_KEG_UNLOCK
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_UMA_ZONE_NUMA,4,2              ## @UMA_ZONE_NUMA
	.comm	_vm_ndomains,4,2                ## @vm_ndomains
	.no_dead_strip	_zone_import
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zone_import
_zone_import:                           ; @zone_import
	.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
	cmp	w2, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x21, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	mov	w28, #0
	mov	x25, #0
	mov	w27, w2
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh0:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w8, w21, w8
Lloh3:
	adrp	x9, _M_NOWAIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _M_NOWAIT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w21, w8, w9
	cmp	w28, w20
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x23
	mov	x1, x25
	mov	x2, x19
	mov	x3, x21
	bl	_zone_fetch_slab
	cbz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	ldr	x25, [x0, #8]
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	sxtw	x24, w28
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x26]
	cmp	x8, #0
	ccmp	x24, x27, #0, ne
	b.ge	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x25
	mov	x1, x26
	bl	_slab_alloc_item
	add	x28, x24, #1
	str	x0, [x22, x24, lsl #3]
	ldp	x8, x9, [x25]
	mov	x24, x28
	cmp	x8, x9
	b.gt	LBB0_6
	b	LBB0_3
LBB0_8:
	mov	w28, #0
	b	LBB0_10
LBB0_9:
	mov	x0, x25
	bl	_KEG_UNLOCK
LBB0_10:
	mov	x0, x28
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_UMA_ZONE_NUMA,4,2              ; @UMA_ZONE_NUMA
	.comm	_vm_ndomains,4,2                ; @vm_ndomains
	.no_dead_strip	_zone_import
.subsections_via_symbols
