	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function exynos_set_texture_frame
LCPI0_0:
	.long	0x437f0000                      ## float 255
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_exynos_set_texture_frame:              ## @exynos_set_texture_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
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	_defaults@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EXYNOS_IMAGE_MENU@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rax,%rsi,4), %r13d
	movq	(%rdi), %r12
	movq	16(%r12), %rax
	movq	(%rax,%rsi,8), %r15
	xorl	%eax, %eax
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	setne	%al
	leal	(%rax,%rax), %ebx
	addl	$2, %ebx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	imull	%ecx, %ebx
	movl	%ebx, %r14d
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	imull	%r8d, %r14d
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_exynos_realloc_buffer
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r15)
	movl	%ebx, 8(%r15)
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movss	-56(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	jne	LBB0_2
## %bb.3:
	movq	_G2D_COLOR_FMT_ARGB4444@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_G2D_COLOR_FMT_ARGB8888@GOTPCREL(%rip), %rax
LBB0_4:
	movq	_G2D_ORDER_RGBAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 12(%r15)
	mulss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %eax
	movb	%al, 16(%r15)
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movl	(%rax), %edi
	movl	%r14d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy_neon                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_defaults,8,3                   ## @defaults
	.comm	_EXYNOS_IMAGE_MENU,8,3          ## @EXYNOS_IMAGE_MENU
	.comm	_G2D_COLOR_FMT_ARGB8888,4,2     ## @G2D_COLOR_FMT_ARGB8888
	.comm	_G2D_ORDER_RGBAX,4,2            ## @G2D_ORDER_RGBAX
	.comm	_G2D_COLOR_FMT_ARGB4444,4,2     ## @G2D_COLOR_FMT_ARGB4444
	.no_dead_strip	_exynos_set_texture_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos_set_texture_frame
_exynos_set_texture_frame:              ; @exynos_set_texture_frame
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x24, x4
	mov	x25, x3
	mov	x22, x2
	fmov	s8, s0
	mov	x19, x1
Lloh0:
	adrp	x8, _defaults@GOTPAGE
Lloh1:
	ldr	x8, [x8, _defaults@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _EXYNOS_IMAGE_MENU@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXYNOS_IMAGE_MENU@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w20, [x8, x9, lsl #2]
	ldr	x21, [x0]
	ldr	x8, [x21, #16]
	ldr	x26, [x8, x9, lsl #3]
	mov	w8, #4
	mov	w9, #2
	cmp	w2, #0
	csel	w8, w9, w8, eq
	mul	w27, w8, w3
	mul	w23, w27, w4
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_exynos_realloc_buffer
	cbz	x0, LBB0_2
; %bb.1:
	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
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_2:
	stp	w25, w24, [x26]
Lloh6:
	adrp	x8, _G2D_COLOR_FMT_ARGB4444@GOTPAGE
Lloh7:
	ldr	x8, [x8, _G2D_COLOR_FMT_ARGB4444@GOTPAGEOFF]
	str	w27, [x26, #8]
Lloh8:
	adrp	x9, _G2D_COLOR_FMT_ARGB8888@GOTPAGE
Lloh9:
	ldr	x9, [x9, _G2D_COLOR_FMT_ARGB8888@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _G2D_ORDER_RGBAX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _G2D_ORDER_RGBAX@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x26, #12]
	mov	w8, #1132396544
	fmov	s0, w8
	fmul	s0, s8, s0
	fcvtzs	w8, s0
	strb	w8, [x26, #16]
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, x23
	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
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	b	_memcpy_neon
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_defaults,8,3                   ; @defaults
	.comm	_EXYNOS_IMAGE_MENU,8,3          ; @EXYNOS_IMAGE_MENU
	.comm	_G2D_COLOR_FMT_ARGB8888,4,2     ; @G2D_COLOR_FMT_ARGB8888
	.comm	_G2D_ORDER_RGBAX,4,2            ; @G2D_ORDER_RGBAX
	.comm	_G2D_COLOR_FMT_ARGB4444,4,2     ; @G2D_COLOR_FMT_ARGB4444
	.no_dead_strip	_exynos_set_texture_frame
.subsections_via_symbols
