	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tail_html
_tail_html:                             ## @tail_html
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_gdns_thread@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	_holder@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_free_holder
	leaq	4(%r14), %rdi
	callq	_pthread_cond_broadcast
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	xorl	%eax, %eax
	callq	_allocate_holder
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	_glog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_get_json
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	_gwswriter@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_strlen
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_broadcast_holder
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gdns_thread,8,2                ## @gdns_thread
	.comm	_holder,4,2                     ## @holder
	.comm	_glog,4,2                       ## @glog
	.comm	_gwswriter,8,3                  ## @gwswriter
	.no_dead_strip	_tail_html
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tail_html
_tail_html:                             ; @tail_html
	.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
Lloh0:
	adrp	x20, _gdns_thread@GOTPAGE
Lloh1:
	ldr	x20, [x20, _gdns_thread@GOTPAGEOFF]
	mov	x0, x20
	bl	_pthread_mutex_lock
Lloh2:
	adrp	x19, _holder@GOTPAGE
Lloh3:
	ldr	x19, [x19, _holder@GOTPAGEOFF]
	mov	x0, x19
	bl	_free_holder
	add	x0, x20, #4
	bl	_pthread_cond_broadcast
	mov	x0, x20
	bl	_pthread_mutex_unlock
	bl	_allocate_holder
	mov	x0, x20
	bl	_pthread_mutex_lock
Lloh4:
	adrp	x8, _glog@GOTPAGE
Lloh5:
	ldr	x8, [x8, _glog@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w1, [x19]
	mov	w2, #0
	bl	_get_json
	mov	x19, x0
	mov	x0, x20
	bl	_pthread_mutex_unlock
	cbz	x19, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _gwswriter@GOTPAGE
Lloh8:
	ldr	x8, [x8, _gwswriter@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w20, [x8]
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_broadcast_holder
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_gdns_thread,8,2                ; @gdns_thread
	.comm	_holder,4,2                     ; @holder
	.comm	_glog,4,2                       ; @glog
	.comm	_gwswriter,8,3                  ; @gwswriter
	.no_dead_strip	_tail_html
.subsections_via_symbols
