	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_send_redirect_internal     ## -- Begin function h2o_send_redirect_internal
	.p2align	4, 0x90
_h2o_send_redirect_internal:            ## @h2o_send_redirect_internal
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rdx, %rax
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-72(%rbp), %rdx
	movq	%rax, %rdi
	movq	%rcx, %rsi
	callq	_h2o_url_parse_relative
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_h2o_send_error_deferred_502
	jmp	LBB0_16
LBB0_2:
	cmpq	$0, -48(%rbp)
	jne	LBB0_4
## %bb.3:
	movq	40(%rbx), %rax
	movq	%rax, -48(%rbp)
LBB0_4:
	leaq	-64(%rbp), %r12
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	movl	-64(%rbp), %esi
	movq	24(%rbx), %rdx
	movl	16(%rbx), %ecx
	callq	_h2o_lcstris
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	leaq	16(%rbx), %rax
	jmp	LBB0_8
LBB0_7:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
LBB0_8:
	movups	(%rax), %xmm0
LBB0_11:
	movups	%xmm0, (%r12)
	jmp	LBB0_12
LBB0_9:
	leaq	8(%rbx), %rdi
	movq	-56(%rbp), %rsi
	movl	-64(%rbp), %edx
	callq	_h2o_strdup
	movl	%eax, -64(%rbp)
	movq	%rdx, -56(%rbp)
	xorl	%r15d, %r15d
LBB0_12:
	movl	12(%rbx), %eax
	movl	%eax, -36(%rbp)
	leaq	-36(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_h2o_url_resolve_path
	leaq	8(%rbx), %rdi
	movl	-36(%rbp), %esi
	movl	-72(%rbp), %edx
	callq	_h2o_concat
	movl	%eax, -72(%rbp)
	movq	-48(%rbp), %rdx
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.13:
	movq	(%rbx), %r10
	jmp	LBB0_15
LBB0_14:
	xorl	%r10d, %r10d
LBB0_15:
	movl	-64(%rbp), %ecx
	movq	-56(%rbp), %r8
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %r9d
	pushq	$1
	pushq	%r10
	callq	_h2o_reprocess_request_deferred
	addq	$16, %rsp
LBB0_16:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movups	16(%rbx), %xmm0
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Gateway Error"

L_.str.1:                               ## @.str.1
	.asciz	"internal error"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_send_redirect_internal     ; -- Begin function h2o_send_redirect_internal
	.p2align	2
_h2o_send_redirect_internal:            ; @h2o_send_redirect_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x4
	mov	x8, x2
	mov	x20, x1
	mov	x19, x0
	add	x2, sp, #16
	mov	x0, x8
	mov	x1, x3
	bl	_h2o_url_parse_relative
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	bl	_h2o_send_error_deferred_502
	b	LBB0_16
LBB0_2:
	ldr	x8, [sp, #40]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x19, #40]
	str	x8, [sp, #40]
LBB0_4:
	add	x8, sp, #16
	add	x22, x8, #8
	ldr	x0, [sp, #32]
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w1, [sp, #24]
	mov	x23, x19
	ldr	w3, [x23, #16]!
	ldr	x2, [x23, #8]
	bl	_h2o_lcstris
	cbz	x0, LBB0_9
; %bb.6:
	ldr	q0, [x23]
	b	LBB0_11
LBB0_7:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_10
; %bb.8:
	ldr	q0, [x8]
	b	LBB0_11
LBB0_9:
	add	x0, x19, #8
	ldr	x1, [sp, #32]
	ldr	w2, [sp, #24]
	bl	_h2o_strdup
	mov	w21, #0
	stp	x0, x1, [sp, #24]
	b	LBB0_12
LBB0_10:
	ldr	q0, [x19, #16]
LBB0_11:
	str	q0, [x22]
LBB0_12:
	ldr	w8, [x19, #12]
	str	w8, [sp, #12]
	add	x0, sp, #12
	add	x1, sp, #16
	bl	_h2o_url_resolve_path
	add	x0, x19, #8
	ldp	w1, w2, [sp, #12]
	bl	_h2o_concat
	mov	x5, x0
	str	w0, [sp, #16]
	ldr	x2, [sp, #40]
	cbz	w21, LBB0_14
; %bb.13:
	ldr	x6, [x19]
	b	LBB0_15
LBB0_14:
	mov	x6, #0
LBB0_15:
	ldp	x3, x4, [sp, #24]
	mov	x0, x19
	mov	x1, x20
	mov	w7, #1
	bl	_h2o_reprocess_request_deferred
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Gateway Error"

l_.str.1:                               ; @.str.1
	.asciz	"internal error"

.subsections_via_symbols
