	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_dpi                       ## -- Begin function init_dpi
	.p2align	4, 0x90
_init_dpi:                              ## @init_dpi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -24(%rbp)
	movq	_conn@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	callq	_xcb_xrm_database_from_default
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	leaq	-24(%rbp), %rcx
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_xcb_xrm_resource_get_string
	movq	-24(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	leaq	-32(%rbp), %rsi
	callq	_strtod
	movq	_HUGE_VAL@GOTPCREL(%rip), %rax
	ucomisd	(%rax), %xmm0
	movq	_dpi@GOTPCREL(%rip), %r14
	jne	LBB0_7
	jnp	LBB0_8
LBB0_7:
	cmpq	$0, (%r14)
	js	LBB0_8
## %bb.9:
	movq	-32(%rbp), %rax
	cmpb	$0, (%rax)
	movq	-24(%rbp), %rsi
	jne	LBB0_11
## %bb.10:
	cmpq	%rsi, %rax
	je	LBB0_11
## %bb.12:
	callq	_lround
	movq	%rax, (%r14)
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_DLOG
	jmp	LBB0_13
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_ELOG
LBB0_3:
	xorl	%edi, %edi
	callq	_free
	jmp	LBB0_14
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	jmp	LBB0_13
LBB0_8:
	movq	-24(%rbp), %rsi
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_ELOG
	movq	$0, (%r14)
LBB0_13:
	movq	-24(%rbp), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_xcb_xrm_database_free
LBB0_14:
	movq	_dpi@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	xorl	%eax, %eax
	callq	_init_dpi_fallback
	movq	%rax, (%rbx)
	leaq	L_.str.6(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_DLOG
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_conn,8,3                       ## @conn
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to open the resource database.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Xft.dpi"

L_.str.2:                               ## @.str.2
	.asciz	"Resource Xft.dpi not specified, skipping.\n"

	.comm	_HUGE_VAL,8,3                   ## @HUGE_VAL
	.comm	_dpi,8,3                        ## @dpi
L_.str.3:                               ## @.str.3
	.asciz	"Xft.dpi = %s is an invalid number and couldn't be parsed.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Found Xft.dpi = %ld.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Using fallback for calculating DPI.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Using dpi = %ld\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_dpi                       ; -- Begin function init_dpi
	.p2align	2
_init_dpi:                              ; @init_dpi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, _conn@GOTPAGE
Lloh1:
	ldr	x8, [x8, _conn@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
Lloh3:
	adrp	x20, _dpi@GOTPAGE
Lloh4:
	ldr	x20, [x20, _dpi@GOTPAGEOFF]
	cbz	x0, LBB0_9
; %bb.1:
	bl	_xcb_xrm_database_from_default
	cbz	x0, LBB0_8
; %bb.2:
	mov	x19, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x3, sp, #24
	mov	x2, #0
	bl	_xcb_xrm_resource_get_string
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_12
; %bb.3:
	add	x1, sp, #16
	bl	_strtod
Lloh7:
	adrp	x8, _HUGE_VAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HUGE_VAL@GOTPAGEOFF]
Lloh9:
	ldr	d1, [x8]
	fcmp	d0, d1
	b.eq	LBB0_14
; %bb.4:
	ldr	x8, [x20]
	tbnz	x8, #63, LBB0_14
; %bb.5:
	ldp	x9, x8, [sp, #16]
	ldrb	w10, [x9]
	cbnz	w10, LBB0_15
; %bb.6:
	cmp	x9, x8
	b.eq	LBB0_15
; %bb.7:
	fcvtas	x8, d0
	str	x8, [x20]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_8:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ELOG
LBB0_9:
	mov	x0, #0
	bl	_free
	ldr	x8, [x20]
	cbnz	x8, LBB0_11
LBB0_10:
Lloh14:
	adrp	x0, l_.str.5@PAGE
Lloh15:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DLOG
	bl	_init_dpi_fallback
	str	x0, [x20]
	str	x0, [sp]
Lloh16:
	adrp	x0, l_.str.6@PAGE
Lloh17:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DLOG
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_DLOG
	b	LBB0_16
LBB0_14:
	ldr	x8, [sp, #24]
LBB0_15:
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ELOG
	str	xzr, [x20]
LBB0_16:
	ldr	x0, [sp, #24]
	bl	_free
	mov	x0, x19
	bl	_xcb_xrm_database_free
	ldr	x8, [x20]
	cbnz	x8, LBB0_11
	b	LBB0_10
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_conn,8,3                       ; @conn
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to open the resource database.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Xft.dpi"

l_.str.2:                               ; @.str.2
	.asciz	"Resource Xft.dpi not specified, skipping.\n"

	.comm	_HUGE_VAL,8,3                   ; @HUGE_VAL
	.comm	_dpi,8,3                        ; @dpi
l_.str.3:                               ; @.str.3
	.asciz	"Xft.dpi = %s is an invalid number and couldn't be parsed.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Found Xft.dpi = %ld.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Using fallback for calculating DPI.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Using dpi = %ld\n"

.subsections_via_symbols
