	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_blit_frame
_exynos_blit_frame:                     ## @exynos_blit_frame
	.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	%edx, %r12d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_defaults@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EXYNOS_IMAGE_FRAME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r15d
	movq	(%rdi), %rax
	movq	32(%rdi), %rdx
	movl	20(%rax), %r13d
	imull	%r12d, %r13d
	movq	(%rdx,%rcx,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_exynos_realloc_buffer
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	24(%rbx), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_memcpy_neon
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, (%rsi)
	movl	12(%rbx), %edi
	movl	16(%rbx), %edx
	movq	(%rbx), %rax
	movl	16(%rax), %r9d
	movl	20(%rax), %r10d
	movl	(%rax), %r11d
	movl	4(%rax), %r15d
	movl	8(%rax), %r12d
	movl	12(%rax), %eax
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%rax
	pushq	%r12
	pushq	%r15
	pushq	%r11
	pushq	%r10
	callq	_g2d_copy_with_scale
	addq	$48, %rsp
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	12(%rbx), %edi
	callq	_g2d_exec
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_ERR
	movl	$-1, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_defaults,8,3                   ## @defaults
	.comm	_EXYNOS_IMAGE_FRAME,8,3         ## @EXYNOS_IMAGE_FRAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[video_exynos]: failed to blit frame.\n"

	.no_dead_strip	_exynos_blit_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos_blit_frame
_exynos_blit_frame:                     ; @exynos_blit_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _defaults@GOTPAGE
Lloh1:
	ldr	x8, [x8, _defaults@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _EXYNOS_IMAGE_FRAME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXYNOS_IMAGE_FRAME@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w24, [x8, x9, lsl #2]
	ldr	x8, [x0]
	ldr	w8, [x8, #20]
	mul	w23, w8, w2
	ldr	x8, [x0, #32]
	ldr	x20, [x8, x9, lsl #3]
	mov	x1, x24
	mov	x2, x23
	bl	_exynos_realloc_buffer
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x24, lsl #3]
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy_neon
	str	w21, [x20]
	ldp	w0, w2, [x19, #12]
	ldr	x8, [x19]
	ldp	w5, w6, [x8, #16]
	ldr	w7, [x8]
	ldur	x9, [x8, #4]
	ldr	w8, [x8, #12]
	stp	w8, wzr, [sp, #8]
	str	x9, [sp]
	mov	x1, x20
	mov	w3, #0
	mov	w4, #0
	bl	_g2d_copy_with_scale
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #12]
	bl	_g2d_exec
	cbz	x0, LBB0_5
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_ERR
LBB0_4:
	mov	w0, #-1
LBB0_5:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_defaults,8,3                   ; @defaults
	.comm	_EXYNOS_IMAGE_FRAME,8,3         ; @EXYNOS_IMAGE_FRAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[video_exynos]: failed to blit frame.\n"

	.no_dead_strip	_exynos_blit_frame
.subsections_via_symbols
