	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_draw_text                      ## -- Begin function draw_text
	.p2align	4, 0x90
_draw_text:                             ## @draw_text
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movl	%edx, %r14d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movl	16(%rbp), %r12d
	movq	_savedFont@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setne	%dil
	callq	_assert
	movq	(%r15), %rax
	movl	(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_i3string_as_ucs2
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_i3string_get_num_glyphs
	movl	%r13d, %edi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_draw_text_xcb                  ## TAILCALL
LBB0_3:
	movq	%r12, %r15
	testq	%r13, %r13
	jne	LBB0_5
## %bb.4:
	movq	_root_visual_type@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_5:
	movq	%rbx, %rdi
	callq	_i3string_as_utf8
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_i3string_get_num_bytes
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_i3string_is_markup
                                        ## kill: def $eax killed $eax def $rax
	movl	%r12d, %edi
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r15
	callq	_draw_text_pango
	addq	$40, %rsp
	jmp	LBB0_7
LBB0_6:
	addq	$24, %rsp
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_savedFont,8,3                  ## @savedFont
	.comm	_root_visual_type,8,3           ## @root_visual_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_draw_text                      ; -- Begin function draw_text
	.p2align	2
_draw_text:                             ; @draw_text
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x6
	mov	x19, x5
	mov	x20, x4
	mov	x25, x3
	mov	x24, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x26, _savedFont@GOTPAGE
Lloh1:
	ldr	x26, [x26, _savedFont@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x26]
	ldr	w8, [x8]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x23
	bl	_i3string_as_ucs2
	mov	x22, x0
	mov	x0, x23
	bl	_i3string_get_num_glyphs
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	mov	x3, x24
	mov	x4, x20
	mov	x5, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_draw_text_xcb
LBB0_3:
Lloh2:
	adrp	x8, _root_visual_type@GOTPAGE
Lloh3:
	ldr	x8, [x8, _root_visual_type@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x25, #0
	csel	x24, x8, x25, eq
	mov	x0, x23
	bl	_i3string_as_utf8
	mov	x25, x0
	mov	x0, x23
	bl	_i3string_get_num_bytes
	mov	x26, x0
	mov	x0, x23
	bl	_i3string_is_markup
	mov	x7, x0
	mov	x0, x25
	mov	x1, x26
	mov	x2, x21
	mov	x3, x24
	mov	x4, x20
	mov	x5, x19
	mov	x6, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_draw_text_pango
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_savedFont,8,3                  ; @savedFont
	.comm	_root_visual_type,8,3           ; @root_visual_type
.subsections_via_symbols
