	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_lookup_thread
_create_lookup_thread:                  ## @create_lookup_thread
	.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
	subq	$152, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	leaq	-148(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_pthread_attr_init
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_pthread_attr_setdetachstate
	movq	%rbx, %rdi
	movl	$102400, %esi                   ## imm = 0x19000
	callq	_pthread_attr_setstacksize
	movq	_lookup_thread_main@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-152(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_pthread_create
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_queue@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	leaq	-144(%rbp), %rsi
	movl	%eax, %edi
	movl	$128, %edx
	callq	_h2o_strerror_r
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_h2o_error_printf
	jmp	LBB0_5
LBB0_4:
	movq	_queue@GOTPCREL(%rip), %rax
	incq	(%rax)
	incl	8(%rax)
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_h2o_fatal
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$152, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_lookup_thread_main,4,2         ## @lookup_thread_main
	.comm	_queue,16,3                     ## @queue
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to start first thread for getaddrinfo: %s"

L_.str.1:                               ## @.str.1
	.asciz	"pthread_create(for getaddrinfo): %s"

	.no_dead_strip	_create_lookup_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_lookup_thread
_create_lookup_thread:                  ; @create_lookup_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	x0, sp
	bl	_pthread_attr_init
	mov	x0, sp
	mov	w1, #1
	bl	_pthread_attr_setdetachstate
	mov	x0, sp
	mov	w1, #36864
	movk	w1, #1, lsl #16
	bl	_pthread_attr_setstacksize
Lloh3:
	adrp	x8, _lookup_thread_main@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lookup_thread_main@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #4
	mov	x1, #0
	mov	x3, #0
	bl	_pthread_create
Lloh6:
	adrp	x8, _queue@GOTPAGE
Lloh7:
	ldr	x8, [x8, _queue@GOTPAGEOFF]
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x19, [x8]
	add	x1, sp, #8
	mov	w2, #128
	bl	_h2o_strerror_r
	mov	x1, x0
	cbz	x19, LBB0_4
; %bb.2:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_h2o_error_printf
	b	LBB0_5
LBB0_3:
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_h2o_fatal
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_lookup_thread_main,4,2         ; @lookup_thread_main
	.comm	_queue,16,3                     ; @queue
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to start first thread for getaddrinfo: %s"

l_.str.1:                               ; @.str.1
	.asciz	"pthread_create(for getaddrinfo): %s"

	.no_dead_strip	_create_lookup_thread
.subsections_via_symbols
