	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_loopback
_test_loopback:                         ## @test_loopback
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	callq	_h2o_config_init
	leaq	L_.str(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, %edi
	callq	_h2o_iovec_init
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_h2o_config_register_host
	movq	_test_loop@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_h2o_context_init
	movq	-32(%rbp), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_h2o_loopback_create
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, %edi
	callq	_h2o_iovec_init
	movq	%rax, 16(%rbx)
	leaq	L_.str.2(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, %edi
	callq	_h2o_iovec_init
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_h2o_loopback_run_loop
	xorl	%edi, %edi
	cmpl	$404, (%rbx)                    ## imm = 0x194
	sete	%dil
	callq	_ok
	movq	%rbx, %rdi
	callq	_h2o_loopback_destroy
	movq	%r15, %rdi
	callq	_h2o_context_dispose
	movq	%r14, %rdi
	callq	_h2o_config_dispose
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"default"

	.comm	_test_loop,4,2                  ## @test_loop
L_.str.1:                               ## @.str.1
	.asciz	"GET"

L_.str.2:                               ## @.str.2
	.asciz	"/"

	.no_dead_strip	_test_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_loopback
_test_loopback:                         ; @test_loopback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	add	x0, sp, #12
	bl	_h2o_config_init
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_H2O_STRLIT
	bl	_h2o_iovec_init
	mov	x1, x0
	add	x0, sp, #12
	mov	w2, #65535
	bl	_h2o_config_register_host
Lloh2:
	adrp	x8, _test_loop@GOTPAGE
Lloh3:
	ldr	x8, [x8, _test_loop@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, sp
	add	x2, sp, #12
	bl	_h2o_context_init
	ldr	x8, [sp]
	ldr	w1, [x8]
	mov	x0, sp
	bl	_h2o_loopback_create
	mov	x19, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_H2O_STRLIT
	bl	_h2o_iovec_init
	str	x0, [x19, #16]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_H2O_STRLIT
	bl	_h2o_iovec_init
	str	x0, [x19, #8]
	mov	x0, x19
	bl	_h2o_loopback_run_loop
	ldr	w8, [x19]
	cmp	w8, #404
	cset	w0, eq
	bl	_ok
	mov	x0, x19
	bl	_h2o_loopback_destroy
	mov	x0, sp
	bl	_h2o_context_dispose
	add	x0, sp, #12
	bl	_h2o_config_dispose
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"default"

	.comm	_test_loop,4,2                  ; @test_loop
l_.str.1:                               ; @.str.1
	.asciz	"GET"

l_.str.2:                               ; @.str.2
	.asciz	"/"

	.no_dead_strip	_test_loopback
.subsections_via_symbols
