	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xv_init_font
_xv_init_font:                          ## @xv_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	16(%r14), %rdi
	leaq	12(%r14), %rsi
	movq	16(%rax), %rdx
	movq	(%rdx), %rax
	testq	%rax, %rax
	cmoveq	%rax, %rdx
	movl	12(%rbx), %ecx
	callq	_font_renderer_create_default
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	(%rbx), %eax
	movl	4(%rbx), %edx
	movl	%eax, %ecx
	shll	$8, %ecx
	subl	%eax, %ecx
	cmpl	$255, %ecx
	movl	$255, %eax
	cmovgel	%eax, %ecx
	xorl	%esi, %esi
	testl	%ecx, %ecx
	cmovlel	%esi, %ecx
	movl	%edx, %r8d
	shll	$8, %r8d
	subl	%edx, %r8d
	cmpl	$255, %r8d
	cmovgel	%eax, %r8d
	testl	%r8d, %r8d
	cmovlel	%esi, %r8d
	movl	8(%rbx), %edx
	movl	%edx, %r9d
	shll	$8, %r9d
	subl	%edx, %r9d
	cmpl	$255, %r9d
	cmovgel	%eax, %r9d
	testl	%r9d, %r9d
	cmovlel	%esi, %r9d
	leaq	8(%r14), %rdi
	leaq	4(%r14), %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_xv_calculate_yuv               ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	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	"[XVideo]: Could not initialize fonts.\n"

	.no_dead_strip	_xv_init_font
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xv_init_font
_xv_init_font:                          ; @xv_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, #16
	add	x1, x19, #12
	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	x0, LBB0_4
; %bb.2:
	ldp	w8, w9, [x20]
	lsl	w10, w8, #8
	sub	w8, w10, w8
	mov	w10, #255
	cmp	w8, #255
	csel	w8, w8, w10, lt
	cmp	w8, #0
	csel	w3, w8, wzr, gt
	lsl	w8, w9, #8
	sub	w8, w8, w9
	cmp	w8, #255
	csel	w8, w8, w10, lt
	cmp	w8, #0
	csel	w4, w8, wzr, gt
	ldr	w8, [x20, #8]
	lsl	w9, w8, #8
	sub	w8, w9, w8
	cmp	w8, #255
	csel	w8, w8, w10, lt
	cmp	w8, #0
	csel	w5, w8, wzr, gt
	add	x0, x19, #8
	add	x1, x19, #4
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_xv_calculate_yuv
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	"[XVideo]: Could not initialize fonts.\n"

	.no_dead_strip	_xv_init_font
.subsections_via_symbols
