	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_font                      ## -- Begin function load_font
	.p2align	4, 0x90
_load_font:                             ## @load_font
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_free_font
	movq	_FONT_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	$0, 40(%r13)
	movq	_conn@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_21
## %bb.1:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_strlen
	cmpl	%eax, %ebx
	jle	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_3
LBB0_6:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_strlen
	cmpl	%eax, %ebx
	jle	LBB0_9
## %bb.7:
	leaq	L_.str.1(%rip), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
LBB0_4:
	callq	_strlen
	movslq	%eax, %rsi
	addq	%r14, %rsi
	movq	%r13, %rdi
	callq	_load_pango_font
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%r14, %rdi
	callq	_sstrdup
	movq	%rax, 40(%r13)
	jmp	LBB0_21
LBB0_9:
	movq	(%r12), %rdi
	callq	_xcb_generate_id
	movl	%eax, %ebx
	movl	%eax, 24(%r13)
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movq	%r12, %r15
	movq	(%r12), %r12
	movq	%r14, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_xcb_open_font_checked
	movl	%eax, %ebx
	movq	(%r15), %rdi
	movl	24(%r13), %esi
	callq	_xcb_query_font
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rdi
	movl	%ebx, %esi
	callq	_xcb_request_check
	movq	%rax, %r12
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.10:
	testq	%r12, %r12
	je	LBB0_15
