	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_base_object_init           ## -- Begin function ttm_base_object_init
	.p2align	4, 0x90
_ttm_base_object_init:                  ## @ttm_base_object_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
	movq	%r9, %r15
	movq	%r8, %r13
	movl	%ecx, %r12d
	movq	%rsi, %rbx
	movq	%rsi, -56(%rbp)
	movq	(%rdi), %r14
	movl	%edx, (%rsi)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_ttm_object_file_ref
	movl	%eax, 36(%rbx)
	movq	%r13, 8(%rbx)
	movq	%r15, 16(%rbx)
	movl	%r12d, 24(%rbx)
	leaq	32(%rbx), %rdi
	callq	_kref_init
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_idr_preload
	movq	%r14, %rdi
	callq	_spin_lock
	leaq	4(%r14), %r15
	movq	_GFP_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_idr_alloc
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	callq	_idr_preload_end
	testl	%r13d, %r13d
	js	LBB0_4
## %bb.1:
	movl	%r13d, 28(%rbx)
	movq	_TTM_REF_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ttm_ref_object_add
	movl	%eax, %r12d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_spin_lock
	movl	28(%rbx), %esi
	movq	%r15, %rdi
	callq	_idr_remove
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	%r12d, %r13d
	jmp	LBB0_4
LBB0_2:
	leaq	-56(%rbp), %rdi
	callq	_ttm_base_object_unref
LBB0_4:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_GFP_NOWAIT,4,2                 ## @GFP_NOWAIT
	.comm	_TTM_REF_USAGE,4,2              ## @TTM_REF_USAGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_base_object_init           ; -- Begin function ttm_base_object_init
	.p2align	2
_ttm_base_object_init:                  ; @ttm_base_object_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x20, x1
	mov	x21, x0
	str	x1, [sp, #8]
	ldr	x19, [x0]
	str	w2, [x1]
	bl	_ttm_object_file_ref
	str	w0, [x20, #36]
	stp	x23, x22, [x20, #8]
	str	w24, [x20, #24]
	add	x0, x20, #32
	bl	_kref_init
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_idr_preload
	mov	x0, x19
	bl	_spin_lock
	add	x22, x19, #4
Lloh3:
	adrp	x8, _GFP_NOWAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_NOWAIT@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x20
	mov	w2, #1
	mov	w3, #0
	bl	_idr_alloc
	mov	x23, x0
	mov	x0, x19
	bl	_spin_unlock
	bl	_idr_preload_end
	tbnz	w23, #31, LBB0_4
; %bb.1:
	str	w23, [x20, #28]
Lloh6:
	adrp	x8, _TTM_REF_USAGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TTM_REF_USAGE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x3, #0
	mov	w4, #0
	bl	_ttm_ref_object_add
	mov	x23, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_spin_lock
	ldr	w1, [x20, #28]
	mov	x0, x22
	bl	_idr_remove
	mov	x0, x19
	bl	_spin_unlock
	b	LBB0_4
LBB0_3:
	add	x0, sp, #8
	bl	_ttm_base_object_unref
	mov	w23, #0
LBB0_4:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_GFP_NOWAIT,4,2                 ; @GFP_NOWAIT
	.comm	_TTM_REF_USAGE,4,2              ; @TTM_REF_USAGE
.subsections_via_symbols
