	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_mem_io_reserve_vm          ## -- Begin function ttm_mem_io_reserve_vm
	.p2align	4, 0x90
_ttm_mem_io_reserve_vm:                 ## @ttm_mem_io_reserve_vm
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 24(%rdi)
	je	LBB0_1
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_1:
	movq	%rdi, %r15
	leaq	16(%rdi), %rsi
	movq	8(%rdi), %rdi
	movq	16(%r15), %r12
	movq	(%rdi), %r14
	callq	_ttm_mem_io_reserve
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$1, 24(%r15)
	shlq	$4, %r12
	cmpq	$0, 8(%r14,%r12)
	je	LBB0_4
## %bb.3:
	addq	%r12, %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_mem_io_reserve_vm          ; -- Begin function ttm_mem_io_reserve_vm
	.p2align	2
_ttm_mem_io_reserve_vm:                 ; @ttm_mem_io_reserve_vm
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_2
LBB0_1:
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	mov	x19, x0
	mov	x1, x0
	ldr	x21, [x1, #16]!
	ldur	x0, [x1, #-8]
	ldr	x22, [x0]
	bl	_ttm_mem_io_reserve
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w8, #1
	str	w8, [x19, #24]
	add	x1, x22, x21, lsl #4
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_1
; %bb.5:
	mov	x0, x19
	bl	_list_add_tail
	b	LBB0_1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
