	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_object_file_init           ## -- Begin function ttm_object_file_init
	.p2align	4, 0x90
_ttm_object_file_init:                  ## @ttm_object_file_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, %r14d
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kmalloc
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
LBB0_8:
	xorl	%r12d, %r12d
LBB0_10:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	24(%r12), %rdi
	callq	_rwlock_init
	movq	%r15, 16(%r12)
	leaq	12(%r12), %rdi
	callq	_kref_init
	movq	%r12, %rdi
	addq	$8, %rdi
	callq	_INIT_LIST_HEAD
	movq	_TTM_REF_NUM@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_10
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r13, %rdi
	movl	%r14d, %esi
	callq	_drm_ht_create
	testl	%eax, %eax
	jne	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movl	(%r15), %eax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jb	LBB0_3
	jmp	LBB0_10
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.5:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r14, %rdi
	callq	_drm_ht_remove
	addq	$4, %r14
	decq	%rbx
	jne	LBB0_6
LBB0_7:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_TTM_REF_NUM,4,2                ## @TTM_REF_NUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_object_file_init           ; -- Begin function ttm_object_file_init
	.p2align	2
_ttm_object_file_init:                  ; @ttm_object_file_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	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kmalloc
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_1:
	mov	x19, #0
LBB0_2:
	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
LBB0_3:
	add	x0, x19, #24
	bl	_rwlock_init
	str	x21, [x19, #16]
	add	x0, x19, #12
	bl	_kref_init
	add	x0, x19, #8
	bl	_INIT_LIST_HEAD
Lloh3:
	adrp	x22, _TTM_REF_NUM@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TTM_REF_NUM@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_2
; %bb.4:
	mov	x23, #0
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x8, x23
	mov	x1, x20
	bl	_drm_ht_create
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldr	w8, [x22]
	add	x23, x23, #4
	cmp	x21, x8
	b.lo	LBB0_5
	b	LBB0_2
LBB0_7:
	cbz	w21, LBB0_10
; %bb.8:
	mov	x20, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x8, x20
	bl	_drm_ht_remove
	add	x20, x20, #4
	subs	x21, x21, #1
	b.ne	LBB0_9
LBB0_10:
	mov	x0, x19
	bl	_kfree
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_TTM_REF_NUM,4,2                ; @TTM_REF_NUM
.subsections_via_symbols
