	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_vce_get_create_msg      ## -- Begin function radeon_vce_get_create_msg
	.p2align	4, 0x90
_radeon_vce_get_create_msg:             ## @radeon_vce_get_create_msg
	.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
	movq	%rcx, %r14
	movl	%edx, %r13d
	movq	%rdi, %r12
	leaq	-64(%rbp), %rdx
	xorl	%ecx, %ecx
	movl	$4096, %r8d                     ## imm = 0x1000
	callq	_radeon_ib_get
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	jmp	LBB0_10
LBB0_2:
	movl	$1024, %r15d                    ## imm = 0x400
	addl	-64(%rbp), %r15d
	movl	$0, -60(%rbp)
	movl	$12, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	movl	$1, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	movl	%r13d, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	movl	$48, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	movl	$16777217, %edi                 ## imm = 0x1000001
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	movl	$66, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	movl	$10, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	movl	$1, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	movl	$128, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	movl	$96, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	movl	$256, %edi                      ## imm = 0x100
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	movl	$256, %edi                      ## imm = 0x100
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	movl	$12, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	movl	$20, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	movl	$83886085, %edi                 ## imm = 0x5000005
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	movl	%r15d, %edi
	callq	_upper_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	movl	%r15d, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movslq	-60(%rbp), %rdx
	leal	1(%rdx), %esi
	movl	%esi, -60(%rbp)
	movq	%rax, (%rcx,%rdx,8)
	movl	$1, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rsi
	movslq	-60(%rbp), %rcx
	leal	1(%rcx), %edx
	movl	%edx, -60(%rbp)
	movq	%rax, (%rsi,%rcx,8)
	cmpl	$1023, %edx                     ## imm = 0x3FF
	ja	LBB0_5
## %bb.3:
	movl	%edx, %ebx
	leal	-1023(%rcx), %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	incl	%r15d
	jne	LBB0_4
LBB0_5:
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_radeon_ib_schedule
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_DRM_ERROR
LBB0_7:
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movl	-56(%rbp), %edi
	callq	_radeon_fence_ref
	movq	%rax, (%r14)
LBB0_9:
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_radeon_ib_free
LBB0_10:
	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	"radeon: failed to get ib (%d).\n"

L_.str.1:                               ## @.str.1
	.asciz	"radeon: failed to schedule ib (%d).\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_vce_get_create_msg      ; -- Begin function radeon_vce_get_create_msg
	.p2align	2
_radeon_vce_get_create_msg:             ; @radeon_vce_get_create_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x3
	mov	x22, x2
	mov	x19, x0
	add	x2, sp, #8
	mov	x3, #0
	mov	w4, #4096
	bl	_radeon_ib_get
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DRM_ERROR
	b	LBB0_10
LBB0_2:
	ldr	w8, [sp, #8]
	add	w21, w8, #1024
	str	wzr, [sp, #12]
	mov	w0, #12
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #1
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	x0, x22
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #48
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #1
	movk	w0, #256, lsl #16
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #0
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #66
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #10
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #1
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #128
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #96
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #256
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #256
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #12
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #0
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #20
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #5
	movk	w0, #1280, lsl #16
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	x0, x21
	bl	_upper_32_bits
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	x0, x21
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	w10, w9, #1
	str	w10, [sp, #12]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #1
	bl	_cpu_to_le32
	ldr	x10, [sp, #24]
	ldrsw	x8, [sp, #12]
	add	w9, w8, #1
	str	w9, [sp, #12]
	str	x0, [x10, x8, lsl #3]
	cmp	w9, #1023
	b.hi	LBB0_5
; %bb.3:
	lsl	x21, x9, #3
	sub	w22, w8, #1023
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	str	x0, [x8, x21]
	add	x21, x21, #8
	adds	w22, w22, #1
	b.lo	LBB0_4
LBB0_5:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	bl	_radeon_ib_schedule
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.6:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_DRM_ERROR
LBB0_7:
	cbz	x20, LBB0_9
; %bb.8:
	ldr	w0, [sp, #16]
	bl	_radeon_fence_ref
	str	x0, [x20]
LBB0_9:
	add	x1, sp, #8
	mov	x0, x19
	bl	_radeon_ib_free
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"radeon: failed to get ib (%d).\n"

l_.str.1:                               ; @.str.1
	.asciz	"radeon: failed to schedule ib (%d).\n"

.subsections_via_symbols
