	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_cs_parser_relocs
_radeon_cs_parser_relocs:               ## @radeon_cs_parser_relocs
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	72(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_25
## %bb.1:
	movq	%rdi, %r13
	movq	$0, 64(%rdi)
	movl	(%r14), %eax
	leal	3(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$2, %edi
	movl	%edi, (%r13)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movq	___GFP_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$4, %esi
	callq	_kvmalloc_array
	movq	%rax, 48(%r13)
	testq	%rax, %rax
	je	LBB0_26
## %bb.2:
	leaq	-64(%rbp), %rdi
	callq	_radeon_cs_buckets_init
	cmpl	$0, (%r13)
	je	LBB0_27
## %bb.3:
	xorl	%r12d, %r12d
	movl	$12, %ebx
	xorl	%ecx, %ecx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, 16(%rsi,%r12,8)
	xorl	%eax, %eax
	cmpl	$0, 4(%r15,%r14,4)
	sete	%al
	movl	%eax, 8(%rsi,%r12,8)
	movl	%ebx, %edx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	addq	%rbx, %rsi
	leaq	-64(%rbp), %rdi
	callq	_radeon_cs_buckets_add
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movl	(%r13), %eax
	addq	$4, %r12
	addq	$32, %rbx
	cmpq	%rax, %rcx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jae	LBB0_28
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %r15
	movl	%r12d, %r14d
	andl	$-4, %r14d
	movl	56(%r13), %edi
	movl	12(%r15,%r14,4), %esi
	callq	_drm_gem_object_lookup
	testq	%rax, %rax
	je	LBB0_33
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rdi
	callq	_gem_to_radeon_bo
	movq	48(%r13), %rcx
	movq	%rax, 24(%rcx,%r12,8)
	movq	%r13, %rcx
	movq	_RADEON_RELOC_PRIO_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	(%r15,%r14,4), %r13d
	movl	4(%r15,%r14,4), %eax
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%bl
	movq	8(%rcx), %rcx
	movq	_R600_RING_TYPE_UVD_INDEX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	movq	_PCI_CAP_ID_AGP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_find_capability
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_RADEON_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	48(%r13), %rcx
	movl	%eax, (%rcx,%r12,8)
	movl	(%rdx), %eax
	movl	%eax, 4(%rcx,%r12,8)
	movq	_RADEON_CS_MAX_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_19
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	movq	(%rax), %rax
	movq	_CHIP_RS780@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_CHIP_RS880@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r15,%r14,4), %eax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%r15,%r14,4), %eax
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_RADEON_GEM_DOMAIN_CPU@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_34
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	48(%rcx), %rcx
	movl	%eax, (%rcx,%r12,8)
	xorl	%edx, %edx
	movq	_RADEON_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_RADEON_GEM_DOMAIN_GTT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	%bl, %dil
	leal	(%rdi,%r13,2), %ebx
	orl	%eax, %edx
	movl	%edx, 4(%rcx,%r12,8)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%rcx,%r12,8), %rax
	movl	(%rax), %edi
	callq	_radeon_ttm_tt_has_userptr
	movq	48(%r13), %rsi
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_RADEON_GEM_DOMAIN_GTT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi,%r12,8)
	je	LBB0_35
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, (%rsi,%r12,8)
	movl	%eax, 4(%rsi,%r12,8)
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%rsi,%r12,8), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_RADEON_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, 4(%rsi,%r12,8)
	jne	LBB0_4
## %bb.24:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_36
LBB0_25:
	xorl	%ebx, %ebx
	jmp	LBB0_38
LBB0_26:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_37
LBB0_27:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_28:
	leaq	20(%r13), %r14
	leaq	-64(%rbp), %rdi
	movq	%r14, %rsi
	callq	_radeon_cs_buckets_get_list
	movq	_RADEON_CS_USE_VM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r13)
	je	LBB0_30
## %bb.29:
	movq	32(%r13), %rdi
	movl	40(%r13), %esi
	movq	%r14, %rdx
	callq	_radeon_vm_get_bos
	movl	%eax, 44(%r13)
LBB0_30:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_32
## %bb.31:
	movq	_current@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rdi
	callq	_down_read
	movq	8(%r13), %rcx
	movq	32(%r13), %rdi
	addq	$24, %r13
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_radeon_bo_list_validate
	movl	%eax, %ebx
	movq	(%r15), %rax
	movq	(%rax), %rdi
	callq	_up_read
	jmp	LBB0_38
LBB0_32:
	movq	8(%r13), %rcx
	movq	32(%r13), %rdi
	addq	$24, %r13
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_radeon_bo_list_validate
	movl	%eax, %ebx
	jmp	LBB0_38
LBB0_33:
	movl	12(%r15,%r14,4), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_34:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_36
LBB0_35:
	leaq	L_.str.2(%rip), %rdi
LBB0_36:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_37:
	subl	(%rax), %ebx
