	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdns_init                      ## -- Begin function gdns_init
	.p2align	4, 0x90
_gdns_init:                             ## @gdns_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$4, %edi
	callq	_xmalloc
	movq	_gdns_queue@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_QUEUE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_gqueue_init
	movq	_gdns_thread@GOTPCREL(%rip), %rbx
	leaq	8(%rbx), %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_FATAL
LBB0_2:
	addq	$4, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_FATAL
LBB0_4:
	movq	_gdns_thread@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_FATAL                          ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gdns_queue,4,2                 ## @gdns_queue
	.comm	_QUEUE_SIZE,4,2                 ## @QUEUE_SIZE
	.comm	_gdns_thread,12,2               ## @gdns_thread
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed init thread condition"

L_.str.1:                               ## @.str.1
	.asciz	"Failed init thread mutex"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdns_init                      ; -- Begin function gdns_init
	.p2align	2
_gdns_init:                             ; @gdns_init
	.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
	mov	w0, #4
	bl	_xmalloc
Lloh0:
	adrp	x8, _gdns_queue@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gdns_queue@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
Lloh3:
	adrp	x8, _QUEUE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QUEUE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_gqueue_init
Lloh6:
	adrp	x19, _gdns_thread@GOTPAGE
Lloh7:
	ldr	x19, [x19, _gdns_thread@GOTPAGEOFF]
	add	x0, x19, #8
	mov	x1, #0
	bl	_pthread_cond_init
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FATAL
LBB0_2:
	add	x0, x19, #4
	mov	x1, #0
	bl	_pthread_cond_init
	cbz	x0, LBB0_4
; %bb.3:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FATAL
LBB0_4:
Lloh12:
	adrp	x0, _gdns_thread@GOTPAGE
Lloh13:
	ldr	x0, [x0, _gdns_thread@GOTPAGEOFF]
	mov	x1, #0
	bl	_pthread_mutex_init
	cbz	x0, LBB0_6
; %bb.5:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_FATAL
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_gdns_queue,4,2                 ; @gdns_queue
	.comm	_QUEUE_SIZE,4,2                 ; @QUEUE_SIZE
	.comm	_gdns_thread,12,2               ; @gdns_thread
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed init thread condition"

l_.str.1:                               ; @.str.1
	.asciz	"Failed init thread mutex"

.subsections_via_symbols