## %bb.11:
	movq	(%r12), %rdx
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_ELOG
	movq	_conn@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	24(%r13), %r15d
	leaq	L_.str.3(%rip), %r14
	movq	%r14, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_xcb_open_font_checked
	movl	%eax, %ebx
	movq	_conn@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	24(%r13), %esi
	callq	_xcb_query_font
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movq	_conn@GOTPCREL(%rip), %r12
	callq	_free
	movq	(%r12), %rdi
	movl	%ebx, %esi
	callq	_xcb_request_check
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %r15
	leaq	L_.str.4(%rip), %rdi
	movq	%r12, %rbx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_ELOG
	movq	(%rbx), %rbx
	movl	24(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str.5(%rip), %r14
	movq	%r14, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_xcb_open_font_checked
	movl	%eax, %ebx
	movq	_conn@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	24(%r13), %esi
	callq	_xcb_query_font
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_free
	movq	_conn@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%ebx, %esi
	callq	_xcb_request_check
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rax, %r15
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	leaq	L_.str.6(%rip), %rsi
	callq	_errx
	movq	%r15, %r12
	jmp	LBB0_15
LBB0_12:
	xorl	%r12d, %r12d
LBB0_15:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	%r12, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_sstrdup
	movq	%rax, 40(%r13)
	leaq	L_.str.7(%rip), %rdi
	movq	%r14, %rsi
	callq	_LOG
	movq	_conn@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_xcb_query_font_reply
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdx
	callq	_errx
	movq	8(%r13), %rax
LBB0_17:
	movq	%rax, %rdi
	callq	_xcb_query_font_char_infos_length
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movq	8(%r13), %rdi
	callq	_xcb_query_font_char_infos
	jmp	LBB0_20
LBB0_18:
	xorl	%eax, %eax
LBB0_20:
	movq	%rax, 16(%r13)
	movq	8(%r13), %rax
	movq	(%rax), %rcx
	addq	8(%rax), %rcx
	movq	%rcx, 32(%r13)
	movq	_FONT_TYPE_XCB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
LBB0_21:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FONT_TYPE_NONE,4,2             ## @FONT_TYPE_NONE
	.comm	_conn,8,3                       ## @conn
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pango:"

L_.str.1:                               ## @.str.1
	.asciz	"xft:"

L_.str.2:                               ## @.str.2
	.asciz	"Could not open font %s (X error %d). Trying fallback to 'fixed'.\n"

L_.str.3:                               ## @.str.3
	.asciz	"fixed"

L_.str.4:                               ## @.str.4
	.asciz	"Could not open fallback font 'fixed', trying with '-misc-*'.\n"

L_.str.5:                               ## @.str.5
	.asciz	"-misc-*"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.6:                               ## @.str.6
	.asciz	"Could open neither requested font nor fallbacks (fixed or -misc-*): X11 error %d"

L_.str.7:                               ## @.str.7
	.asciz	"Using X font %s\n"

L_.str.8:                               ## @.str.8
	.asciz	"Could not load font \"%s\""

	.comm	_FONT_TYPE_XCB,4,2              ## @FONT_TYPE_XCB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_font                      ; -- Begin function load_font
	.p2align	2
_load_font:                             ; @load_font
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x20, x0
	mov	x19, x8
	bl	_free_font
Lloh0:
	adrp	x8, _FONT_TYPE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FONT_TYPE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	str	xzr, [x19, #40]
Lloh3:
	adrp	x24, _conn@GOTPAGE
Lloh4:
	ldr	x24, [x24, _conn@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_20
; %bb.1:
	mov	x0, x20
	bl	_strlen
	mov	x22, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strlen
	cmp	w22, w0
	b.le	LBB0_3
; %bb.2:
Lloh7:
	adrp	x22, l_.str@PAGE
Lloh8:
	add	x22, x22, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_strncmp
	cbz	w0, LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_strlen
	mov	x22, x0
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_strlen
	cmp	w22, w0
	b.le	LBB0_9
; %bb.4:
Lloh11:
	adrp	x22, l_.str.1@PAGE
Lloh12:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_strncmp
	cbnz	w0, LBB0_9
; %bb.5:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_strlen
	add	x1, x20, w0, sxtw
	mov	x0, x19
	bl	_load_pango_font
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_sstrdup
	str	x0, [x19, #40]
	b	LBB0_20
LBB0_9:
	ldr	x0, [x24]
	bl	_xcb_generate_id
	mov	x22, x0
	str	w0, [x19, #24]
	ldr	x23, [x24]
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	mov	x3, x20
	bl	_xcb_open_font_checked
	mov	x23, x0
	ldr	x0, [x24]
	ldr	w1, [x19, #24]
	bl	_xcb_query_font
	mov	x22, x0
	ldr	x0, [x24]
	mov	x1, x23
	bl	_xcb_request_check
	mov	x23, x0
	cbz	w21, LBB0_15
; %bb.10:
	cbz	x23, LBB0_15
; %bb.11:
	ldr	x8, [x23]
	stp	x20, x8, [sp]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ELOG
	ldr	x21, [x24]
	ldr	w22, [x19, #24]
Lloh19:
	adrp	x20, l_.str.3@PAGE
Lloh20:
	add	x20, x20, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	mov	x3, x20
	bl	_xcb_open_font_checked
	mov	x21, x0
	ldr	x0, [x24]
	ldr	w1, [x19, #24]
	bl	_xcb_query_font
	mov	x22, x0
	mov	x0, x23
	bl	_free
	ldr	x0, [x24]
	mov	x1, x21
	bl	_xcb_request_check
	cbz	x0, LBB0_14
; %bb.12:
	mov	x21, x0
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_ELOG
	ldr	x22, [x24]
	ldr	w23, [x19, #24]
Lloh23:
	adrp	x20, l_.str.5@PAGE
Lloh24:
	add	x20, x20, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	mov	x3, x20
	bl	_xcb_open_font_checked
	mov	x23, x0
	ldr	x0, [x24]
	ldr	w1, [x19, #24]
	bl	_xcb_query_font
	mov	x22, x0
	mov	x0, x21
	bl	_free
	ldr	x0, [x24]
	mov	x1, x23
	bl	_xcb_request_check
	mov	x23, x0
	cbz	x0, LBB0_15
; %bb.13:
Lloh25:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	x2, [x23]
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_errx
Lloh30:
	adrp	x20, l_.str.5@PAGE
Lloh31:
	add	x20, x20, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_14:
	mov	x23, #0
LBB0_15:
	mov	x0, x23
	bl	_free
	mov	x0, x20
	bl	_sstrdup
	str	x0, [x19, #40]
Lloh32:
	adrp	x0, l_.str.7@PAGE
Lloh33:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x20
	bl	_LOG
	ldr	x0, [x24]
	mov	x1, x22
	mov	x2, #0
	bl	_xcb_query_font_reply
	str	x0, [x19, #8]
	cbnz	x0, LBB0_17
; %bb.16:
Lloh34:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x1, l_.str.8@PAGE
Lloh38:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x2, x20
	bl	_errx
	ldr	x0, [x19, #8]
LBB0_17:
	bl	_xcb_query_font_char_infos_length
	cbz	x0, LBB0_19
; %bb.18:
	ldr	x0, [x19, #8]
	bl	_xcb_query_font_char_infos
LBB0_19:
	str	x0, [x19, #16]
	ldr	x8, [x19, #8]
	ldp	x8, x9, [x8]
	add	x8, x8, x9
	str	x8, [x19, #32]
Lloh39:
	adrp	x8, _FONT_TYPE_XCB@GOTPAGE
Lloh40:
	ldr	x8, [x8, _FONT_TYPE_XCB@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_20:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_FONT_TYPE_NONE,4,2             ; @FONT_TYPE_NONE
	.comm	_conn,8,3                       ; @conn
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pango:"

l_.str.1:                               ; @.str.1
	.asciz	"xft:"

l_.str.2:                               ; @.str.2
	.asciz	"Could not open font %s (X error %d). Trying fallback to 'fixed'.\n"

l_.str.3:                               ; @.str.3
	.asciz	"fixed"

l_.str.4:                               ; @.str.4
	.asciz	"Could not open fallback font 'fixed', trying with '-misc-*'.\n"

l_.str.5:                               ; @.str.5
	.asciz	"-misc-*"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.6:                               ; @.str.6
	.asciz	"Could open neither requested font nor fallbacks (fixed or -misc-*): X11 error %d"

l_.str.7:                               ; @.str.7
	.asciz	"Using X font %s\n"

l_.str.8:                               ; @.str.8
	.asciz	"Could not load font \"%s\""

	.comm	_FONT_TYPE_XCB,4,2              ; @FONT_TYPE_XCB
.subsections_via_symbols
