	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_wait                    ## -- Begin function ttm_bo_wait
	.p2align	4, 0x90
_ttm_bo_wait:                           ## @ttm_bo_wait
	.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
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_dma_resv_test_signaled_rcu
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_2
LBB0_3:
	movl	%esi, %eax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%r14), %edi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_dma_resv_wait_timeout_rcu
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	je	LBB0_2
## %bb.6:
	movl	(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_dma_resv_add_excl_fence
	jmp	LBB0_7
LBB0_2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	%rax, %rbx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_wait                    ; -- Begin function ttm_bo_wait
	.p2align	2
_ttm_bo_wait:                           ; @ttm_bo_wait
	.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
	cbz	w2, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_dma_resv_test_signaled_rcu
	cbnz	x0, LBB0_5
	b	LBB0_6
LBB0_2:
	mov	x8, x1
Lloh0:
	adrp	x9, _HZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	lsl	x10, x9, #4
	sub	x3, x10, x9
	ldr	w0, [x19]
	mov	w1, #1
	mov	x2, x8
	bl	_dma_resv_wait_timeout_rcu
	tbnz	x0, #63, LBB0_7
; %bb.3:
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x19]
	mov	x1, #0
	bl	_dma_resv_add_excl_fence
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	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	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
