	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gssd_make_resource
_gssd_make_resource:                    ## @gssd_make_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r14
	movq	_gss_next_id@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%rbx, 8(%r14)
	movq	_gr_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_gss_resources@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_LIST_INSERT_HEAD
	movq	_gss_resource_count@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	incl	%esi
	movl	%esi, (%rax)
	movq	_debug_level@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_printf
LBB0_4:
	movl	(%r14), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gss_next_id,4,2                ## @gss_next_id
	.comm	_gss_start_time,8,3             ## @gss_start_time
	.comm	_gss_resources,4,2              ## @gss_resources
	.comm	_gr_link,4,2                    ## @gr_link
	.comm	_gss_resource_count,4,2         ## @gss_resource_count
	.comm	_debug_level,4,2                ## @debug_level
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d resources allocated\n"

	.no_dead_strip	_gssd_make_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gssd_make_resource
_gssd_make_resource:                    ; @gssd_make_resource
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x8, _gss_next_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gss_next_id@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	str	x20, [x0, #8]
Lloh2:
	adrp	x8, _gr_link@GOTPAGE
Lloh3:
	ldr	x8, [x8, _gr_link@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x0, _gss_resources@GOTPAGE
Lloh6:
	ldr	x0, [x0, _gss_resources@GOTPAGEOFF]
	mov	x1, x19
	bl	_LIST_INSERT_HEAD
Lloh7:
	adrp	x8, _gss_resource_count@GOTPAGE
Lloh8:
	ldr	x8, [x8, _gss_resource_count@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w1, w9, #1
	str	w1, [x8]
Lloh9:
	adrp	x8, _debug_level@GOTPAGE
Lloh10:
	ldr	x8, [x8, _debug_level@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_4:
	ldr	w0, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_gss_next_id,4,2                ; @gss_next_id
	.comm	_gss_start_time,8,3             ; @gss_start_time
	.comm	_gss_resources,4,2              ; @gss_resources
	.comm	_gr_link,4,2                    ; @gr_link
	.comm	_gss_resource_count,4,2         ; @gss_resource_count
	.comm	_debug_level,4,2                ; @debug_level
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d resources allocated\n"

	.no_dead_strip	_gssd_make_resource
.subsections_via_symbols
