	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_wait_unreserved         ## -- Begin function ttm_bo_wait_unreserved
	.p2align	4, 0x90
_ttm_bo_wait_unreserved:                ## @ttm_bo_wait_unreserved
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_mutex_lock_interruptible
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movl	4(%r14), %edi
	callq	_dma_resv_is_locked
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	4(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_dma_resv_lock_interruptible
	movq	_EINTR@GOTPCREL(%rip), %rcx
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ebx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	cmovnel	%eax, %ebx
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	4(%r14), %edi
	callq	_dma_resv_unlock
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_EINTR,4,2                      ## @EINTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_wait_unreserved         ; -- Begin function ttm_bo_wait_unreserved
	.p2align	2
_ttm_bo_wait_unreserved:                ; @ttm_bo_wait_unreserved
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_mutex_lock_interruptible
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_2:
	ldr	w0, [x19, #4]
	bl	_dma_resv_is_locked
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w0, [x19, #4]
	mov	x1, #0
	bl	_dma_resv_lock_interruptible
Lloh3:
	adrp	x8, _EINTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ERESTARTSYS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ERESTARTSYS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	cmn	w0, w8
	csneg	w20, w0, w9, ne
	cmp	w20, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #4]
	bl	_dma_resv_unlock
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_EINTR,4,2                      ; @EINTR
.subsections_via_symbols
