	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_vce_cs_parse            ## -- Begin function radeon_vce_cs_parse
	.p2align	4, 0x90
_radeon_vce_cs_parse:                   ## @radeon_vce_cs_parse
	.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	$0, -52(%rbp)
	movq	(%rdi), %rbx
	movq	16(%rdi), %rax
	xorl	%r15d, %r15d
	cmpq	(%rax), %rbx
	jge	LBB0_52
## %bb.1:
	movq	%rdi, %r12
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	-60(%rbp), %r14
	movl	$-1, %r15d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_radeon_get_ib_value
	movl	%eax, %ebx
	movq	(%r12), %rsi
	incq	%rsi
	movq	%r12, %rdi
	callq	_radeon_get_ib_value
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$8, %ebx
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %ecx
	andl	$3, %ecx
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	cmpl	$67108864, %eax                 ## imm = 0x4000000
	jle	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$83886080, %eax                 ## imm = 0x5000000
	jg	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	leal	-67108865(%rax), %ecx
	cmpl	$8, %ecx
	ja	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$467, %edx                      ## imm = 0x1D3
	btl	%ecx, %edx
	jb	LBB0_39
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$16777216, %eax                 ## imm = 0x1000000
	jle	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$16777217, %eax                 ## imm = 0x1000001
	je	LBB0_31
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$33554433, %eax                 ## imm = 0x2000001
	je	LBB0_35
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$50331649, %eax                 ## imm = 0x3000001
	jne	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movq	(%r12), %rdx
	leaq	10(%rdx), %rsi
	addq	$9, %rdx
	movq	%r14, %r15
	movl	(%r14), %ecx
	movq	%r12, %rdi
	callq	_radeon_vce_cs_reloc
	testl	%eax, %eax
	jne	LBB0_15
## %bb.34:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdx
	leaq	12(%rdx), %rsi
	addq	$11, %rdx
	movslq	(%r15), %rax
	imulq	$1431655766, %rax, %rcx         ## imm = 0x55555556
	movq	%rcx, %rax
	shrq	$63, %rax
	shrq	$32, %rcx
	addl	%eax, %ecx
	movq	%r12, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_radeon_vce_cs_reloc
	testl	%eax, %eax
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_39
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$83886081, %eax                 ## imm = 0x5000001
	je	LBB0_36
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$83886084, %eax                 ## imm = 0x5000004
	je	LBB0_37
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$83886085, %eax                 ## imm = 0x5000005
	jne	LBB0_19
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdx
	leaq	3(%rdx), %rsi
	addq	$2, %rdx
	movq	%r12, %rdi
	movl	$4096, %ecx                     ## imm = 0x1000
	jmp	LBB0_24
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %eax
	je	LBB0_25
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %eax
	je	LBB0_39
	jmp	LBB0_19
LBB0_31:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -52(%rbp)
	je	LBB0_32
## %bb.38:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rsi
	addq	$8, %rsi
	movq	%r12, %rdi
	callq	_radeon_get_ib_value
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rsi
	addq	$10, %rsi
	movq	%r12, %rdi
	callq	_radeon_get_ib_value
                                        ## kill: def $eax killed $eax def $rax
	imull	-48(%rbp), %eax                 ## 4-byte Folded Reload
	shll	$2, %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, (%r14)
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_39
LBB0_35:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r13d
	jmp	LBB0_39
LBB0_36:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdx
	leaq	3(%rdx), %rsi
	addq	$2, %rdx
	movl	(%r14), %ecx
	addl	%ecx, %ecx
	movq	%r12, %rdi
	jmp	LBB0_24
LBB0_37:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rsi
	addq	$4, %rsi
	movq	%r12, %rdi
	callq	_radeon_get_ib_value
	movl	%eax, -60(%rbp)
	movq	(%r12), %rdx
	leaq	3(%rdx), %rsi
	addq	$2, %rdx
	movq	%r12, %rdi
	movl	%eax, %ecx
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_radeon_vce_cs_reloc
	testl	%eax, %eax
	jne	LBB0_15
