	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_text_xcb
_draw_text_xcb:                         ## @draw_text_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %rsi
	movq	_savedFont@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	addl	(%rax), %r9d
	cmpq	$255, %rbx
	movl	$255, %r12d
	cmovbq	%rbx, %r12
	movq	_conn@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, (%rsp)
	movl	%r12d, %esi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	callq	_xcb_image_text_16
	subq	%r12, %rbx
	je	LBB0_3
## %bb.1:
	xorl	%r14d, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addl	%r12d, %r14d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_predict_text_width_xcb
	addl	%eax, %r13d
	cmpq	$255, %rbx
	movl	$255, %r12d
	cmovbq	%rbx, %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14,4), %r15
	movq	_conn@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, (%rsp)
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_xcb_image_text_16
	subq	%r12, %rbx
	jne	LBB0_2
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_savedFont,8,3                  ## @savedFont
	.comm	_conn,4,2                       ## @conn
	.no_dead_strip	_draw_text_xcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_text_xcb
_draw_text_xcb:                         ; @draw_text_xcb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x25, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _savedFont@GOTPAGE
Lloh1:
	ldr	x8, [x8, _savedFont@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	add	w23, w8, w5
	mov	w8, #255
	cmp	x1, #255
	csel	x26, x1, x8, lo
	mov	x24, x26
Lloh3:
	adrp	x8, _conn@GOTPAGE
Lloh4:
	ldr	x8, [x8, _conn@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x26
	mov	x5, x23
	mov	x6, x22
	bl	_xcb_image_text_16
	subs	x27, x25, x26
	b.eq	LBB0_3
; %bb.1:
	mov	w28, #0
	mov	w26, #255
	mov	x25, x22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w28, w24, w28
	mov	x0, x25
	mov	x1, x24
	bl	_predict_text_width_xcb
	add	w19, w19, w0
	cmp	x27, #255
	csel	x24, x27, x26, lo
	add	x25, x22, w28, uxtw #2
Lloh6:
	adrp	x8, _conn@GOTPAGE
Lloh7:
	ldr	x8, [x8, _conn@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x24
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	mov	x5, x23
	mov	x6, x25
	bl	_xcb_image_text_16
	subs	x27, x27, x24
	b.ne	LBB0_2
LBB0_3:
	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	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_savedFont,8,3                  ; @savedFont
	.comm	_conn,4,2                       ; @conn
	.no_dead_strip	_draw_text_xcb
.subsections_via_symbols
