	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_mem_init_kernel_zone
_ttm_mem_init_kernel_zone:              ## @ttm_mem_init_kernel_zone
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movl	(%rbx), %eax
	subl	4(%rbx), %eax
	imull	8(%rbx), %eax
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%r15)
	movl	%eax, 8(%r15)
	movl	%eax, %edx
	sarl	%edx
	movl	%edx, 12(%r15)
	movl	%eax, %esi
	sarl	$2, %esi
	addl	%edx, %esi
	movl	%esi, 16(%r15)
	sarl	$3, %eax
	subl	%eax, %edx
	movl	%edx, 20(%r15)
	movq	$0, 40(%r15)
	movq	%r14, 32(%r15)
	movq	%r15, 24(%r14)
	movq	%r15, %r12
	addq	$24, %r12
	leaq	16(%r14), %rdx
	movq	_ttm_mem_zone_kobj_type@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_kobject_init_and_add
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_kobject_put
	jmp	LBB0_5
LBB0_4:
	movq	8(%r14), %rax
	movslq	(%r14), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%r14)
	movq	%r15, (%rax,%rcx,8)
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kernel"

	.comm	_ttm_mem_zone_kobj_type,4,2     ## @ttm_mem_zone_kobj_type
	.no_dead_strip	_ttm_mem_init_kernel_zone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_mem_init_kernel_zone
_ttm_mem_init_kernel_zone:              ; @ttm_mem_init_kernel_zone
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_2:
	ldp	w8, w9, [x21]
	sub	w8, w8, w9
	ldr	w9, [x21, #8]
	mul	w8, w8, w9
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	str	x3, [x20]
	asr	w9, w8, #1
	stp	w8, w9, [x20, #8]
	add	w10, w9, w8, asr #2
	sub	w8, w9, w8, asr #3
	stp	w10, w8, [x20, #16]
	stp	x19, xzr, [x20, #32]
	str	x20, [x19, #24]
	add	x22, x20, #24
	add	x2, x19, #16
Lloh8:
	adrp	x1, _ttm_mem_zone_kobj_type@GOTPAGE
Lloh9:
	ldr	x1, [x1, _ttm_mem_zone_kobj_type@GOTPAGEOFF]
	mov	x0, x22
	bl	_kobject_init_and_add
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_kobject_put
	b	LBB0_5
LBB0_4:
	mov	w21, #0
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	w10, w9, #1
	str	w10, [x19]
	str	x20, [x8, x9, lsl #3]
LBB0_5:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kernel"

	.comm	_ttm_mem_zone_kobj_type,4,2     ; @ttm_mem_zone_kobj_type
	.no_dead_strip	_ttm_mem_init_kernel_zone
.subsections_via_symbols
