	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_uvd_get_destroy_msg     ## -- Begin function amdgpu_uvd_get_destroy_msg
	.p2align	4, 0x90
_amdgpu_uvd_get_destroy_msg:            ## @amdgpu_uvd_get_destroy_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, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	movq	$0, -56(%rbp)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AMDGPU_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-56(%rbp), %r8
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%r9d, %r9d
	callq	_amdgpu_bo_create_reserved
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	$3556, %edi                     ## imm = 0xDE4
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movl	%eax, (%rcx)
	movl	$2, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movl	%eax, 4(%rcx)
	movl	%r12d, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movl	%eax, 8(%rcx)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movl	%eax, 12(%rcx)
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	$1024, %rbx                     ## imm = 0x400
	jne	LBB0_2
## %bb.3:
	movq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_amdgpu_uvd_send_msg
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_AMDGPU_GEM_DOMAIN_VRAM,4,2     ## @AMDGPU_GEM_DOMAIN_VRAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_uvd_get_destroy_msg     ; -- Begin function amdgpu_uvd_get_destroy_msg
	.p2align	2
_amdgpu_uvd_get_destroy_msg:            ; @amdgpu_uvd_get_destroy_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x0, [x0]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _AMDGPU_GEM_DOMAIN_VRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AMDGPU_GEM_DOMAIN_VRAM@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x6, sp
	mov	w1, #1024
	mov	x5, #0
	bl	_amdgpu_bo_create_reserved
	cbnz	w0, LBB0_4
; %bb.1:
	mov	w0, #3556
	bl	_cpu_to_le32
	ldr	x8, [sp]
	str	w0, [x8]
	mov	w0, #2
	bl	_cpu_to_le32
	ldr	x8, [sp]
	str	w0, [x8, #4]
	mov	x0, x22
	bl	_cpu_to_le32
	ldr	x8, [sp]
	str	w0, [x8, #8]
	mov	w0, #0
	bl	_cpu_to_le32
	ldr	x8, [sp]
	str	w0, [x8, #12]
	mov	w22, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	bl	_cpu_to_le32
	ldr	x8, [sp]
	str	w0, [x8, x22]
	add	x22, x22, #4
	cmp	x22, #1, lsl #12                ; =4096
	b.ne	LBB0_2
; %bb.3:
	ldr	x1, [sp, #8]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_amdgpu_uvd_send_msg
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_AMDGPU_GEM_DOMAIN_VRAM,4,2     ; @AMDGPU_GEM_DOMAIN_VRAM
.subsections_via_symbols
