	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o__proxy_process_request     ## -- Begin function h2o__proxy_process_request
	.p2align	4, 0x90
_h2o__proxy_process_request:            ## @h2o__proxy_process_request
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	callq	_get_client_ctx
	movq	%rax, %r13
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movq	8(%r14), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	xorl	%r12d, %r12d
	cmpl	$0, (%r14)
	leaq	-44(%rbp), %rax
	cmovneq	%rax, %r12
	cmpq	%rax, %r12
	jne	LBB0_6
	jmp	LBB0_5
LBB0_4:
	movq	%rax, %r15
LBB0_5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %r15
	movl	4(%rbx), %r13d
	movl	8(%rbx), %r14d
	leaq	L_.str(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%eax, %edi
	callq	_h2o_iovec_init
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movq	%r15, %r13
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_h2o_url_init
LBB0_6:
	movq	%rbx, %rdi
	callq	_proxy_send_prepare
	movq	_on_connect@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movq	%r13, %rcx
	movq	%r15, %r8
	movq	%r12, %r9
	callq	_h2o_httpclient_connect
	addq	$24, %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	"/"

	.comm	_on_connect,4,2                 ## @on_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o__proxy_process_request     ; -- Begin function h2o__proxy_process_request
	.p2align	2
_h2o__proxy_process_request:            ; @h2o__proxy_process_request
	.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
	mov	x19, x0
	ldr	x22, [x0, #24]
	bl	_get_client_ctx
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x22, LBB0_3
; %bb.1:
	ldr	x21, [x22, #8]
	cbz	x21, LBB0_3
; %bb.2:
	ldr	w8, [x22]
	cmp	w8, #0
	add	x8, sp, #12
	csel	x22, xzr, x8, eq
	cmp	x22, x8
	b.ne	LBB0_5
	b	LBB0_4
LBB0_3:
	mov	x21, x8
LBB0_4:
	ldp	w24, w23, [x19, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_H2O_STRLIT
	bl	_h2o_iovec_init
	mov	x3, x0
	add	x22, sp, #12
	add	x0, sp, #12
	mov	x1, x23
	mov	x2, x24
	bl	_h2o_url_init
LBB0_5:
	mov	x0, x19
	bl	_proxy_send_prepare
Lloh2:
	adrp	x8, _on_connect@GOTPAGE
Lloh3:
	ldr	x8, [x8, _on_connect@GOTPAGEOFF]
Lloh4:
	ldr	w6, [x8]
	mov	x1, x19
	mov	x2, x0
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	bl	_h2o_httpclient_connect
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

	.comm	_on_connect,4,2                 ; @on_connect
.subsections_via_symbols
