	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_init_font
_exynos_init_font:                      ## @exynos_init_font
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	16(%rdi), %r15
	movq	_EXYNOS_IMAGE_FONT@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_defaults@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	leaq	(%rax,%rax,2), %rdx
	movl	(%rcx,%rdx,4), %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	cvtsi2ss	%rcx, %xmm0
	movq	8(%r15), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	mulss	(%r15), %xmm0
	movl	$16, %edi
	callq	_align_common
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%rax,%rcx,4), %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_config_get_ptr
	cmpl	$0, 24(%rax)
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	leaq	8(%r13), %r14
	leaq	4(%r13), %rbx
	movq	16(%rax), %rdx
	movq	(%rdx), %rax
	testq	%rax, %rax
	cmoveq	%rax, %rdx
	movl	12(%r12), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_font_renderer_create_default
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	(%r12), %eax
	movl	4(%r12), %ecx
	leal	(%rax,%rax,4), %eax
	leal	(%rax,%rax,2), %eax
	leal	(%rcx,%rcx,4), %ecx
	movl	8(%r12), %edx
	leal	(%rdx,%rdx,4), %edx
	leal	(%rdx,%rdx,2), %edx
	cmpl	$15, %edx
	movl	$15, %esi
	cmovgel	%esi, %edx
	xorl	%r14d, %r14d
	testl	%edx, %edx
	cmovlel	%r14d, %edx
	leal	(%rcx,%rcx,2), %ecx
	cmpl	$15, %ecx
	cmovgel	%esi, %ecx
	testl	%ecx, %ecx
	cmovlel	%r14d, %ecx
	shll	$4, %ecx
	cmpl	$15, %eax
	cmovll	%eax, %esi
	testl	%esi, %esi
	cmovlel	%r14d, %esi
	shll	$8, %esi
	orl	%ecx, %esi
	orl	%edx, %esi
	movl	%esi, (%r13)
	movq	_defaults@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EXYNOS_IMAGE_FONT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,4), %esi
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	imull	%r12d, %r13d
	movl	%r13d, %edx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	imull	%ebx, %edx
	movq	%r15, %rdi
	callq	_exynos_realloc_buffer
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	callq	*(%rax)
	movl	$-1, %r14d
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_ERR
	movl	$-1, %r14d
	jmp	LBB0_5
LBB0_4:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	movl	%ebx, 4(%rax)
	movl	%r13d, 8(%rax)
LBB0_5:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXYNOS_IMAGE_FONT,8,3          ## @EXYNOS_IMAGE_FONT
	.comm	_defaults,8,3                   ## @defaults
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[video_exynos]: creating font renderer failed\n"

	.no_dead_strip	_exynos_init_font
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos_init_font
_exynos_init_font:                      ; @exynos_init_font
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.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
	mov	x21, x0
	ldr	x19, [x0, #16]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x27, _EXYNOS_IMAGE_FONT@GOTPAGE
Lloh1:
	ldr	x27, [x27, _EXYNOS_IMAGE_FONT@GOTPAGEOFF]
	ldr	x9, [x27]
	ldr	x23, [x8, x9, lsl #3]
Lloh2:
	adrp	x28, _defaults@GOTPAGE
Lloh3:
	ldr	x28, [x28, _defaults@GOTPAGEOFF]
	ldr	x8, [x28]
	mov	w22, #12
	mul	x9, x9, x22
	ldr	w26, [x8, x9]
	ldr	s0, [x19]
	ucvtf	s1, w26
	fmul	s0, s0, s1
	mov	w0, #16
	bl	_align_common
	mov	x20, x0
	ldr	x8, [x28]
	ldr	x9, [x27]
	madd	x8, x9, x22, x8
	ldr	w25, [x8, #4]
	bl	_config_get_ptr
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x24, x0
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	add	x23, x21, #8
	add	x22, x21, #4
	ldr	x8, [x0, #16]
	ldr	x9, [x8]
	cmp	x9, #0
	csel	x2, xzr, x8, eq
	ldr	w3, [x0, #12]
	mov	x0, x23
	mov	x1, x22
	bl	_font_renderer_create_default
	cbz	x0, LBB0_5
; %bb.2:
	ldp	w8, w9, [x24]
	lsl	w10, w8, #4
	sub	w8, w10, w8
	lsl	w10, w9, #4
	sub	w9, w10, w9
	ldr	w10, [x24, #8]
	lsl	w11, w10, #4
	sub	w10, w11, w10
	mov	w11, #15
	cmp	w10, #15
	csel	w10, w10, w11, lt
	cmp	w10, #0
	csel	w10, w10, wzr, gt
	cmp	w9, #15
	csel	w9, w9, w11, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	lsl	w9, w9, #4
	cmp	w8, #15
	csel	w8, w8, w11, lt
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	orr	w8, w9, w8, lsl #8
	orr	w8, w8, w10
	str	w8, [x21]
	ldr	x8, [x28]
	ldr	x9, [x27]
	mov	w10, #12
	madd	x8, x9, x10, x8
	ldr	w1, [x8, #8]
	mul	w21, w25, w20
	mul	w2, w21, w26
	mov	x0, x19
	bl	_exynos_realloc_buffer
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	w0, [x22]
	blr	x8
	mov	w0, #-1
	b	LBB0_7
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_ERR
	mov	w0, #-1
	b	LBB0_7
LBB0_6:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	stp	w20, w26, [x8]
	str	w21, [x8, #8]
LBB0_7:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EXYNOS_IMAGE_FONT,8,3          ; @EXYNOS_IMAGE_FONT
	.comm	_defaults,8,3                   ; @defaults
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[video_exynos]: creating font renderer failed\n"

	.no_dead_strip	_exynos_init_font
.subsections_via_symbols
