	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_pool_populate              ## -- Begin function ttm_pool_populate
	.p2align	4, 0x90
_ttm_pool_populate:                     ## @ttm_pool_populate
	.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), %rax
	movq	_tt_unpopulated@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	32(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	movl	8(%rdi), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_ttm_check_under_lowerlimit
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_3:
	movq	16(%r13), %rdi
	movl	8(%r13), %esi
	movl	12(%r13), %edx
	movl	24(%r13), %ecx
	callq	_ttm_get_pages
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_ttm_pool_unpopulate_helper
LBB0_5:
	movl	%ebx, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpl	$0, 8(%r13)
	je	LBB0_11
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rcx
	callq	_ttm_mem_global_alloc_page
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movl	8(%r13), %eax
	cmpq	%rax, %rbx
	jb	LBB0_9
LBB0_11:
	movq	_TTM_PAGE_FLAG_SWAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	12(%r13), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%r13, %rdi
	callq	_ttm_tt_swapin
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	callq	_ttm_pool_unpopulate
	jmp	LBB0_5
LBB0_14:
	movq	_tt_unbound@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	jmp	LBB0_6
LBB0_15:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_ttm_pool_unpopulate_helper
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_tt_unpopulated,8,3             ## @tt_unpopulated
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_TTM_PAGE_FLAG_SWAPPED,4,2      ## @TTM_PAGE_FLAG_SWAPPED
	.comm	_tt_unbound,8,3                 ## @tt_unbound
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_pool_populate              ; -- Begin function ttm_pool_populate
	.p2align	2
_ttm_pool_populate:                     ; @ttm_pool_populate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _tt_unpopulated@GOTPAGE
Lloh1:
	ldr	x9, [x9, _tt_unpopulated@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x8, [x8]
	ldr	x21, [x8]
	ldr	w1, [x0, #8]
	mov	x0, x21
	mov	x2, x20
	bl	_ttm_check_under_lowerlimit
	cbz	x0, LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_4
LBB0_3:
	mov	w22, #0
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x0, [x19, #16]
	ldp	w1, w2, [x19, #8]
	ldr	w3, [x19, #24]
	bl	_ttm_get_pages
	mov	x22, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	bl	_ttm_pool_unpopulate_helper
	b	LBB0_4
LBB0_7:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_11
; %bb.8:
	mov	x22, #0
Lloh6:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w1, [x8, x22, lsl #2]
	ldr	w2, [x23]
	mov	x0, x21
	mov	x3, x20
	bl	_ttm_mem_global_alloc_page
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
	ldr	w8, [x19, #8]
	cmp	x22, x8
	b.lo	LBB0_9
LBB0_11:
	ldr	w8, [x19, #12]
Lloh8:
	adrp	x9, _TTM_PAGE_FLAG_SWAPPED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TTM_PAGE_FLAG_SWAPPED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_ttm_tt_swapin
	mov	x22, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_ttm_pool_unpopulate
	b	LBB0_4
LBB0_14:
	mov	w22, #0
Lloh11:
	adrp	x8, _tt_unbound@GOTPAGE
Lloh12:
	ldr	x8, [x8, _tt_unbound@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_4
LBB0_15:
	mov	x0, x19
	mov	x1, x22
	bl	_ttm_pool_unpopulate_helper
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_tt_unpopulated,8,3             ; @tt_unpopulated
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_TTM_PAGE_FLAG_SWAPPED,4,2      ; @TTM_PAGE_FLAG_SWAPPED
	.comm	_tt_unbound,8,3                 ; @tt_unbound
.subsections_via_symbols
