	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keg_first_slab
_keg_first_slab:                        ## @keg_first_slab
	.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	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	testl	%esi, %esi
	setns	%al
	movq	_vm_ndomains@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	movslq	%esi, %rsi
	callq	_KASSERT
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_KEG_LOCK_ASSERT
	movl	%r12d, %r13d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r12d, %r13d
	je	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	movslq	%r13d, %rbx
	leaq	(%r15,%rbx,8), %r14
	movq	%r14, %rdi
	callq	_LIST_EMPTY
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%r15,%rbx,8), %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_LIST_EMPTY
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r13d
	movl	%r13d, %eax
	cltd
	movq	_vm_ndomains@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movl	%edx, %r13d
	jmp	LBB0_6
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LIST_FIRST                     ## TAILCALL
LBB0_3:
	movq	%r15, %rdi
	callq	_LIST_FIRST
	movq	%rax, %rbx
	movq	_us_link@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_LIST_REMOVE
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_LIST_INSERT_HEAD
LBB0_8:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vm_ndomains,4,2                ## @vm_ndomains
	.comm	_us_link,4,2                    ## @us_link
	.no_dead_strip	_keg_first_slab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keg_first_slab
_keg_first_slab:                        ; @keg_first_slab
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	w1, #0
Lloh0:
	adrp	x24, _vm_ndomains@GOTPAGE
Lloh1:
	ldr	x24, [x24, _vm_ndomains@GOTPAGEOFF]
	ldr	w8, [x24]
	ccmp	w8, w1, #4, ge
	cset	w0, gt
	sxtw	x1, w20
	bl	_KASSERT
	mov	x0, x21
	bl	_KEG_LOCK_ASSERT
	mov	x25, x20
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, w20
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x21]
	add	x22, x23, w25, sxtw #3
	mov	x0, x22
	bl	_LIST_EMPTY
	cbz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x8, w25
	add	x8, x23, x8, lsl #3
	add	x23, x8, #4
	mov	x0, x23
	bl	_LIST_EMPTY
	cbz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w19, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w25, #1
	ldr	w9, [x24]
	sdiv	w10, w8, w9
	msub	w25, w10, w9, w8
	b	LBB0_1
LBB0_6:
	mov	x19, #0
	b	LBB0_9
LBB0_7:
	mov	x0, x22
	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	_LIST_FIRST
LBB0_8:
	mov	x0, x23
	bl	_LIST_FIRST
	mov	x19, x0
Lloh2:
	adrp	x20, _us_link@GOTPAGE
Lloh3:
	ldr	x20, [x20, _us_link@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_LIST_REMOVE
	ldr	w2, [x20]
	mov	x0, x22
	mov	x1, x19
	bl	_LIST_INSERT_HEAD
LBB0_9:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_vm_ndomains,4,2                ; @vm_ndomains
	.comm	_us_link,4,2                    ; @us_link
	.no_dead_strip	_keg_first_slab
.subsections_via_symbols
