	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_rewrite_location
_test_rewrite_location:                 ## @test_rewrite_location
	.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	L_.str(%rip), %rdi
	callq	_H2O_STRLIT
	leaq	-48(%rbp), %r13
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_h2o_url_parse
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_h2o_mem_init_pool
	leaq	L_.str.1(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, %edi
	callq	_h2o_iovec_init
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %r12
	movq	%r12, %rdi
	callq	_H2O_STRLIT
	movl	%eax, %edi
	callq	_h2o_iovec_init
	movq	_H2O_URL_SCHEME_HTTPS@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movq	%rcx, %r13
	movl	%r15d, %r8d
	movl	%eax, %r9d
	callq	_rewrite_location
	movq	%rax, %r14
	movq	%rdx, %rbx
	leaq	L_.str.4(%rip), %rdi
	callq	_H2O_STRLIT
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_h2o_memis
	movl	%eax, %edi
	callq	_ok
	leaq	L_.str.5(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, %edi
	callq	_h2o_iovec_init
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_H2O_STRLIT
	movl	%eax, %edi
	callq	_h2o_iovec_init
	leaq	-44(%rbp), %r15
	movq	%r15, %rdi
	movl	%r14d, %esi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rcx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	callq	_rewrite_location
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rdx, %rdx
	sete	%dil
	callq	_ok
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_ok
	movq	%r15, %rdi
	callq	_h2o_mem_clear_pool
	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	"http://realhost:81/real/"

L_.str.1:                               ## @.str.1
	.asciz	"http://realhost:81/real/abc"

	.comm	_H2O_URL_SCHEME_HTTPS,4,2       ## @H2O_URL_SCHEME_HTTPS
L_.str.2:                               ## @.str.2
	.asciz	"vhost:8443"

L_.str.3:                               ## @.str.3
	.asciz	"/virtual/"

L_.str.4:                               ## @.str.4
	.asciz	"https://vhost:8443/virtual/abc"

L_.str.5:                               ## @.str.5
	.asciz	"http://realhost:81/other/abc"

	.no_dead_strip	_test_rewrite_location
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_rewrite_location
_test_rewrite_location:                 ; @test_rewrite_location
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_H2O_STRLIT
	add	x1, sp, #12
	bl	_h2o_url_parse
	add	x0, sp, #8
	bl	_h2o_mem_init_pool
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_H2O_STRLIT
	mov	x19, x0
Lloh4:
	adrp	x20, l_.str.2@PAGE
Lloh5:
	add	x20, x20, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_H2O_STRLIT
	bl	_h2o_iovec_init
	mov	x21, x0
Lloh6:
	adrp	x22, l_.str.3@PAGE
Lloh7:
	add	x22, x22, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_H2O_STRLIT
	bl	_h2o_iovec_init
	mov	x5, x0
Lloh8:
	adrp	x23, _H2O_URL_SCHEME_HTTPS@GOTPAGE
Lloh9:
	ldr	x23, [x23, _H2O_URL_SCHEME_HTTPS@GOTPAGEOFF]
	add	x0, sp, #8
	add	x2, sp, #12
	mov	x1, x19
	mov	x3, x23
	mov	x4, x21
	bl	_rewrite_location
	mov	x19, x0
	mov	x21, x1
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_H2O_STRLIT
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_h2o_memis
	bl	_ok
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_H2O_STRLIT
	mov	x19, x0
	mov	x0, x20
	bl	_H2O_STRLIT
	bl	_h2o_iovec_init
	mov	x20, x0
	mov	x0, x22
	bl	_H2O_STRLIT
	bl	_h2o_iovec_init
	mov	x5, x0
	add	x0, sp, #8
	add	x2, sp, #12
	mov	x1, x19
	mov	x3, x23
	mov	x4, x20
	bl	_rewrite_location
	mov	x19, x0
	cmp	x1, #0
	cset	w0, eq
	bl	_ok
	cmp	x19, #0
	cset	w0, eq
	bl	_ok
	add	x0, sp, #8
	bl	_h2o_mem_clear_pool
	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 AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.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	"http://realhost:81/real/"

l_.str.1:                               ; @.str.1
	.asciz	"http://realhost:81/real/abc"

	.comm	_H2O_URL_SCHEME_HTTPS,4,2       ; @H2O_URL_SCHEME_HTTPS
l_.str.2:                               ; @.str.2
	.asciz	"vhost:8443"

l_.str.3:                               ; @.str.3
	.asciz	"/virtual/"

l_.str.4:                               ; @.str.4
	.asciz	"https://vhost:8443/virtual/abc"

l_.str.5:                               ; @.str.5
	.asciz	"http://realhost:81/other/abc"

	.no_dead_strip	_test_rewrite_location
.subsections_via_symbols
