	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_vce_cs_reloc
_amdgpu_vce_cs_reloc:                   ## @amdgpu_vce_cs_reloc
	.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
	movl	%r9d, %r14d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r15
	callq	_amdgpu_get_ib_value
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	callq	_amdgpu_get_ib_value
	leaq	-56(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%r15, %rdi
	callq	_amdgpu_cs_find_mapping
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	cmpl	$-1, %r14d
	cmovel	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_3
LBB0_2:
	movq	-56(%rbp), %rdi
	callq	_amdgpu_bo_gpu_offset
	callq	_lower_32_bits
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_amdgpu_set_ib_value
	callq	_upper_32_bits
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_amdgpu_set_ib_value
LBB0_3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't find BO for addr 0x%010Lx %d %d %d %d\n"

	.comm	_AMDGPU_GPU_PAGE_SIZE,4,2       ## @AMDGPU_GPU_PAGE_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_amdgpu_vce_cs_reloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_vce_cs_reloc
_amdgpu_vce_cs_reloc:                   ; @amdgpu_vce_cs_reloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x25, x5
	mov	x24, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	bl	_amdgpu_get_ib_value
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	bl	_amdgpu_get_ib_value
	add	x2, sp, #16
	add	x3, sp, #24
	mov	x0, x23
	bl	_amdgpu_cs_find_mapping
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
	cmn	w25, #1
	csel	w8, wzr, w25, eq
	stp	x24, x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_DRM_ERROR
	b	LBB0_3
LBB0_2:
	ldr	x0, [sp, #16]
	bl	_amdgpu_bo_gpu_offset
	bl	_lower_32_bits
	mov	x3, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	bl	_amdgpu_set_ib_value
	bl	_upper_32_bits
	mov	x3, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	bl	_amdgpu_set_ib_value
LBB0_3:
	mov	x0, x21
	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
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't find BO for addr 0x%010Lx %d %d %d %d\n"

	.comm	_AMDGPU_GPU_PAGE_SIZE,4,2       ; @AMDGPU_GPU_PAGE_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_amdgpu_vce_cs_reloc
.subsections_via_symbols
