	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function caca_render_msg
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_caca_render_msg:                       ## @caca_render_msg
	.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
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.1:
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_2
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	leaq	4(%r15), %rax
	movss	8(%r15), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movl	12(%r15), %r13d
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rax
	addq	$4, %rax
	movl	$129, %r13d
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	%rbx, %r15
LBB0_5:
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.6:
	movq	8(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.7:
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.8:
	movl	(%rdx), %edi
	testl	%edi, %edi
	je	LBB0_17
## %bb.9:
	cmpl	$0, (%rcx)
	je	LBB0_17
## %bb.10:
	movss	(%r15), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm1, -52(%rbp)                ## 4-byte Spill
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	callq	_caca_get_canvas_width
	movl	%eax, %ebx
	movq	(%r12), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_caca_get_canvas_height
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movl	%eax, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	movss	-52(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	mulss	%xmm1, %xmm2
	subss	%xmm2, %xmm0
	cvttss2si	%xmm0, %r15
	movl	%ebx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	cmpl	$130, %r13d
	je	LBB0_14
## %bb.11:
	cmpl	$128, %r13d
	jne	LBB0_15
## %bb.12:
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, -44(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	callq	_strlen
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	jmp	LBB0_13
LBB0_14:
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movss	%xmm2, -44(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ecx, %xmm0
LBB0_13:
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	-48(%rbp), %xmm1                ## 4-byte Folded Reload
	subss	%xmm0, %xmm1
	movaps	%xmm1, %xmm0
	jmp	LBB0_16
LBB0_15:
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm2
	movaps	%xmm2, %xmm0
	mulss	%xmm1, %xmm0
LBB0_16:
	cvttss2si	%xmm0, %rsi
	movq	(%r12), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_caca_put_str
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_caca_refresh_display           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_caca_render_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function caca_render_msg
_caca_render_msg:                       ; @caca_render_msg
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	cbz	x1, LBB0_2
; %bb.1:
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x2
	bl	_string_is_empty
	cbz	x0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
	cbz	x21, LBB0_5
; %bb.4:
	add	x8, x21, #4
	ldr	s8, [x21, #8]
	ldr	w23, [x21, #12]
	ldr	x9, [x19]
	cbnz	x9, LBB0_6
	b	LBB0_2
LBB0_5:
	add	x8, x22, #4
	mov	w23, #129
	fmov	s8, #1.00000000
	mov	x21, x22
	ldr	x9, [x19]
	cbz	x9, LBB0_2
LBB0_6:
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_2
; %bb.7:
	ldr	x9, [x9]
	cbz	x9, LBB0_2
; %bb.8:
	ldr	w0, [x10]
	cbz	w0, LBB0_2
; %bb.9:
	ldr	w9, [x9]
	cbz	w9, LBB0_2
; %bb.10:
	ldr	s9, [x21]
	ldr	s10, [x8]
	bl	_caca_get_canvas_width
	mov	x22, x0
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_caca_get_canvas_height
	ucvtf	s0, w0
	fneg	s1, s10
	fmul	s1, s1, s0
	fmadd	s0, s1, s8, s0
	fcvtzu	w21, s0
	ucvtf	s0, w22
	cmp	w23, #130
	b.eq	LBB0_13
; %bb.11:
	cmp	w23, #128
	b.ne	LBB0_14
; %bb.12:
	fmul	s9, s9, s0
	mov	x0, x20
	bl	_strlen
	scvtf	s0, w0
	fnmsub	s0, s9, s8, s0
	b	LBB0_15
LBB0_13:
	fmul	s9, s9, s0
	mov	x0, x20
	bl	_strlen
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w8, w8, #1
	scvtf	s0, w8
	fnmsub	s0, s9, s8, s0
	b	LBB0_15
LBB0_14:
	fmul	s0, s9, s0
	fmul	s0, s8, s0
LBB0_15:
	fcvtzu	w1, s0
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	mov	x2, x21
	mov	x3, x20
	bl	_caca_put_str
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #96             ; 16-byte Folded Reload
	b	_caca_refresh_display
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_caca_render_msg
.subsections_via_symbols
