	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_resource
_get_resource:                          ## @get_resource
	.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	_conn@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	_database@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.2:
	movq	%rax, %rdi
	callq	_xcb_xrm_database_from_default
	movq	%rax, %rdi
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_xcb_xrm_resource_get_string
	movq	-24(%rbp), %rax
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_ELOG
	leaq	L_.str.1(%rip), %rdi
	callq	_xcb_xrm_database_from_string
	movq	%rax, (%r14)
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_conn,8,3                       ## @conn
	.comm	_database,8,3                   ## @database
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to open the resource database.\n"

L_.str.1:                               ## @.str.1
	.space	1

	.no_dead_strip	_get_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_resource
_get_resource:                          ; @get_resource
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _conn@GOTPAGE
Lloh1:
	ldr	x8, [x8, _conn@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x20, _database@GOTPAGE
Lloh4:
	ldr	x20, [x20, _database@GOTPAGEOFF]
	ldr	x0, [x20]
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x8
	bl	_xcb_xrm_database_from_default
	str	x0, [x20]
	cbz	x0, LBB0_5
LBB0_3:
	add	x3, sp, #8
	mov	x1, x19
	mov	x2, #0
	bl	_xcb_xrm_resource_get_string
	ldr	x0, [sp, #8]
	b	LBB0_6
LBB0_4:
	mov	x0, #0
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ELOG
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_xcb_xrm_database_from_string
	mov	x8, x0
	mov	x0, #0
	str	x8, [x20]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_conn,8,3                       ; @conn
	.comm	_database,8,3                   ; @database
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to open the resource database.\n"

l_.str.1:                               ; @.str.1
	.space	1

	.no_dead_strip	_get_resource
.subsections_via_symbols