LBB0_38:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gem object lookup failed 0x%x\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_RADEON_RELOC_PRIO_MASK,4,2     ## @RADEON_RELOC_PRIO_MASK
	.comm	_R600_RING_TYPE_UVD_INDEX,8,3   ## @R600_RING_TYPE_UVD_INDEX
	.comm	_PCI_CAP_ID_AGP,4,2             ## @PCI_CAP_ID_AGP
	.comm	_CHIP_RS780,8,3                 ## @CHIP_RS780
	.comm	_CHIP_RS880,8,3                 ## @CHIP_RS880
	.comm	_RADEON_GEM_DOMAIN_VRAM,4,2     ## @RADEON_GEM_DOMAIN_VRAM
	.comm	_RADEON_CS_MAX_PRIORITY,4,2     ## @RADEON_CS_MAX_PRIORITY
	.comm	_RADEON_GEM_DOMAIN_CPU,4,2      ## @RADEON_GEM_DOMAIN_CPU
L_.str.1:                               ## @.str.1
	.asciz	"RADEON_GEM_DOMAIN_CPU is not valid for command submission\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RADEON_GEM_DOMAIN_GTT,4,2      ## @RADEON_GEM_DOMAIN_GTT
L_.str.2:                               ## @.str.2
	.asciz	"Only RADEON_GEM_DOMAIN_GTT is allowed for userptr BOs\n"

L_.str.3:                               ## @.str.3
	.asciz	"BO associated with dma-buf cannot be moved to VRAM\n"

	.comm	_RADEON_CS_USE_VM,4,2           ## @RADEON_CS_USE_VM
	.comm	_current,8,3                    ## @current
	.no_dead_strip	_radeon_cs_parser_relocs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_cs_parser_relocs
