	.file	"extr_amdgpu_vm.c_amdgpu_vm_bo_param.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	amdgpu_vm_bo_param, @function
amdgpu_vm_bo_param:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	mov	edx, 24
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	rdi, rcx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rcx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	memset@PLT
	mov	esi, r13d
	mov	rdi, r12
	call	amdgpu_vm_bo_size@PLT
	mov	esi, DWORD PTR AMDGPU_GEM_DOMAIN_VRAM[rip]
	mov	rdi, r12
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR AMDGPU_GPU_PAGE_SIZE[rip]
	mov	DWORD PTR 12[rbx], esi
	mov	DWORD PTR 16[rbx], eax
	call	amdgpu_bo_get_preferred_pin_domain@PLT
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS[rip]
	or	eax, DWORD PTR AMDGPU_GEM_CREATE_CPU_GTT_USWC[rip]
	cmp	QWORD PTR 8[rbp], 0
	mov	DWORD PTR [rbx], eax
	je	.L2
	or	eax, DWORD PTR AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED[rip]
	mov	rdx, QWORD PTR 0[rbp]
	mov	DWORD PTR [rbx], eax
	mov	ecx, DWORD PTR ttm_bo_type_kernel[rip]
.L3:
	mov	DWORD PTR 8[rbx], ecx
	test	rdx, rdx
	je	.L1
.L7:
	mov	eax, DWORD PTR [rdx]
	mov	DWORD PTR 4[rbx], eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdx, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR ttm_bo_type_kernel[rip]
	test	rdx, rdx
	je	.L4
	cmp	QWORD PTR 8[rdx], 0
	je	.L5
.L4:
	or	eax, DWORD PTR AMDGPU_GEM_CREATE_SHADOW[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	DWORD PTR 8[rbx], ecx
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	amdgpu_vm_bo_param, .-amdgpu_vm_bo_param
	.comm	ttm_bo_type_kernel,4,4
	.comm	AMDGPU_GPU_PAGE_SIZE,4,4
	.comm	AMDGPU_GEM_DOMAIN_VRAM,4,4
	.comm	AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS,4,4
	.comm	AMDGPU_GEM_CREATE_SHADOW,4,4
	.comm	AMDGPU_GEM_CREATE_CPU_GTT_USWC,4,4
	.comm	AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_amdgpu_vm.c_amdgpu_vm_bo_param.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	amdgpu_vm_bo_param, %function
amdgpu_vm_bo_param:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r7, r2
	mov	r0, r3
	mov	r2, #24
	mov	r5, r1
	mov	r1, #0
	mov	r4, r3
	bl	memset
	mov	r1, r7
	mov	r0, r6
	bl	amdgpu_vm_bo_size
	ldr	r2, .L16
	ldr	r3, .L16+4
	ldr	r1, [r2]
	ldr	r3, [r3]
	str	r0, [r4, #20]
	str	r3, [r4, #16]
	str	r1, [r4, #12]
	mov	r0, r6
	bl	amdgpu_bo_get_preferred_pin_domain
	ldr	r3, .L16+8
	ldr	r2, .L16+12
	ldr	r1, [r5, #4]
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r1, #0
	orr	r3, r3, r2
	str	r0, [r4, #12]
	str	r3, [r4]
	beq	.L2
	ldr	r2, .L16+16
	ldr	r0, .L16+20
	ldr	r1, [r2]
	ldr	r2, [r5]
	orr	r3, r1, r3
	ldr	r1, [r0]
	str	r3, [r4]
.L3:
	cmp	r2, #0
	str	r1, [r4, #8]
	popeq	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, [r2]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r2, [r5]
	ldr	r1, .L16+20
	cmp	r2, #0
	ldr	r1, [r1]
	beq	.L4
	ldr	r0, [r2, #4]
	cmp	r0, #0
	beq	.L5
.L4:
	ldr	r0, .L16+24
	ldr	r0, [r0]
	orr	r3, r0, r3
	str	r3, [r4]
	b	.L3
.L5:
	str	r1, [r4, #8]
	b	.L7
.L17:
	.align	2
.L16:
	.word	AMDGPU_GEM_DOMAIN_VRAM
	.word	AMDGPU_GPU_PAGE_SIZE
	.word	AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS
	.word	AMDGPU_GEM_CREATE_CPU_GTT_USWC
	.word	AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED
	.word	ttm_bo_type_kernel
	.word	AMDGPU_GEM_CREATE_SHADOW
	.size	amdgpu_vm_bo_param, .-amdgpu_vm_bo_param
	.comm	ttm_bo_type_kernel,4,4
	.comm	AMDGPU_GPU_PAGE_SIZE,4,4
	.comm	AMDGPU_GEM_DOMAIN_VRAM,4,4
	.comm	AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS,4,4
	.comm	AMDGPU_GEM_CREATE_SHADOW,4,4
	.comm	AMDGPU_GEM_CREATE_CPU_GTT_USWC,4,4
	.comm	AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
