	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_dma_page_alloc_init        ## -- Begin function ttm_dma_page_alloc_init
	.p2align	4, 0x90
_ttm_dma_page_alloc_init:               ## @ttm_dma_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	__manager@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_WARN_ON
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	addq	$20, %rax
	movq	%rax, %rdi
	callq	_mutex_init
	movq	(%r12), %rdi
	addq	$16, %rdi
	callq	_INIT_LIST_HEAD
	movq	(%r12), %rdi
	movl	%r15d, 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.1(%rip), %rcx
	movq	%r14, %rdx
	callq	_kobject_init_and_add
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	movq	(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	callq	_kobject_put
	jmp	LBB0_4
LBB0_3:
	callq	_ttm_dma_pool_mm_shrink_init
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	__manager,8,3                   ## @_manager
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initializing DMA pool allocator\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.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.1:                               ## @.str.1
	.asciz	"dma_pool"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_dma_page_alloc_init        ; -- Begin function ttm_dma_page_alloc_init
	.p2align	2
_ttm_dma_page_alloc_init:               ; @ttm_dma_page_alloc_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x21, __manager@GOTPAGE
Lloh4:
	ldr	x21, [x21, __manager@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_WARN_ON
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	str	x0, [x21]
	cbz	x0, LBB0_3
; %bb.1:
	add	x0, x0, #20
	bl	_mutex_init
	ldr	x8, [x21]
	add	x0, x8, #16
	bl	_INIT_LIST_HEAD
	ldr	x0, [x21]
Lloh10:
	adrp	x8, _SMALL_ALLOCATION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SMALL_ALLOCATION@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x0, #12]
Lloh13:
	adrp	x8, _NUM_PAGES_TO_ALLOC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NUM_PAGES_TO_ALLOC@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	stp	w20, w8, [x0, #4]
Lloh16:
	adrp	x1, _ttm_pool_kobj_type@GOTPAGE
Lloh17:
	ldr	x1, [x1, _ttm_pool_kobj_type@GOTPAGEOFF]
Lloh18:
	adrp	x3, l_.str.1@PAGE
Lloh19:
	add	x3, x3, l_.str.1@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_4
; %bb.2:
	bl	_kobject_put
	b	LBB0_5
LBB0_3:
	neg	w19, w22
	b	LBB0_5
LBB0_4:
	bl	_ttm_dma_pool_mm_shrink_init
	mov	w19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	__manager,8,3                   ; @_manager
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initializing DMA pool allocator\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.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.1:                               ; @.str.1
	.asciz	"dma_pool"

.subsections_via_symbols
