	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_lib__handler__redirect_c  ## -- Begin function test_lib__handler__redirect_c
	.p2align	4, 0x90
_test_lib__handler__redirect_c:         ## @test_lib__handler__redirect_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_h2o_config_init
	leaq	L_.str(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, %edi
	callq	_h2o_iovec_init
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_h2o_config_register_host
	leaq	L_.str.1(%rip), %r13
	movq	%rax, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_h2o_config_register_path
	leaq	L_.str.2(%rip), %r12
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$301, %edx                      ## imm = 0x12D
	movq	%r12, %rcx
	callq	_h2o_redirect_register
	movq	_test_loop@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ctx@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_h2o_context_init
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_h2o_loopback_create
	movq	%rax, %r14
	leaq	L_.str.3(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, %edi
	callq	_h2o_iovec_init
	leaq	8(%r14), %rbx
	movq	%rax, 24(%r14)
	movq	%r13, %rdi
	callq	_H2O_STRLIT
	movl	%eax, %edi
	callq	_h2o_iovec_init
	movq	%rax, 16(%r14)
	movq	%r14, %rdi
	callq	_h2o_loopback_run_loop
	xorl	%edi, %edi
	cmpl	$301, 8(%r14)                   ## imm = 0x12D
	sete	%dil
	callq	_ok
	movq	_H2O_TOKEN_LOCATION@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_check_header
	movl	%eax, %edi
	callq	_ok
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
	callq	_ok
	movq	%r14, %rdi
	callq	_h2o_loopback_destroy
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_h2o_loopback_create
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, %edi
	callq	_h2o_iovec_init
	leaq	8(%rbx), %r14
	movq	%rax, 24(%rbx)
	leaq	L_.str.4(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, %edi
	callq	_h2o_iovec_init
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_h2o_loopback_run_loop
	xorl	%edi, %edi
	cmpl	$301, 8(%rbx)                   ## imm = 0x12D
	sete	%dil
	callq	_ok
	movl	(%r13), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	callq	_check_header
	movl	%eax, %edi
	callq	_ok
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
	callq	_ok
	movq	%rbx, %rdi
	callq	_h2o_loopback_destroy
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_h2o_loopback_create
	movq	%rax, %rbx
	leaq	L_.str.6(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, %edi
	callq	_h2o_iovec_init
	leaq	8(%rbx), %r14
	movq	%rax, 24(%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, %edi
	callq	_h2o_iovec_init
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_h2o_loopback_run_loop
	xorl	%edi, %edi
	cmpl	$301, 8(%rbx)                   ## imm = 0x12D
	sete	%dil
	callq	_ok
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_check_header
	movl	%eax, %edi
	callq	_ok
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_ok
	movq	%rbx, %rdi
	callq	_h2o_loopback_destroy
	movq	%r15, %rdi
	callq	_h2o_context_dispose
	leaq	-44(%rbp), %rdi
	callq	_h2o_config_dispose
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"default"

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

L_.str.2:                               ## @.str.2
	.asciz	"https://example.com/bar/"

	.comm	_ctx,8,3                        ## @ctx
	.comm	_test_loop,4,2                  ## @test_loop
L_.str.3:                               ## @.str.3
	.asciz	"GET"

	.comm	_H2O_TOKEN_LOCATION,4,2         ## @H2O_TOKEN_LOCATION
L_.str.4:                               ## @.str.4
	.asciz	"/abc"

L_.str.5:                               ## @.str.5
	.asciz	"https://example.com/bar/abc"

L_.str.6:                               ## @.str.6
	.asciz	"HEAD"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_lib__handler__redirect_c  ; -- Begin function test_lib__handler__redirect_c
	.p2align	2
_test_lib__handler__redirect_c:         ; @test_lib__handler__redirect_c
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	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	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	w2, #0
	bl	_h2o_config_register_path
Lloh4:
	adrp	x20, l_.str.2@PAGE
Lloh5:
	add	x20, x20, l_.str.2@PAGEOFF
	mov	w1, #0
	mov	w2, #301
	mov	x3, x20
	bl	_h2o_redirect_register
Lloh6:
	adrp	x8, _test_loop@GOTPAGE
Lloh7:
	ldr	x8, [x8, _test_loop@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x19, _ctx@GOTPAGE
Lloh10:
	ldr	x19, [x19, _ctx@GOTPAGEOFF]
	add	x2, sp, #12
	mov	x0, x19
	bl	_h2o_context_init
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_h2o_loopback_create
	mov	x23, x0
Lloh11:
	adrp	x22, l_.str.3@PAGE
Lloh12:
	add	x22, x22, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_H2O_STRLIT
	bl	_h2o_iovec_init
	str	x0, [x23, #24]
	mov	x0, x21
	bl	_H2O_STRLIT
	bl	_h2o_iovec_init
	str	x0, [x23, #16]
	mov	x0, x23
	bl	_h2o_loopback_run_loop
	mov	x24, x23
	ldr	w8, [x24, #8]!
	cmp	w8, #301
	cset	w0, eq
	bl	_ok
Lloh13:
	adrp	x25, _H2O_TOKEN_LOCATION@GOTPAGE
Lloh14:
	ldr	x25, [x25, _H2O_TOKEN_LOCATION@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x24
	mov	x2, x20
	bl	_check_header
	bl	_ok
	ldr	x8, [x23]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	bl	_ok
	mov	x0, x23
	bl	_h2o_loopback_destroy
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_h2o_loopback_create
	mov	x23, x0
	mov	x0, x22
	bl	_H2O_STRLIT
	bl	_h2o_iovec_init
	str	x0, [x23, #24]
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_H2O_STRLIT
	bl	_h2o_iovec_init
	str	x0, [x23, #16]
	mov	x0, x23
	bl	_h2o_loopback_run_loop
	mov	x22, x23
	ldr	w8, [x22, #8]!
	cmp	w8, #301
	cset	w0, eq
	bl	_ok
	ldr	w1, [x25]
Lloh17:
	adrp	x2, l_.str.5@PAGE
Lloh18:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_check_header
	bl	_ok
	ldr	x8, [x23]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	bl	_ok
	mov	x0, x23
	bl	_h2o_loopback_destroy
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_h2o_loopback_create
	mov	x22, x0
Lloh19:
	adrp	x0, l_.str.6@PAGE
Lloh20:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_H2O_STRLIT
	bl	_h2o_iovec_init
	str	x0, [x22, #24]
	mov	x0, x21
	bl	_H2O_STRLIT
	bl	_h2o_iovec_init
	str	x0, [x22, #16]
	mov	x0, x22
	bl	_h2o_loopback_run_loop
	mov	x21, x22
	ldr	w8, [x21, #8]!
	cmp	w8, #301
	cset	w0, eq
	bl	_ok
	ldr	w1, [x25]
	mov	x0, x21
	mov	x2, x20
	bl	_check_header
	bl	_ok
	ldr	x8, [x22]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_ok
	mov	x0, x22
	bl	_h2o_loopback_destroy
	mov	x0, x19
	bl	_h2o_context_dispose
	add	x0, sp, #12
	bl	_h2o_config_dispose
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"default"

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

l_.str.2:                               ; @.str.2
	.asciz	"https://example.com/bar/"

	.comm	_ctx,8,3                        ; @ctx
	.comm	_test_loop,4,2                  ; @test_loop
l_.str.3:                               ; @.str.3
	.asciz	"GET"

	.comm	_H2O_TOKEN_LOCATION,4,2         ; @H2O_TOKEN_LOCATION
l_.str.4:                               ; @.str.4
	.asciz	"/abc"

l_.str.5:                               ; @.str.5
	.asciz	"https://example.com/bar/abc"

l_.str.6:                               ; @.str.6
	.asciz	"HEAD"

.subsections_via_symbols
