	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_page_alloc_init            ## -- Begin function ttm_page_alloc_init
	.p2align	4, 0x90
_ttm_page_alloc_init:                   ## @ttm_page_alloc_init
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	__manager@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_WARN_ON
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	movq	%rax, (%r15)
	leaq	28(%rax), %rdi
	movq	_GFP_HIGHUSER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_ttm_page_pool_init_locked
	movq	(%r15), %rdi
	addq	$24, %rdi
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdx
	callq	_ttm_page_pool_init_locked
	movq	(%r15), %rdi
	addq	$20, %rdi
	movq	_GFP_USER@GOTPCREL(%rip), %r13
	movq	_GFP_DMA32@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	(%r13), %esi
	leaq	L_.str.3(%rip), %rdx
	callq	_ttm_page_pool_init_locked
	movq	(%r15), %rdi
	addq	$16, %rdi
	movl	(%rbx), %esi
	orl	(%r13), %esi
	leaq	L_.str.4(%rip), %rdx
	callq	_ttm_page_pool_init_locked
	movq	(%r15), %rdi
	movl	%r12d, 4(%rdi)
	movq	_SMALL_ALLOCATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	movq	_NUM_PAGES_TO_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movq	_ttm_pool_kobj_type@GOTPCREL(%rip), %rsi
	leaq	L_.str.5(%rip), %rcx
	movq	%r14, %rdx
	callq	_kobject_init_and_add
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	movq	(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_kobject_put
	movq	$0, (%r15)
	jmp	LBB0_3
LBB0_2:
	callq	_ttm_pool_mm_shrink_init
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__manager,8,3                   ## @_manager
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initializing pool allocator\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_GFP_HIGHUSER,4,2               ## @GFP_HIGHUSER
L_.str.1:                               ## @.str.1
	.asciz	"wc"

L_.str.2:                               ## @.str.2
	.asciz	"uc"

	.comm	_GFP_USER,4,2                   ## @GFP_USER
	.comm	_GFP_DMA32,4,2                  ## @GFP_DMA32
L_.str.3:                               ## @.str.3
	.asciz	"wc dma"

L_.str.4:                               ## @.str.4
	.asciz	"uc dma"

	.comm	_SMALL_ALLOCATION,4,2           ## @SMALL_ALLOCATION
	.comm	_NUM_PAGES_TO_ALLOC,4,2         ## @NUM_PAGES_TO_ALLOC
	.comm	_ttm_pool_kobj_type,4,2         ## @ttm_pool_kobj_type
L_.str.5:                               ## @.str.5
	.asciz	"pool"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_page_alloc_init            ; -- Begin function ttm_page_alloc_init
	.p2align	2
_ttm_page_alloc_init:                   ; @ttm_page_alloc_init
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, __manager@GOTPAGE
Lloh1:
	ldr	x21, [x21, __manager@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_WARN_ON
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	str	x0, [x21]
	add	x0, x0, #28
Lloh7:
	adrp	x22, _GFP_HIGHUSER@GOTPAGE
Lloh8:
	ldr	x22, [x22, _GFP_HIGHUSER@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_ttm_page_pool_init_locked
	ldr	x8, [x21]
	add	x0, x8, #24
	ldr	w1, [x22]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_ttm_page_pool_init_locked
	ldr	x8, [x21]
Lloh13:
	adrp	x22, _GFP_USER@GOTPAGE
Lloh14:
	ldr	x22, [x22, _GFP_USER@GOTPAGEOFF]
	add	x0, x8, #20
	ldr	w8, [x22]
Lloh15:
	adrp	x23, _GFP_DMA32@GOTPAGE
Lloh16:
	ldr	x23, [x23, _GFP_DMA32@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w1, w9, w8
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_ttm_page_pool_init_locked
	ldr	x8, [x21]
	add	x0, x8, #16
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w1, w9, w8
Lloh19:
	adrp	x2, l_.str.4@PAGE
Lloh20:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_ttm_page_pool_init_locked
	ldr	x0, [x21]
Lloh21:
	adrp	x8, _SMALL_ALLOCATION@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SMALL_ALLOCATION@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x0, #12]
Lloh24:
	adrp	x8, _NUM_PAGES_TO_ALLOC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NUM_PAGES_TO_ALLOC@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	stp	w20, w8, [x0, #4]
Lloh27:
	adrp	x1, _ttm_pool_kobj_type@GOTPAGE
Lloh28:
	ldr	x1, [x1, _ttm_pool_kobj_type@GOTPAGEOFF]
Lloh29:
	adrp	x3, l_.str.5@PAGE
Lloh30:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x2, x19
	bl	_kobject_init_and_add
	mov	x19, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	mov	x8, x0
	ldr	x0, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_kobject_put
	str	xzr, [x21]
	b	LBB0_3
LBB0_2:
	bl	_ttm_pool_mm_shrink_init
	mov	w19, #0
LBB0_3:
	mov	x0, x19
	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
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	__manager,8,3                   ; @_manager
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initializing pool allocator\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_GFP_HIGHUSER,4,2               ; @GFP_HIGHUSER
l_.str.1:                               ; @.str.1
	.asciz	"wc"

l_.str.2:                               ; @.str.2
	.asciz	"uc"

	.comm	_GFP_USER,4,2                   ; @GFP_USER
	.comm	_GFP_DMA32,4,2                  ; @GFP_DMA32
l_.str.3:                               ; @.str.3
	.asciz	"wc dma"

l_.str.4:                               ; @.str.4
	.asciz	"uc dma"

	.comm	_SMALL_ALLOCATION,4,2           ; @SMALL_ALLOCATION
	.comm	_NUM_PAGES_TO_ALLOC,4,2         ; @NUM_PAGES_TO_ALLOC
	.comm	_ttm_pool_kobj_type,4,2         ; @ttm_pool_kobj_type
l_.str.5:                               ; @.str.5
	.asciz	"pool"

.subsections_via_symbols
