	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_font_driver_get_message_width  ## -- Begin function font_driver_get_message_width
	.p2align	4, 0x90
_font_driver_get_message_width:         ## @font_driver_get_message_width
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r14
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_video_font_driver@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_2:
	testq	%r14, %r14
	je	LBB0_5
## %bb.3:
	testl	%edx, %edx
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movss	%xmm0, -20(%rbp)                ## 4-byte Spill
	callq	_strlen
	movss	-20(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	%rax, %rdx
LBB0_5:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.6:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	(%rbx), %edi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_8:
	movl	$-1, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_video_font_driver,8,3          ## @video_font_driver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_font_driver_get_message_width  ; -- Begin function font_driver_get_message_width
	.p2align	2
_font_driver_get_message_width:         ; @font_driver_get_message_width
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	fmov	s8, s0
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, x1
Lloh0:
	adrp	x8, _video_font_driver@GOTPAGE
Lloh1:
	ldr	x8, [x8, _video_font_driver@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x20, x8, x0, eq
	cbz	x1, LBB0_3
; %bb.1:
	cbnz	w2, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
LBB0_3:
	cbz	x20, LBB0_7
; %bb.4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x3, [x8]
	cbz	x3, LBB0_7
; %bb.6:
	ldr	w0, [x20]
	mov	x1, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	fmov	s0, s8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	br	x3
LBB0_7:
	mov	w0, #-1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_video_font_driver,8,3          ; @video_font_driver
.subsections_via_symbols
