	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function predict_text_width_xcb
_predict_text_width_xcb:                ## @predict_text_width_xcb
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	_savedFont@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_13
## %bb.3:
	movq	8(%rax), %r9
	movl	(%r9), %r10d
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	LBB0_4
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	%ecx, %eax
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	cmpq	%rdx, %rsi
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rdx,8), %ecx
	movl	%ecx, %ebx
	subl	%r10d, %ebx
	jl	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	4(%r9), %ecx
	jg	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rdi,%rdx,8), %ecx
	movl	8(%r9), %r14d
	movl	%ecx, %r11d
	subl	%r14d, %r11d
	jl	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%r9), %r15d
	cmpl	%r15d, %ecx
	jg	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	subl	%r14d, %r15d
	incl	%r15d
	imull	%ebx, %r15d
	addl	%r15d, %r11d
	movslq	%r11d, %rcx
	leaq	(%rcx,%rcx,2), %rbx
	movq	(%r8,%rbx,8), %rcx
	testq	%rcx, %rcx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movdqu	8(%r8,%rbx,8), %xmm0
	ptest	%xmm0, %xmm0
	jne	LBB0_10
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xcb_query_text_width           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_savedFont,8,3                  ## @savedFont
	.no_dead_strip	_predict_text_width_xcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function predict_text_width_xcb
_predict_text_width_xcb:                ; @predict_text_width_xcb
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_12
; %bb.1:
	mov	x8, x0
Lloh0:
	adrp	x9, _savedFont@GOTPAGE
Lloh1:
	ldr	x9, [x9, _savedFont@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
	ldr	x9, [x10]
	cbz	x9, LBB0_13
; %bb.2:
	mov	w0, #0
	ldr	x10, [x10, #8]
	ldr	w11, [x10]
	add	x8, x8, #4
	mov	w12, #24
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w0, w0, w13
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #8
	subs	x1, x1, #1
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w14, [x8, #-4]
	subs	w13, w14, w11
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w15, [x10, #4]
	cmp	w14, w15
	b.gt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w16, [x8]
	ldr	w15, [x10, #8]
	subs	w14, w16, w15
	b.lt	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w17, [x10, #12]
	cmp	w16, w17
	b.gt	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w15, w17, w15
	madd	w13, w13, w15, w13
	add	w14, w14, w13
	smull	x13, w14, w12
	ldr	x13, [x9, x13]
	cbnz	x13, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x14, w14
	madd	x14, x14, x12, x9
	ldur	q0, [x14, #8]
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w14, s0
	mov.s	w15, v0[1]
	orr	w14, w14, w15
	cbnz	w14, LBB0_3
	b	LBB0_4
LBB0_11:
	ret
LBB0_12:
	mov	w0, #0
	ret
LBB0_13:
	mov	x0, x8
	b	_xcb_query_text_width
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_savedFont,8,3                  ; @savedFont
	.no_dead_strip	_predict_text_width_xcb
.subsections_via_symbols
