	.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
	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, %rbx
	movq	__manager@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_WARN_ON
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	addq	$36, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_HIGHUSER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_ttm_page_pool_init_locked
	movq	(%r13), %rdi
	addq	$32, %rdi
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_ttm_page_pool_init_locked
	movq	(%r13), %rdi
	addq	$28, %rdi
	movq	_GFP_USER@GOTPCREL(%rip), %rbx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_GFP_DMA32@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	orl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_ttm_page_pool_init_locked
	movq	(%r13), %rdi
	addq	$24, %rdi
	movl	(%r14), %esi
	orl	(%rbx), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_ttm_page_pool_init_locked
	movq	_GFP_TRANSHUGE_LIGHT@GOTPCREL(%rip), %rcx
	movq	___GFP_NORETRY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	orl	(%rcx), %eax
	movq	(%r13), %rdi
	movq	___GFP_KSWAPD_RECLAIM@GOTPCREL(%rip), %r15
	orl	(%r15), %eax
	addq	$20, %rdi
	movq	___GFP_MOVABLE@GOTPCREL(%rip), %r14
	movq	___GFP_COMP@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	orl	(%r14), %esi
	notl	%esi
	andl	%eax, %esi
	leaq	L_.str.5(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_ttm_page_pool_init_locked
	movq	(%r13), %rdi
	movl	(%rbx), %eax
	movq	_GFP_TRANSHUGE_LIGHT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	addq	$16, %rdi
	orl	(%r15), %eax
	movl	(%r12), %esi
	orl	(%r14), %esi
	xorl	%r14d, %r14d
	notl	%esi
	andl	%eax, %esi
	leaq	L_.str.6(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_ttm_page_pool_init_locked
	movq	(%r13), %rdi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 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.7(%rip), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_kobject_init_and_add
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	(%r13), %rdi
	callq	_ttm_pool_mm_shrink_init
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	(%r13), %rdi
	callq	_kobject_put
	movq	$0, (%r13)
	movl	%ebx, %r14d
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %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	_ENOMEM,4,2                     ## @ENOMEM
	.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	_GFP_TRANSHUGE_LIGHT,4,2        ## @GFP_TRANSHUGE_LIGHT
	.comm	___GFP_NORETRY,4,2              ## @__GFP_NORETRY
	.comm	___GFP_KSWAPD_RECLAIM,4,2       ## @__GFP_KSWAPD_RECLAIM
	.comm	___GFP_MOVABLE,4,2              ## @__GFP_MOVABLE
	.comm	___GFP_COMP,4,2                 ## @__GFP_COMP
L_.str.5:                               ## @.str.5
	.asciz	"wc huge"

L_.str.6:                               ## @.str.6
	.asciz	"uc huge"

	.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.7:                               ## @.str.7
	.asciz	"pool"

	.comm	_HPAGE_PMD_ORDER,4,2            ## @HPAGE_PMD_ORDER
.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	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	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, #40
	bl	_kzalloc
	str	x0, [x21]
	cbz	x0, LBB0_4
; %bb.1:
	add	x0, x0, #36
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
	mov	w3, #0
	bl	_ttm_page_pool_init_locked
	ldr	x8, [x21]
	add	x0, x8, #32
	ldr	w1, [x22]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w3, #0
	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, #28
	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
	mov	w3, #0
	bl	_ttm_page_pool_init_locked
	ldr	x8, [x21]
	add	x0, x8, #24
	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
	mov	w3, #0
	bl	_ttm_page_pool_init_locked
	ldr	x8, [x21]
Lloh21:
	adrp	x22, _GFP_TRANSHUGE_LIGHT@GOTPAGE
Lloh22:
	ldr	x22, [x22, _GFP_TRANSHUGE_LIGHT@GOTPAGEOFF]
	add	x0, x8, #20
	ldr	w8, [x22]
Lloh23:
	adrp	x23, ___GFP_NORETRY@GOTPAGE
Lloh24:
	ldr	x23, [x23, ___GFP_NORETRY@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w9, w8
Lloh25:
	adrp	x24, ___GFP_KSWAPD_RECLAIM@GOTPAGE
Lloh26:
	ldr	x24, [x24, ___GFP_KSWAPD_RECLAIM@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh27:
	adrp	x25, ___GFP_MOVABLE@GOTPAGE
Lloh28:
	ldr	x25, [x25, ___GFP_MOVABLE@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh29:
	adrp	x26, ___GFP_COMP@GOTPAGE
Lloh30:
	ldr	x26, [x26, ___GFP_COMP@GOTPAGEOFF]
	ldr	w10, [x26]
	orr	w9, w10, w9
	bic	w1, w8, w9
Lloh31:
	adrp	x2, l_.str.5@PAGE
Lloh32:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	w3, #0
	bl	_ttm_page_pool_init_locked
	ldr	x8, [x21]
	add	x0, x8, #16
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w8, w8, w9
	ldr	w9, [x25]
	ldr	w10, [x26]
	orr	w9, w10, w9
	bic	w1, w8, w9
Lloh33:
	adrp	x2, l_.str.6@PAGE
Lloh34:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	w3, #0
	bl	_ttm_page_pool_init_locked
	ldr	x0, [x21]
Lloh35:
	adrp	x8, _SMALL_ALLOCATION@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SMALL_ALLOCATION@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	str	w8, [x0, #12]
Lloh38:
	adrp	x8, _NUM_PAGES_TO_ALLOC@GOTPAGE
Lloh39:
	ldr	x8, [x8, _NUM_PAGES_TO_ALLOC@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	stp	w20, w8, [x0, #4]
Lloh41:
	adrp	x1, _ttm_pool_kobj_type@GOTPAGE
Lloh42:
	ldr	x1, [x1, _ttm_pool_kobj_type@GOTPAGEOFF]
Lloh43:
	adrp	x3, l_.str.7@PAGE
Lloh44:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x2, x19
	bl	_kobject_init_and_add
	mov	x19, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x21]
	bl	_ttm_pool_mm_shrink_init
	mov	x19, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_5
LBB0_3:
	ldr	x0, [x21]
	bl	_kobject_put
	str	xzr, [x21]
	b	LBB0_6
LBB0_4:
Lloh45:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_6
LBB0_5:
	mov	w19, #0
LBB0_6:
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.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	Lloh45, Lloh46, Lloh47
	.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	_ENOMEM,4,2                     ; @ENOMEM
	.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	_GFP_TRANSHUGE_LIGHT,4,2        ; @GFP_TRANSHUGE_LIGHT
	.comm	___GFP_NORETRY,4,2              ; @__GFP_NORETRY
	.comm	___GFP_KSWAPD_RECLAIM,4,2       ; @__GFP_KSWAPD_RECLAIM
	.comm	___GFP_MOVABLE,4,2              ; @__GFP_MOVABLE
	.comm	___GFP_COMP,4,2                 ; @__GFP_COMP
l_.str.5:                               ; @.str.5
	.asciz	"wc huge"

l_.str.6:                               ; @.str.6
	.asciz	"uc huge"

	.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.7:                               ; @.str.7
	.asciz	"pool"

	.comm	_HPAGE_PMD_ORDER,4,2            ; @HPAGE_PMD_ORDER
.subsections_via_symbols
