	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_osd_print                 ## -- Begin function solo_osd_print
	.p2align	4, 0x90
_solo_osd_print:                        ## @solo_osd_print
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movq	(%rdi), %r12
	movq	8(%rdi), %r15
	leaq	L_.str(%rip), %rdi
	callq	_find_font
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_2:
	movq	%r14, %rdi
	movq	%r12, %r14
	movq	_SOLO_VE_OSD_CH@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_solo_reg_read
	movl	%eax, %edx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r14)
	je	LBB0_3
## %bb.4:
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	_SOLO_OSD_WRITE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movq	(%r13), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r12d
	andl	$1, %r12d
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movq	%r15, %rbx
	movl	%r14d, %r15d
	shll	$4, %r15d
	andl	$-32, %r15d
	shll	$4, %eax
	cltq
	movl	(%rcx,%rax,4), %edi
	callq	_bitrev8
	movq	%r12, %r14
	movq	%r15, %r13
	leal	(%r12,%r15), %ecx
	movslq	%ecx, %rcx
	movl	%eax, (%rbx,%rcx,4)
	movl	$1, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	$2, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %eax
	shll	$4, %eax
	orl	%r15d, %eax
	cltq
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %edi
	callq	_bitrev8
	movl	%r12d, %ecx
	orl	%r14d, %ecx
	orl	%r13d, %ecx
	movslq	%ecx, %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	incl	%r15d
	addl	$2, %r12d
	cmpl	$16, %r15d
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	incl	%r14d
	movl	4(%rbx), %eax
	addq	$4, %rbx
	testl	%eax, %eax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_6
LBB0_9:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	16(%r14), %esi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_SOLO_EOSD_EXT_ADDR_CHAN
	movq	_SOLO_OSD_WRITE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%r9d, %r9d
	callq	_solo_p2m_dma
	movb	16(%r14), %al
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	btsl	%eax, %edx
	movq	_SOLO_VE_OSD_CH@GOTPCREL(%rip), %r12
	jmp	LBB0_10
LBB0_3:
	movb	16(%rbx), %al
	btrl	%eax, %edx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_solo_reg_write
	xorl	%eax, %eax
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VGA8x16"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SOLO_VE_OSD_CH,4,2             ## @SOLO_VE_OSD_CH
	.comm	_SOLO_OSD_WRITE_SIZE,4,2        ## @SOLO_OSD_WRITE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_osd_print                 ; -- Begin function solo_osd_print
	.p2align	2
_solo_osd_print:                        ; @solo_osd_print
	.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	x20, x0
	ldr	x19, [x0, #24]
	ldp	x25, x21, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_find_font
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_2:
Lloh5:
	adrp	x22, _SOLO_VE_OSD_CH@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SOLO_VE_OSD_CH@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_solo_reg_read
	ldr	w8, [x25]
	cbz	w8, LBB0_9
; %bb.3:
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
Lloh7:
	adrp	x8, _SOLO_OSD_WRITE_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SOLO_OSD_WRITE_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	ldr	w8, [x25]
	cbz	w8, LBB0_8
; %bb.4:
	mov	w27, #0
	ldr	x23, [x23]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	and	w28, w27, #0x1
	lsl	w9, w27, #4
	and	w26, w9, #0xffffffe0
	lsl	w8, w8, #4
	ldr	w0, [x23, w8, sxtw #2]
	bl	_bitrev8
	mov	x8, x26
	bfxil	w8, w27, #0, #1
	str	w0, [x21, w8, sxtw #2]
	mov	w24, #1
	mov	w22, #2
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x25]
	orr	w8, w24, w8, lsl #4
	ldr	w0, [x23, w8, sxtw #2]
	bl	_bitrev8
	orr	w8, w22, w28
	orr	w8, w8, w26
	str	w0, [x21, w8, sxtw #2]
	add	w24, w24, #1
	add	w22, w22, #2
	cmp	w24, #16
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w27, w27, #1
	ldr	w8, [x25, #4]!
	cbnz	w8, LBB0_5
LBB0_8:
	ldr	w1, [x20, #16]
	mov	x0, x19
	bl	_SOLO_EOSD_EXT_ADDR_CHAN
	mov	x3, x0
Lloh10:
	adrp	x8, _SOLO_OSD_WRITE_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SOLO_OSD_WRITE_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	mov	w22, #1
	mov	x0, x19
	mov	w1, #1
	mov	x2, x21
	mov	w5, #0
	mov	w6, #0
	bl	_solo_p2m_dma
	ldr	w8, [x20, #16]
	lsl	w8, w22, w8
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	orr	w2, w8, w9
Lloh13:
	adrp	x22, _SOLO_VE_OSD_CH@GOTPAGE
Lloh14:
	ldr	x22, [x22, _SOLO_VE_OSD_CH@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	ldr	w8, [x20, #16]
	mov	w9, #1
	lsl	w8, w9, w8
	bic	w2, w0, w8
LBB0_10:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_solo_reg_write
	mov	w0, #0
LBB0_11:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VGA8x16"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SOLO_VE_OSD_CH,4,2             ; @SOLO_VE_OSD_CH
	.comm	_SOLO_OSD_WRITE_SIZE,4,2        ; @SOLO_OSD_WRITE_SIZE
.subsections_via_symbols
