	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_bo_vm_access_kmap
_ttm_bo_vm_access_kmap:                 ## @ttm_bo_vm_access_kmap
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r8d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%rsi, %r15
	shrq	%cl, %r15
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movslq	%r8d, %r14
	movq	%r15, %rax
	shlq	%cl, %rax
	subq	%rax, %rbx
	leaq	-48(%rbp), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdx
	callq	_memcpy
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_ttm_bo_kunmap
	incq	%r15
	addq	%r12, %rbx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$0, %ebx
	subq	%r12, %r14
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	subq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_min
	movq	%rax, %r12
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	$1, %edx
	movq	%r13, %rcx
	callq	_ttm_bo_kmap
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	leaq	-68(%rbp), %rsi
	callq	_ttm_kmap_obj_virtual
	movq	%rax, %r13
	addq	%rbx, %r13
	movl	-68(%rbp), %edi
	callq	_WARN_ON_ONCE
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	jmp	LBB0_4
LBB0_5:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_ttm_bo_vm_access_kmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_bo_vm_access_kmap
_ttm_bo_vm_access_kmap:                 ; @ttm_bo_vm_access_kmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x0
	sxtw	x23, w19
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsr	x24, x1, x8
	lsl	x8, x24, x8
	sub	x26, x1, x8
Lloh3:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
	mov	x1, x21
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x25
	bl	_memcpy
	add	x0, sp, #8
	bl	_ttm_bo_kunmap
	mov	x26, #0
	add	x24, x24, #1
	add	x21, x21, x25
	subs	x23, x23, x25
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	sub	x1, x8, x26
	mov	x0, x23
	bl	_min
	mov	x25, x0
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x24
	mov	w2, #1
	bl	_ttm_bo_kmap
	cbnz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #8
	add	x1, sp, #4
	bl	_ttm_kmap_obj_virtual
	add	x26, x0, x26
	ldr	w0, [sp, #4]
	bl	_WARN_ON_ONCE
	cbnz	w20, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x26
	b	LBB0_2
LBB0_6:
	mov	x19, x0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_ttm_bo_vm_access_kmap
.subsections_via_symbols