_radeon_cs_parser_relocs:               ; @radeon_cs_parser_relocs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	x21, [x0, #72]
	cbz	x21, LBB0_23
; %bb.1:
	mov	x19, x0
	str	xzr, [x0, #64]
	ldr	w8, [x21]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #2
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
	str	w0, [x19]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w1, #4
	bl	_kvmalloc_array
	str	x0, [x19, #48]
	cbz	x0, LBB0_24
; %bb.2:
	add	x0, sp, #24
	bl	_radeon_cs_buckets_init
	ldr	w8, [x19]
	cbz	w8, LBB0_25
; %bb.3:
	mov	x23, #0
	mov	x24, #0
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
	mov	w25, #24
Lloh6:
	adrp	x28, _RADEON_GEM_DOMAIN_VRAM@GOTPAGE
Lloh7:
	ldr	x28, [x28, _RADEON_GEM_DOMAIN_VRAM@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, x25
	stur	x9, [x8, #-8]
	ldr	w9, [x27, #4]
	cmp	w9, #0
	cset	w9, eq
	stur	w9, [x8, #-16]
	sub	x1, x8, #12
	add	x0, sp, #24
	mov	x2, x20
	bl	_radeon_cs_buckets_add
	add	x24, x24, #1
	ldr	w8, [x19]
	add	x23, x23, #4
	add	x25, x25, #32
	cmp	x24, x8
	b.hs	LBB0_26
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	and	x9, x23, #0xfffffffc
	add	x27, x8, x9, lsl #2
	ldr	w0, [x19, #56]
	ldr	w1, [x27, #12]
	bl	_drm_gem_object_lookup
	cbz	x0, LBB0_31
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_gem_to_radeon_bo
	ldr	x8, [x19, #48]
	str	x0, [x8, x25]
Lloh8:
	adrp	x8, _RADEON_RELOC_PRIO_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RADEON_RELOC_PRIO_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w26, [x8]
	ldp	w22, w8, [x27]
	cmp	w8, #0
	cset	w20, ne
	ldr	x9, [x19, #8]
Lloh11:
	adrp	x10, _R600_RING_TYPE_UVD_INDEX@GOTPAGE
Lloh12:
	ldr	x10, [x10, _R600_RING_TYPE_UVD_INDEX@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x25, #24
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _PCI_CAP_ID_AGP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCI_CAP_ID_AGP@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_pci_find_capability
	cbz	x0, LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28]
	ldr	x9, [x19, #48]
	add	x10, x9, x25
	stur	w8, [x10, #-24]
	ldr	w8, [x28]
	stur	w8, [x10, #-20]
Lloh17:
	adrp	x8, _RADEON_CS_MAX_PRIORITY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RADEON_CS_MAX_PRIORITY@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	b	LBB0_17
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _CHIP_RS780@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CHIP_RS780@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh23:
	adrp	x9, _CHIP_RS880@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CHIP_RS880@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27, #4]
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27, #8]
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh26:
	adrp	x9, _RADEON_GEM_DOMAIN_CPU@GOTPAGE
Lloh27:
	ldr	x9, [x9, _RADEON_GEM_DOMAIN_CPU@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_32
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	and	w9, w26, w22
	bfi	w20, w9, #1, #31
	ldr	x9, [x19, #48]
	add	x10, x9, x25
	stur	w8, [x10, #-24]
	ldr	w11, [x28]
Lloh29:
	adrp	x12, _RADEON_GEM_DOMAIN_GTT@GOTPAGE
Lloh30:
	ldr	x12, [x12, _RADEON_GEM_DOMAIN_GTT@GOTPAGEOFF]
Lloh31:
	ldr	w12, [x12]
	cmp	w8, w11
	csel	w11, w12, wzr, eq
	orr	w8, w11, w8
	stur	w8, [x10, #-20]
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x9, x25]
	ldr	w0, [x8]
	bl	_radeon_ttm_tt_has_userptr
	ldr	x8, [x19, #48]
	cbz	x0, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x8, x25
	ldur	w11, [x9, #-24]
Lloh32:
	adrp	x10, _RADEON_GEM_DOMAIN_GTT@GOTPAGE
Lloh33:
	ldr	x10, [x10, _RADEON_GEM_DOMAIN_GTT@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	tst	w10, w11
	b.eq	LBB0_33
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	stp	w10, w10, [x9, #-24]
	mov	w9, #1
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x8, x25]
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_4
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x28]
	add	x11, x8, x25
	ldur	w12, [x11, #-20]
	bics	w10, w12, w10
	stur	w10, [x11, #-20]
	b.ne	LBB0_4
; %bb.22:
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_34
LBB0_23:
	mov	w19, #0
	b	LBB0_36
LBB0_24:
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_35
LBB0_25:
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
LBB0_26:
	add	x20, x19, #20
	add	x0, sp, #24
	mov	x1, x20
	bl	_radeon_cs_buckets_get_list
	ldr	w8, [x19, #16]
Lloh39:
	adrp	x9, _RADEON_CS_USE_VM@GOTPAGE
Lloh40:
	ldr	x9, [x9, _RADEON_CS_USE_VM@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.27:
	ldr	x0, [x19, #32]
	ldr	w1, [x19, #40]
	mov	x2, x20
	bl	_radeon_vm_get_bos
	str	w0, [x19, #44]
LBB0_28:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_30
; %bb.29:
Lloh42:
	adrp	x21, _current@GOTPAGE
Lloh43:
	ldr	x21, [x21, _current@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_down_read
	ldr	x0, [x19, #32]
	add	x1, x19, #24
	ldr	x3, [x19, #8]
	mov	x2, x20
	bl	_radeon_bo_list_validate
	mov	x19, x0
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_up_read
	b	LBB0_36
LBB0_30:
	ldr	x0, [x19, #32]
	add	x1, x19, #24
	ldr	x3, [x19, #8]
	mov	x2, x20
	bl	_radeon_bo_list_validate
	mov	x19, x0
	b	LBB0_36
LBB0_31:
	ldr	w8, [x27, #12]
	str	x8, [sp]
Lloh44:
	adrp	x0, l_.str@PAGE
Lloh45:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh46:
	adrp	x8, _ENOENT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_35
LBB0_32:
Lloh48:
	adrp	x0, l_.str.1@PAGE
Lloh49:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_34
LBB0_33:
Lloh50:
	adrp	x0, l_.str.2@PAGE
Lloh51:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_34:
	bl	_DRM_ERROR
Lloh52:
	adrp	x8, _EINVAL@GOTPAGE
Lloh53:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_35:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_36:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gem object lookup failed 0x%x\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_RADEON_RELOC_PRIO_MASK,4,2     ; @RADEON_RELOC_PRIO_MASK
	.comm	_R600_RING_TYPE_UVD_INDEX,8,3   ; @R600_RING_TYPE_UVD_INDEX
	.comm	_PCI_CAP_ID_AGP,4,2             ; @PCI_CAP_ID_AGP
	.comm	_CHIP_RS780,8,3                 ; @CHIP_RS780
	.comm	_CHIP_RS880,8,3                 ; @CHIP_RS880
	.comm	_RADEON_GEM_DOMAIN_VRAM,4,2     ; @RADEON_GEM_DOMAIN_VRAM
	.comm	_RADEON_CS_MAX_PRIORITY,4,2     ; @RADEON_CS_MAX_PRIORITY
	.comm	_RADEON_GEM_DOMAIN_CPU,4,2      ; @RADEON_GEM_DOMAIN_CPU
l_.str.1:                               ; @.str.1
	.asciz	"RADEON_GEM_DOMAIN_CPU is not valid for command submission\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RADEON_GEM_DOMAIN_GTT,4,2      ; @RADEON_GEM_DOMAIN_GTT
l_.str.2:                               ; @.str.2
	.asciz	"Only RADEON_GEM_DOMAIN_GTT is allowed for userptr BOs\n"

l_.str.3:                               ; @.str.3
	.asciz	"BO associated with dma-buf cannot be moved to VRAM\n"

	.comm	_RADEON_CS_USE_VM,4,2           ; @RADEON_CS_USE_VM
	.comm	_current,8,3                    ; @current
	.no_dead_strip	_radeon_cs_parser_relocs
.subsections_via_symbols
