	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_pango_font
_load_pango_font:                       ## @load_pango_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
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_pango_font_description_from_string
	movl	%eax, 8(%r12)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %edi
	callq	_pango_font_description_get_family
	movl	%eax, %ebx
	movl	8(%r12), %edi
	callq	_pango_font_description_get_size
	movq	_PANGO_SCALE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_LOG
	movq	_root_screen@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_get_visualtype
	movq	_root_visual_type@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_conn@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	(%rbx), %rcx
	movl	(%rcx), %esi
	movl	$1, %r14d
	movl	%eax, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_cairo_xcb_surface_create
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_cairo_create
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_create_layout_with_dpi
	movq	%rax, %rbx
	movl	8(%r12), %esi
	movq	%rax, %rdi
	callq	_pango_layout_set_font_description
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pango_layout_get_pixel_size
	movl	-44(%rbp), %eax
	movl	%eax, 4(%r12)
	movq	%rbx, %rdi
	callq	_g_object_unref
	movq	%r13, %rdi
	callq	_cairo_destroy
	movq	%r15, %rdi
	callq	_cairo_surface_destroy
	movq	_FONT_TYPE_PANGO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_ELOG
	xorl	%r14d, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not open font %s with Pango, fallback to X font.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Using Pango font %s, size %d\n"

	.comm	_PANGO_SCALE,4,2                ## @PANGO_SCALE
	.comm	_root_screen,8,3                ## @root_screen
	.comm	_root_visual_type,4,2           ## @root_visual_type
	.comm	_conn,4,2                       ## @conn
	.comm	_FONT_TYPE_PANGO,4,2            ## @FONT_TYPE_PANGO
	.no_dead_strip	_load_pango_font
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_pango_font
_load_pango_font:                       ; @load_pango_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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_pango_font_description_from_string
	str	w0, [x19, #8]
	cbz	w0, LBB0_2
; %bb.1:
	bl	_pango_font_description_get_family
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_pango_font_description_get_size
Lloh0:
	adrp	x8, _PANGO_SCALE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PANGO_SCALE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w2, w0, w8
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_LOG
Lloh5:
	adrp	x20, _root_screen@GOTPAGE
Lloh6:
	ldr	x20, [x20, _root_screen@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_get_visualtype
	mov	x2, x0
Lloh7:
	adrp	x8, _root_visual_type@GOTPAGE
Lloh8:
	ldr	x8, [x8, _root_visual_type@GOTPAGEOFF]
Lloh9:
	str	w0, [x8]
Lloh10:
	adrp	x8, _conn@GOTPAGE
Lloh11:
	ldr	x8, [x8, _conn@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	w20, #1
	mov	w3, #1
	mov	w4, #1
	bl	_cairo_xcb_surface_create
	mov	x21, x0
	bl	_cairo_create
	mov	x22, x0
	bl	_create_layout_with_dpi
	mov	x23, x0
	ldr	w1, [x19, #8]
	bl	_pango_layout_set_font_description
	add	x2, sp, #12
	mov	x0, x23
	mov	x1, #0
	bl	_pango_layout_get_pixel_size
	ldr	w8, [sp, #12]
	str	w8, [x19, #4]
	mov	x0, x23
	bl	_g_object_unref
	mov	x0, x22
	bl	_cairo_destroy
	mov	x0, x21
	bl	_cairo_surface_destroy
Lloh13:
	adrp	x8, _FONT_TYPE_PANGO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FONT_TYPE_PANGO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_ELOG
	mov	w20, #0
LBB0_3:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not open font %s with Pango, fallback to X font.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Using Pango font %s, size %d\n"

	.comm	_PANGO_SCALE,4,2                ; @PANGO_SCALE
	.comm	_root_screen,8,3                ; @root_screen
	.comm	_root_visual_type,4,2           ; @root_visual_type
	.comm	_conn,4,2                       ; @conn
	.comm	_FONT_TYPE_PANGO,4,2            ; @FONT_TYPE_PANGO
	.no_dead_strip	_load_pango_font
.subsections_via_symbols
