	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_vm_bo_param
_amdgpu_vm_bo_param:                    ## @amdgpu_vm_bo_param
	.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
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rcx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_amdgpu_vm_bo_size
	movl	%eax, 20(%rbx)
	movq	_AMDGPU_GPU_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_AMDGPU_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 12(%rbx)
	movq	%r12, %rdi
	callq	_amdgpu_bo_get_preferred_pin_domain
	movl	%eax, 12(%rbx)
	movq	_AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS@GOTPCREL(%rip), %rax
	movq	_AMDGPU_GEM_CREATE_CPU_GTT_USWC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	cmpq	$0, 8(%r14)
	je	LBB0_2
## %bb.1:
	movq	_AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	(%r14), %rax
	jmp	LBB0_6
LBB0_2:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpq	$0, 8(%rax)
	je	LBB0_4
LBB0_5:
	movq	_AMDGPU_GEM_CREATE_SHADOW@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%rbx)
LBB0_6:
	movq	_ttm_bo_type_kernel@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ttm_bo_type_kernel@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_GPU_PAGE_SIZE,4,2       ## @AMDGPU_GPU_PAGE_SIZE
	.comm	_AMDGPU_GEM_DOMAIN_VRAM,4,2     ## @AMDGPU_GEM_DOMAIN_VRAM
	.comm	_AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS,4,2 ## @AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS
	.comm	_AMDGPU_GEM_CREATE_CPU_GTT_USWC,4,2 ## @AMDGPU_GEM_CREATE_CPU_GTT_USWC
	.comm	_AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED,4,2 ## @AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED
	.comm	_AMDGPU_GEM_CREATE_SHADOW,4,2   ## @AMDGPU_GEM_CREATE_SHADOW
	.comm	_ttm_bo_type_kernel,4,2         ## @ttm_bo_type_kernel
	.no_dead_strip	_amdgpu_vm_bo_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_vm_bo_param
_amdgpu_vm_bo_param:                    ; @amdgpu_vm_bo_param
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x3
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x0, x22
	mov	x1, x21
	bl	_amdgpu_vm_bo_size
	str	w0, [x19, #20]
Lloh0:
	adrp	x8, _AMDGPU_GPU_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMDGPU_GPU_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AMDGPU_GEM_DOMAIN_VRAM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AMDGPU_GEM_DOMAIN_VRAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	stp	w1, w8, [x19, #12]
	mov	x0, x22
	bl	_amdgpu_bo_get_preferred_pin_domain
	str	w0, [x19, #12]
Lloh6:
	adrp	x8, _AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _AMDGPU_GEM_CREATE_CPU_GTT_USWC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AMDGPU_GEM_CREATE_CPU_GTT_USWC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w9, w9, w8
	str	w9, [x19]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	x8, [x20]
	b	LBB0_5
LBB0_2:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x10, [x8, #8]
	cbz	x10, LBB0_8
LBB0_4:
Lloh15:
	adrp	x10, _AMDGPU_GEM_CREATE_SHADOW@GOTPAGE
Lloh16:
	ldr	x10, [x10, _AMDGPU_GEM_CREATE_SHADOW@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_5:
Lloh18:
	adrp	x9, _ttm_bo_type_kernel@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ttm_bo_type_kernel@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	str	w9, [x19, #8]
	cbz	x8, LBB0_7
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_7:
	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_8:
Lloh21:
	adrp	x9, _ttm_bo_type_kernel@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ttm_bo_type_kernel@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	str	w9, [x19, #8]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_GPU_PAGE_SIZE,4,2       ; @AMDGPU_GPU_PAGE_SIZE
	.comm	_AMDGPU_GEM_DOMAIN_VRAM,4,2     ; @AMDGPU_GEM_DOMAIN_VRAM
	.comm	_AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS,4,2 ; @AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS
	.comm	_AMDGPU_GEM_CREATE_CPU_GTT_USWC,4,2 ; @AMDGPU_GEM_CREATE_CPU_GTT_USWC
	.comm	_AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED,4,2 ; @AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED
	.comm	_AMDGPU_GEM_CREATE_SHADOW,4,2   ; @AMDGPU_GEM_CREATE_SHADOW
	.comm	_ttm_bo_type_kernel,4,2         ; @ttm_bo_type_kernel
	.no_dead_strip	_amdgpu_vm_bo_param
.subsections_via_symbols
