	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_lib__common__multithread_c ## -- Begin function test_lib__common__multithread_c
	.p2align	4, 0x90
_test_lib__common__multithread_c:       ## @test_lib__common__multithread_c
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_create_loop
	movq	_main_thread@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_h2o_multithread_create_queue
	movq	%rax, 8(%rbx)
	movq	_on_pong@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	20(%rbx), %rsi
	movq	%rax, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_h2o_multithread_register_receiver
	movq	8(%rbx), %rdi
	movq	_on_shutdown@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	16(%rbx), %r15
	movq	%r15, %rsi
	callq	_h2o_multithread_register_receiver
	xorl	%eax, %eax
	callq	_create_loop
	movq	_worker_thread@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	movq	%rax, %rdi
	callq	_h2o_multithread_create_queue
	movq	%rax, 8(%r13)
	movq	_on_ping@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	16(%r13), %r12
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_h2o_multithread_register_receiver
	movq	_worker_main@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_pthread_create
	movq	%r12, %rdi
	callq	_send_empty_message
	cmpl	$0, 24(%rbx)
	jne	LBB0_3
## %bb.1:
	movq	_INT32_MAX@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	callq	_h2o_evloop_run
	cmpl	$0, 24(%rbx)
	je	LBB0_2
LBB0_3:
	movl	-44(%rbp), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	movq	8(%r13), %rdi
	movq	%r12, %rsi
	callq	_h2o_multithread_unregister_receiver
	movq	8(%r13), %rdi
	callq	_h2o_multithread_destroy_queue
	movq	(%r13), %rdi
	callq	_destroy_loop
	movq	8(%rbx), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_h2o_multithread_unregister_receiver
	movq	8(%rbx), %rdi
	movq	%r15, %rsi
	callq	_h2o_multithread_unregister_receiver
	movq	8(%rbx), %rdi
	callq	_h2o_multithread_destroy_queue
	movq	(%rbx), %rdi
	callq	_destroy_loop
	movl	$1, %edi
	callq	_ok
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_main_thread,32,3               ## @main_thread
	.comm	_on_pong,4,2                    ## @on_pong
	.comm	_on_shutdown,4,2                ## @on_shutdown
	.comm	_worker_thread,24,3             ## @worker_thread
	.comm	_on_ping,4,2                    ## @on_ping
	.comm	_worker_main,4,2                ## @worker_main
	.comm	_INT32_MAX,4,2                  ## @INT32_MAX
	.comm	_UV_RUN_ONCE,4,2                ## @UV_RUN_ONCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_lib__common__multithread_c ; -- Begin function test_lib__common__multithread_c
	.p2align	2
_test_lib__common__multithread_c:       ; @test_lib__common__multithread_c
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_create_loop
Lloh0:
	adrp	x22, _main_thread@GOTPAGE
Lloh1:
	ldr	x22, [x22, _main_thread@GOTPAGEOFF]
	str	x0, [x22]
	bl	_h2o_multithread_create_queue
	str	x0, [x22, #8]
Lloh2:
	adrp	x8, _on_pong@GOTPAGE
Lloh3:
	ldr	x8, [x8, _on_pong@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x19, x22, #20
	mov	x1, x19
	bl	_h2o_multithread_register_receiver
	ldr	x0, [x22, #8]
Lloh5:
	adrp	x8, _on_shutdown@GOTPAGE
Lloh6:
	ldr	x8, [x8, _on_shutdown@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x20, x22, #16
	mov	x1, x20
	bl	_h2o_multithread_register_receiver
	bl	_create_loop
Lloh8:
	adrp	x23, _worker_thread@GOTPAGE
Lloh9:
	ldr	x23, [x23, _worker_thread@GOTPAGEOFF]
	str	x0, [x23]
	bl	_h2o_multithread_create_queue
	str	x0, [x23, #8]
Lloh10:
	adrp	x8, _on_ping@GOTPAGE
Lloh11:
	ldr	x8, [x8, _on_ping@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x21, x23, #16
	mov	x1, x21
	bl	_h2o_multithread_register_receiver
Lloh13:
	adrp	x8, _worker_main@GOTPAGE
Lloh14:
	ldr	x8, [x8, _worker_main@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	x1, #0
	mov	x3, #0
	bl	_pthread_create
	mov	x0, x21
	bl	_send_empty_message
	ldr	w8, [x22, #24]
	cbnz	w8, LBB0_3
; %bb.1:
Lloh16:
	adrp	x24, _INT32_MAX@GOTPAGE
Lloh17:
	ldr	x24, [x24, _INT32_MAX@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	w1, [x24]
	bl	_h2o_evloop_run
	ldr	w8, [x22, #24]
	cbz	w8, LBB0_2
LBB0_3:
	ldr	w0, [sp, #12]
	mov	x1, #0
	bl	_pthread_join
	ldr	x0, [x23, #8]
	mov	x1, x21
	bl	_h2o_multithread_unregister_receiver
	ldr	x0, [x23, #8]
	bl	_h2o_multithread_destroy_queue
	ldr	x0, [x23]
	bl	_destroy_loop
	ldr	x0, [x22, #8]
	mov	x1, x19
	bl	_h2o_multithread_unregister_receiver
	ldr	x0, [x22, #8]
	mov	x1, x20
	bl	_h2o_multithread_unregister_receiver
	ldr	x0, [x22, #8]
	bl	_h2o_multithread_destroy_queue
	ldr	x0, [x22]
	bl	_destroy_loop
	mov	w0, #1
	bl	_ok
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_main_thread,32,3               ; @main_thread
	.comm	_on_pong,4,2                    ; @on_pong
	.comm	_on_shutdown,4,2                ; @on_shutdown
	.comm	_worker_thread,24,3             ; @worker_thread
	.comm	_on_ping,4,2                    ; @on_ping
	.comm	_worker_main,4,2                ; @worker_main
	.comm	_INT32_MAX,4,2                  ; @INT32_MAX
	.comm	_UV_RUN_ONCE,4,2                ; @UV_RUN_ONCE
.subsections_via_symbols
