	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_html
_process_html:                          ## @process_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_gdns_thread@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	_glog@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_holder@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_output_html
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	movq	_conf@GOTPCREL(%rip), %r15
	cmpl	$0, 24(%r15)
	je	LBB0_17
## %bb.1:
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_gwswriter@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	$4, %rdi
	callq	_pthread_mutex_lock
	xorl	%eax, %eax
	callq	_open_fifoin
	movq	(%r12), %rdi
	movl	%eax, (%rdi)
	addq	$4, %rdi
	callq	_pthread_mutex_unlock
	movq	(%r12), %rax
	cmpl	$-1, (%rax)
	je	LBB0_17
## %bb.3:
	movl	(%r15), %edi
	movl	$8, %esi
	callq	_xcalloc
	movq	%rax, %r14
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	callq	_file_size
	movq	%rax, (%r14,%rbx,8)
	movl	(%r15), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdi
	cmpb	$45, (%rdi)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$0, 1(%rdi)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, (%r14,%rbx,8)
	jmp	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	callq	_set_ready_state
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	$800000, %edi                   ## imm = 0xC3500
	callq	_usleep
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	cmpq	$0, 16(%r15)
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$0, (%r15)
	jle	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r13, %rdi
	callq	_perform_tail_follow
	incq	%rbx
	movslq	(%r15), %rax
	addq	$8, %r13
	cmpq	%rax, %rbx
	jl	LBB0_14
	jmp	LBB0_15
LBB0_16:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_close
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_gdns_thread,4,2                ## @gdns_thread
	.comm	_glog,8,3                       ## @glog
	.comm	_holder,4,2                     ## @holder
	.comm	_conf,32,3                      ## @conf
	.comm	_gwswriter,8,3                  ## @gwswriter
	.no_dead_strip	_process_html
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_html
_process_html:                          ; @process_html
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x20, _gdns_thread@GOTPAGE
Lloh1:
	ldr	x20, [x20, _gdns_thread@GOTPAGEOFF]
	mov	x0, x20
	bl	_pthread_mutex_lock
Lloh2:
	adrp	x22, _glog@GOTPAGE
Lloh3:
	ldr	x22, [x22, _glog@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh4:
	adrp	x8, _holder@GOTPAGE
Lloh5:
	ldr	x8, [x8, _holder@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_output_html
	mov	x0, x20
	bl	_pthread_mutex_unlock
Lloh7:
	adrp	x21, _conf@GOTPAGE
Lloh8:
	ldr	x21, [x21, _conf@GOTPAGEOFF]
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh9:
	adrp	x22, _gwswriter@GOTPAGE
Lloh10:
	ldr	x22, [x22, _gwswriter@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, #4
	bl	_pthread_mutex_lock
	bl	_open_fifoin
	ldr	x8, [x22]
	str	w0, [x8], #4
	mov	x0, x8
	bl	_pthread_mutex_unlock
	ldr	x8, [x22]
	ldr	w8, [x8]
	cmn	w8, #1
	b.eq	LBB0_2
; %bb.4:
	ldr	w0, [x21]
	mov	w1, #8
	bl	_xcalloc
	mov	x19, x0
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.5:
	mov	x20, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	bl	_file_size
	str	x0, [x19, x20, lsl #3]
	ldr	w8, [x21]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	ldr	x0, [x9, x20, lsl #3]
	ldrb	w9, [x0]
	cmp	w9, #45
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w9, [x0, #1]
	cbnz	w9, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	str	xzr, [x19, x20, lsl #3]
	b	LBB0_7
LBB0_11:
	bl	_set_ready_state
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #13568
	movk	w0, #12, lsl #16
	bl	_usleep
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x23, #0
	mov	x20, x19
LBB0_16:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #8]
	ldr	x1, [x8, x23, lsl #3]
	mov	x0, x20
	bl	_perform_tail_follow
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x20, x20, #8
	cmp	x23, x8
	b.lt	LBB0_16
	b	LBB0_12
LBB0_17:
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_close
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_gdns_thread,4,2                ; @gdns_thread
	.comm	_glog,8,3                       ; @glog
	.comm	_holder,4,2                     ; @holder
	.comm	_conf,32,3                      ; @conf
	.comm	_gwswriter,8,3                  ; @gwswriter
	.no_dead_strip	_process_html
.subsections_via_symbols
