	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xcb_query_text_width
_xcb_query_text_width:                  ## @xcb_query_text_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpb	$0, _xcb_query_text_width.first_invocation(%rip)
	jne	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movb	$1, _xcb_query_text_width.first_invocation(%rip)
LBB0_2:
	movq	_conn@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_savedFont@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	8(%rax), %esi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_xcb_query_text_extents
	movl	(%r12), %edi
	leaq	-40(%rbp), %rdx
	movl	%eax, %esi
	callq	_xcb_query_text_extents_reply
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	4(%rax), %ebx
	movq	%rax, %rdi
	callq	_free
	jmp	LBB0_5
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	-40(%rbp), %rdi
	callq	_free
	movq	(%r15), %rax
	movq	(%rax), %rax
	imull	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_xcb_query_text_width.first_invocation,1,2 ## @xcb_query_text_width.first_invocation
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using slow code path for text extents\n"

	.comm	_conn,4,2                       ## @conn
	.comm	_savedFont,8,3                  ## @savedFont
L_.str.1:                               ## @.str.1
	.asciz	"Could not get text extents (X error code %d)\n"

	.no_dead_strip	_xcb_query_text_width
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xcb_query_text_width
_xcb_query_text_width:                  ; @xcb_query_text_width
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	adrp	x21, _xcb_query_text_width.first_invocation@PAGE
	ldrb	w8, [x21, _xcb_query_text_width.first_invocation@PAGEOFF]
	tbnz	w8, #0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w8, #1
	strb	w8, [x21, _xcb_query_text_width.first_invocation@PAGEOFF]
LBB0_2:
Lloh5:
	adrp	x22, _conn@GOTPAGE
Lloh6:
	ldr	x22, [x22, _conn@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh7:
	adrp	x21, _savedFont@GOTPAGE
Lloh8:
	ldr	x21, [x21, _savedFont@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w1, [x8, #8]
	mov	x2, x19
	mov	x3, x20
	bl	_xcb_query_text_extents
	mov	x1, x0
	ldr	w0, [x22]
	add	x2, sp, #8
	bl	_xcb_query_text_extents_reply
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w19, [x0, #4]
	bl	_free
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	x0, [sp, #8]
	bl	_free
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w8, [x8]
	mul	w19, w8, w19
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_xcb_query_text_width.first_invocation,1,2 ; @xcb_query_text_width.first_invocation
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using slow code path for text extents\n"

	.comm	_conn,4,2                       ; @conn
	.comm	_savedFont,8,3                  ; @savedFont
l_.str.1:                               ; @.str.1
	.asciz	"Could not get text extents (X error code %d)\n"

	.no_dead_strip	_xcb_query_text_width
.subsections_via_symbols
