	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_init_font
_omap_init_font:                        ## @omap_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_config_get_ptr
	cmpl	$0, 24(%rax)
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	leaq	12(%r14), %rdi
	leaq	8(%r14), %rsi
	movq	16(%rax), %rdx
	movq	(%rdx), %rax
	testq	%rax, %rax
	cmoveq	%rax, %rdx
	movl	12(%rbx), %ecx
	callq	_font_renderer_create_default
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movl	%ecx, %eax
	shll	$8, %eax
	subl	%ecx, %eax
	movl	%edx, %ecx
	shll	$8, %ecx
	subl	%edx, %ecx
	movl	8(%rbx), %edx
	movl	%edx, %esi
	shll	$8, %esi
	subl	%edx, %esi
	cmpl	$255, %eax
	movl	$255, %edx
	cmovgel	%edx, %eax
	xorl	%edi, %edi
	testl	%eax, %eax
	cmovlel	%edi, %eax
	cmpl	$255, %ecx
	cmovgel	%edx, %ecx
	testl	%ecx, %ecx
	cmovlel	%edi, %ecx
	cmpl	$255, %esi
	cmovgel	%edx, %esi
	testl	%esi, %esi
	cmovlel	%edi, %esi
	movq	(%r14), %rdx
	movl	%eax, (%rdx)
	movl	%ecx, 4(%rdx)
	movl	%esi, 8(%rdx)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_RARCH_LOG                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[video_omap]: font init failed\n"

	.no_dead_strip	_omap_init_font
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_init_font
_omap_init_font:                        ; @omap_init_font
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_config_get_ptr
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x0, x19, #12
	add	x1, x19, #8
	ldr	x8, [x20, #16]
	ldr	x9, [x8]
	cmp	x9, #0
	csel	x2, xzr, x8, eq
	ldr	w3, [x20, #12]
	bl	_font_renderer_create_default
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w8, [x20, #8]
	lsl	w9, w8, #8
	sub	w8, w9, w8
	mov	w9, #255
	cmp	w8, #255
	csel	w8, w8, w9, lt
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	ldr	x9, [x19]
	ldr	d0, [x20]
	movi	d1, #0x0000ff000000ff
	mul.2s	v0, v0, v1
	smin.2s	v0, v0, v1
	movi.2d	v1, #0000000000000000
	smax.2s	v0, v0, v1
	str	d0, [x9]
	str	w8, [x9, #8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_RARCH_LOG
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[video_omap]: font init failed\n"

	.no_dead_strip	_omap_init_font
.subsections_via_symbols
