	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_write_complete
_on_write_complete:                     ## @on_write_complete
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	(%rbx), %rax
	cmpq	%r14, (%rax)
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	%r14, 8(%rax)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_assert
	testq	%r15, %r15
	je	LBB0_4
## %bb.7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close_connection               ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	callq	_reset_timeout
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	cmpq	%r14, %rbx
	jne	LBB0_6
## %bb.5:
	movq	8(%rax), %rbx
LBB0_6:
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_h2o_buffer_consume
	movq	_on_read@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_h2o_socket_read_start          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_on_read,4,2                    ## @on_read
	.no_dead_strip	_on_write_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_write_complete
_on_write_complete:                     ; @on_write_complete
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x20]
	ldr	x9, [x8]
	cmp	x9, x19
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x8, #8]
	cmp	x8, x19
	cset	w0, eq
	bl	_assert
	cbz	x21, LBB0_4
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_close_connection
LBB0_3:
	mov	w0, #1
	bl	_assert
	cbnz	x21, LBB0_2
LBB0_4:
	mov	x0, x20
	bl	_reset_timeout
	ldr	x8, [x20]
	ldr	x20, [x8]
	cmp	x20, x19
	b.ne	LBB0_6
; %bb.5:
	ldr	x20, [x8, #8]
LBB0_6:
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_h2o_buffer_consume
Lloh0:
	adrp	x8, _on_read@GOTPAGE
Lloh1:
	ldr	x8, [x8, _on_read@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_h2o_socket_read_start
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_on_read,4,2                    ; @on_read
	.no_dead_strip	_on_write_complete
.subsections_via_symbols
