	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_connect
_on_connect:                            ## @on_connect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	$0, 24(%rdx)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movq	%rdi, 8(%rbx)
	movq	%rbx, (%rdi)
	movl	16(%rbx), %edi
	movq	(%rbx), %r8
	leaq	-24(%rbp), %rsi
	movl	$1, %edx
	movl	$65535, %ecx                    ## imm = 0xFFFF
	callq	_build_request
	movq	8(%rbx), %rdi
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %esi
	movq	_on_send_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_h2o_socket_write
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	_on_rw_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_set_timeout
	movq	_on_read@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_h2o_socket_read_start
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, %rcx
	movl	16(%rbx), %edi
	movq	_MODULE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_h2o_req_log_error
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_errorclose                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MODULE_NAME,4,2                ## @MODULE_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"connection failed:%s"

	.comm	_on_send_complete,4,2           ## @on_send_complete
	.comm	_on_rw_timeout,4,2              ## @on_rw_timeout
	.comm	_on_read,4,2                    ## @on_read
	.no_dead_strip	_on_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_connect
_on_connect:                            ; @on_connect
	.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
	mov	x19, x2
	str	xzr, [x2, #24]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	str	x0, [x19, #8]
	str	x19, [x0]
	ldr	w0, [x19, #16]
	ldr	x4, [x19]
	add	x1, sp, #8
	mov	w2, #1
	mov	w3, #65535
	bl	_build_request
	ldr	x0, [x19, #8]
	ldp	w2, w1, [sp, #8]
Lloh0:
	adrp	x8, _on_send_complete@GOTPAGE
Lloh1:
	ldr	x8, [x8, _on_send_complete@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	bl	_h2o_socket_write
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _on_rw_timeout@GOTPAGE
Lloh4:
	ldr	x8, [x8, _on_rw_timeout@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_set_timeout
Lloh6:
	adrp	x8, _on_read@GOTPAGE
Lloh7:
	ldr	x8, [x8, _on_read@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_h2o_socket_read_start
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	mov	x3, x1
	ldr	w0, [x19, #16]
Lloh9:
	adrp	x8, _MODULE_NAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MODULE_NAME@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	bl	_h2o_req_log_error
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_errorclose
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MODULE_NAME,4,2                ; @MODULE_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"connection failed:%s"

	.comm	_on_send_complete,4,2           ; @on_send_complete
	.comm	_on_rw_timeout,4,2              ; @on_rw_timeout
	.comm	_on_read,4,2                    ; @on_read
	.no_dead_strip	_on_connect
.subsections_via_symbols
