	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_vt_lock                    ## -- Begin function ttm_vt_lock
	.p2align	4, 0x90
_ttm_vt_lock:                           ## @ttm_vt_lock
	.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
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r13
	movl	12(%rdi), %r15d
	callq	___ttm_vt_lock
	movl	%r15d, %edi
	movl	%eax, %esi
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	callq	_wait_event_interruptible
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	12(%r13), %r14
	leaq	16(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_TTM_VT_LOCK_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 20(%r13)
	movq	%r14, %rdi
	callq	_wake_up_all
	movq	%rbx, %rdi
	callq	_spin_unlock
	jmp	LBB0_7
LBB0_3:
	callq	_wait_event
LBB0_4:
	leaq	8(%r13), %rsi
	movq	_ttm_lock_type@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ttm_vt_lock_remove@GOTPCREL(%rip), %r8
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_ttm_base_object_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	___ttm_vt_unlock
	movl	%r12d, %r15d
	jmp	LBB0_7
LBB0_6:
	movq	%r14, (%r13)
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_VT_LOCK_PENDING,4,2        ## @TTM_VT_LOCK_PENDING
	.comm	_ttm_lock_type,4,2              ## @ttm_lock_type
	.comm	_ttm_vt_lock_remove,4,2         ## @ttm_vt_lock_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_vt_lock                    ; -- Begin function ttm_vt_lock
	.p2align	2
_ttm_vt_lock:                           ; @ttm_vt_lock
	.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, x2
	mov	x23, x1
	mov	x19, x0
	mov	x22, x0
	ldr	w21, [x22, #12]!
	bl	___ttm_vt_lock
	mov	x1, x0
	mov	x0, x21
	cbz	w23, LBB0_3
; %bb.1:
	bl	_wait_event_interruptible
	mov	x21, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock
Lloh0:
	adrp	x8, _TTM_VT_LOCK_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TTM_VT_LOCK_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	bic	w8, w9, w8
	str	w8, [x19, #20]
	mov	x0, x22
	bl	_wake_up_all
	mov	x0, x20
	bl	_spin_unlock
	b	LBB0_7
LBB0_3:
	bl	_wait_event
LBB0_4:
	add	x1, x19, #8
Lloh3:
	adrp	x8, _ttm_lock_type@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ttm_lock_type@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x4, _ttm_vt_lock_remove@GOTPAGE
Lloh7:
	ldr	x4, [x4, _ttm_vt_lock_remove@GOTPAGEOFF]
	mov	x0, x20
	mov	w2, #0
	mov	x5, #0
	bl	_ttm_base_object_init
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	___ttm_vt_unlock
	b	LBB0_7
LBB0_6:
	str	x20, [x19]
LBB0_7:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_VT_LOCK_PENDING,4,2        ; @TTM_VT_LOCK_PENDING
	.comm	_ttm_lock_type,4,2              ; @ttm_lock_type
	.comm	_ttm_vt_lock_remove,4,2         ; @ttm_vt_lock_remove
.subsections_via_symbols