LBB0_39:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %r15d
	je	LBB0_40
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	shrl	$2, %ebx
	addq	(%r12), %rbx
	movq	%rbx, (%r12)
	movq	16(%r12), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_2
	jmp	LBB0_28
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rsi
	addq	$2, %rsi
	movq	%r12, %rdi
	callq	_radeon_get_ib_value
	movl	%eax, %r14d
	movq	%r12, %rdi
	movl	%eax, %esi
	leaq	-52(%rbp), %rdx
	callq	_radeon_vce_validate_handle
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_52
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	8(%r12), %rax
	movl	%r15d, %r14d
	shlq	$2, %r14
	addq	(%rax), %r14
	xorl	%r13d, %r13d
	jmp	LBB0_27
LBB0_4:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_41
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	$1, %r13d
	jmp	LBB0_43
LBB0_28:
	xorl	%r15d, %r15d
	cmpl	$0, -52(%rbp)
	je	LBB0_43
## %bb.29:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_43
## %bb.30:
	leaq	L_.str.5(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_42
LBB0_40:
	leaq	L_.str.4(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_41:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_42:
	subl	(%rax), %r15d
LBB0_43:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testl	%r13d, %r13d
	je	LBB0_45
## %bb.44:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	je	LBB0_47
	jmp	LBB0_45
LBB0_15:
	movl	%eax, %r15d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_45:
	testl	%r15d, %r15d
	je	LBB0_52
LBB0_46:
	cmpl	$0, -52(%rbp)
	movl	%r15d, %eax
	je	LBB0_52
LBB0_47:
	movq	_RADEON_MAX_VCE_HANDLES@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_48
## %bb.49:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	8(%rax), %rdi
	addq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_atomic_cmpxchg
	incq	%r13
	movslq	(%r15), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_50
## %bb.51:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_52
LBB0_48:
	movl	%eax, %r15d
LBB0_52:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_33
LBB0_32:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_33:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	testl	%r15d, %r15d
	jne	LBB0_46
	jmp	LBB0_52
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid VCE command length (%d)!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"No other command allowed after destroy!\n"

L_.str.2:                               ## @.str.2
	.asciz	"Handle already in use!\n"

L_.str.3:                               ## @.str.3
	.asciz	"invalid VCE command (0x%x)!\n"

L_.str.4:                               ## @.str.4
	.asciz	"no session command at start of IB\n"

L_.str.5:                               ## @.str.5
	.asciz	"New session without create command!\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_RADEON_MAX_VCE_HANDLES,4,2     ## @RADEON_MAX_VCE_HANDLES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_vce_cs_parse            ; -- Begin function radeon_vce_cs_parse
	.p2align	2
_radeon_vce_cs_parse:                   ; @radeon_vce_cs_parse
	.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	w21, #0
	str	wzr, [sp, #12]
	ldr	x1, [x0]
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cmp	x1, x8
	b.ge	LBB0_49
; %bb.1:
	mov	x19, x0
	mov	w20, #0
	mov	w23, #0
	mov	w26, #0
	add	x27, sp, #8
	mov	w21, #-1
	mov	w24, #67108864
	mov	w28, #83886080
	mov	w25, #467
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_radeon_get_ib_value
	mov	x22, x0
	ldr	x8, [x19]
	add	x1, x8, #1
	mov	x0, x19
	bl	_radeon_get_ib_value
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w22, #8
	b.lt	LBB0_31
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w8, w22, #0x3
	cbnz	w8, LBB0_31
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w26, LBB0_32
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, w24
	b.le	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, w28
	b.gt	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #-67108865
	add	w8, w0, w8
	cmp	w8, #8
	mov	w9, #1
	lsl	w8, w9, w8
	and	w8, w8, w25
	ccmp	w8, #0, #4, ls
	b.ne	LBB0_27
	b	LBB0_42
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #16777216
	cmp	w0, w8
	b.le	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	movk	w8, #256, lsl #16
	cmp	w0, w8
	b.eq	LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	movk	w8, #512, lsl #16
	cmp	w0, w8
	b.eq	LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	movk	w8, #768, lsl #16
	cmp	w0, w8
	b.ne	LBB0_42
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	add	x1, x8, #10
	add	x2, x8, #9
	ldr	w3, [x27]
	mov	x0, x19
	bl	_radeon_vce_cs_reloc
	cbnz	w0, LBB0_41
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	add	x1, x8, #12
	add	x2, x8, #11
	ldrsw	x8, [x27]
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w3, w8, w9
	b	LBB0_25
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	movk	w8, #1280, lsl #16
	cmp	w0, w8
	b.eq	LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #4
	movk	w8, #1280, lsl #16
	cmp	w0, w8
	b.eq	LBB0_24
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #5
	movk	w8, #1280, lsl #16
	cmp	w0, w8
	b.ne	LBB0_42
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	add	x1, x8, #3
	add	x2, x8, #2
	mov	x0, x19
	mov	w3, #4096
	bl	_radeon_vce_cs_reloc
	cbz	w0, LBB0_26
	b	LBB0_41
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #1
	b.eq	LBB0_29
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #2
	b.eq	LBB0_27
	b	LBB0_42
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_43
; %bb.21:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	add	x1, x8, #8
	mov	x0, x19
	bl	_radeon_get_ib_value
	mov	x23, x0
	ldr	x8, [x19]
	add	x1, x8, #10
	mov	x0, x19
	bl	_radeon_get_ib_value
	mov	w26, #0
	mul	w8, w23, w0
	add	w8, w8, w8, lsl #1
	lsl	w8, w8, #2
	str	w8, [x27]
	mov	w23, #1
	b	LBB0_27
LBB0_22:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #1
	b	LBB0_27
LBB0_23:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	add	x1, x8, #3
	add	x2, x8, #2
	ldr	w8, [x27]
	lsl	w3, w8, #1
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	x0, x19
	bl	_radeon_get_ib_value
	mov	x3, x0
	str	w0, [sp, #8]
	ldr	x8, [x19]
	add	x1, x8, #3
	add	x2, x8, #2
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_radeon_vce_cs_reloc
	cbnz	w0, LBB0_41
LBB0_26:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #0
LBB0_27:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w21, #1
	b.eq	LBB0_36
LBB0_28:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	w8, w22, #2
	ldr	x9, [x19]
	ldr	x10, [x19, #16]
	ldr	x10, [x10]
	add	x1, x9, x8
	cmp	x1, x10
	str	x1, [x19]
	b.lt	LBB0_2
	b	LBB0_33
LBB0_29:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	add	x1, x8, #2
	mov	x0, x19
	bl	_radeon_get_ib_value
	mov	x20, x0
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_radeon_vce_validate_handle
	mov	x21, x0
	tbnz	w0, #31, LBB0_49
; %bb.30:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	add	x27, x8, w21, uxtw #2
	b	LBB0_28
LBB0_31:
	str	x22, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_37
LBB0_32:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
	mov	w26, #1
	b	LBB0_39
LBB0_33:
	mov	w21, #0
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_39
; %bb.34:
	cbnz	w23, LBB0_39
; %bb.35:
Lloh7:
	adrp	x0, l_.str.5@PAGE
Lloh8:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_ERROR
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_38
LBB0_36:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_37:
	bl	_DRM_ERROR
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_38:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_39:
	cbz	w26, LBB0_45
; %bb.40:
	cbz	w21, LBB0_46
	b	LBB0_45
LBB0_41:
	mov	x21, x0
	b	LBB0_45
LBB0_42:
	str	x0, [sp]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_44
LBB0_43:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_44:
	bl	_DRM_ERROR
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_45:
	ldr	w8, [sp, #12]
	cmp	w21, #0
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_49
LBB0_46:
Lloh22:
	adrp	x22, _RADEON_MAX_VCE_HANDLES@GOTPAGE
Lloh23:
	ldr	x22, [x22, _RADEON_MAX_VCE_HANDLES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_49
; %bb.47:
	mov	x23, #0
	mov	x24, #0
LBB0_48:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	add	x0, x8, x23
	mov	x1, x20
	mov	w2, #0
	bl	_atomic_cmpxchg
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_48
LBB0_49:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid VCE command length (%d)!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"No other command allowed after destroy!\n"

l_.str.2:                               ; @.str.2
	.asciz	"Handle already in use!\n"

l_.str.3:                               ; @.str.3
	.asciz	"invalid VCE command (0x%x)!\n"

l_.str.4:                               ; @.str.4
	.asciz	"no session command at start of IB\n"

l_.str.5:                               ; @.str.5
	.asciz	"New session without create command!\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_RADEON_MAX_VCE_HANDLES,4,2     ; @RADEON_MAX_VCE_HANDLES
.subsections_via_symbols
