	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_reserve_nolru           ## -- Begin function ttm_bo_reserve_nolru
	.p2align	4, 0x90
_ttm_bo_reserve_nolru:                  ## @ttm_bo_reserve_nolru
	.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	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	leaq	20(%rdi), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_atomic_xchg
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, (%r12)
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %r13d
	xorl	%edi, %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, 8(%r12)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rax
	subq	8(%r12), %rax
	xorl	%edi, %edi
	cmpq	$-2147483648, %rax              ## imm = 0x80000000
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	movl	%r13d, %ebx
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ttm_bo_wait_unreserved
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
	jmp	LBB0_18
LBB0_12:
	testl	%r15d, %r15d
	je	LBB0_17
## %bb.13:
	movq	8(%r12), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	subq	%r14, %rax
	movl	$1, %edi
	cmpq	$-2147483648, %rax              ## imm = 0x80000000
	jl	LBB0_15
## %bb.14:
	xorl	%edi, %edi
	cmpl	$0, (%r12)
	sete	%dil
LBB0_15:
	callq	_unlikely
	xorl	%r13d, %r13d
	movq	%r14, 8(%r12)
	movl	$1, (%r12)
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_wake_up_all
	jmp	LBB0_18
LBB0_10:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_EDEADLK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_18:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	$0, (%r12)
	xorl	%r13d, %r13d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EDEADLK,4,2                    ## @EDEADLK
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.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_reserve_nolru           ; -- Begin function ttm_bo_reserve_nolru
	.p2align	2
_ttm_bo_reserve_nolru:                  ; @ttm_bo_reserve_nolru
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	add	x24, x0, #20
	mov	x26, #-2147483648
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	w1, #1
	bl	_atomic_xchg
	cmp	x0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w21, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #8]
	cmp	x8, x20
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #8]
	sub	x8, x20, x8
	cmp	x8, x26
	cset	w0, lt
	bl	_unlikely
	cbnz	x0, LBB0_15
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w22, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_ttm_bo_wait_unreserved
	mov	x25, x0
	bl	_unlikely
	cbz	x0, LBB0_1
	b	LBB0_17
LBB0_8:
	cbz	w21, LBB0_18
; %bb.9:
	ldr	x8, [x19, #8]
	mov	w21, #1
	mov	x9, #-2147483648
	sub	x8, x8, x20
	cmp	x8, x9
	mov	w0, #1
	b.lt	LBB0_11
; %bb.10:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
LBB0_11:
	bl	_unlikely
	str	x20, [x19, #8]
	str	w21, [x19]
	cbz	x0, LBB0_19
; %bb.12:
	add	x0, x19, #16
	bl	_wake_up_all
	mov	w25, #0
	b	LBB0_17
LBB0_13:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh2:
	adrp	x8, _EDEADLK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EDEADLK@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh4:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_17:
	mov	x0, x25
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	w25, #0
	str	wzr, [x19]
	b	LBB0_17
LBB0_19:
	mov	w25, #0
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EDEADLK,4,2                    ; @EDEADLK
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
