	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_vce_resume              ## -- Begin function amdgpu_vce_resume
	.p2align	4, 0x90
_amdgpu_vce_resume:                     ## @amdgpu_vce_resume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	xorl	%esi, %esi
	callq	_amdgpu_bo_reserve
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	movl	16(%r14), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_5:
	movq	(%r14), %rdi
	leaq	-24(%rbp), %rsi
	callq	_amdgpu_bo_kmap
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	callq	_amdgpu_bo_unreserve
	movl	16(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movl	%ebx, %edx
	callq	_dev_err
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	8(%r14), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movq	-24(%rbp), %rdi
	movq	8(%r14), %rcx
	movl	%eax, %eax
	movq	8(%rcx), %rsi
	addq	%rax, %rsi
	movq	(%rcx), %rdx
	subq	%rax, %rdx
	callq	_memcpy_toio
	movq	(%r14), %rdi
	callq	_amdgpu_bo_kunmap
	movq	(%r14), %rdi
	callq	_amdgpu_bo_unreserve
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d) failed to reserve VCE bo\n"

L_.str.1:                               ## @.str.1
	.asciz	"(%d) VCE map failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_vce_resume              ; -- Begin function amdgpu_vce_resume
	.p2align	2
_amdgpu_vce_resume:                     ; @amdgpu_vce_resume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_3
; %bb.1:
	mov	w1, #0
	bl	_amdgpu_bo_reserve
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_4:
	ldr	x0, [x19]
	add	x1, sp, #8
	bl	_amdgpu_bo_kmap
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.5:
	ldr	x0, [x19]
	bl	_amdgpu_bo_unreserve
	ldr	w0, [x19, #16]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x2, x20
	bl	_dev_err
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	ldr	x8, [sp, #8]
	ldr	x9, [x19, #8]
	mov	w10, w0
	ldp	x9, x11, [x9]
	add	x1, x11, x10
	sub	x2, x9, x10
	mov	x0, x8
	bl	_memcpy_toio
	ldr	x0, [x19]
	bl	_amdgpu_bo_kunmap
	ldr	x0, [x19]
	bl	_amdgpu_bo_unreserve
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d) failed to reserve VCE bo\n"

l_.str.1:                               ; @.str.1
	.asciz	"(%d) VCE map failed\n"

.subsections_via_symbols
