	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_head
_on_head:                               ## @on_head
	.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
	movl	%r9d, %r15d
	movq	%r8, %rax
	movq	%rcx, %r10
	movq	%rdx, %r9
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	32(%rsi), %edi
	movq	_h2o_hpack_decode_header@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	40(%r14), %r12
	leaq	44(%r14), %r8
	movq	%rbx, %rdx
	movq	%r12, %rcx
	pushq	%rax
	pushq	%r10
	callq	_h2o_hpack_parse_response
	addq	$16, %rsp
	testl	%eax, %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	movl	%eax, %r13d
	movq	_H2O_HTTP2_ERROR_INVALID_HEADER_CHAR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_2
	jmp	LBB0_18
LBB0_4:
	leaq	8(%r14), %rcx
	movl	(%r12), %r12d
	leal	-100(%r12), %eax
	cmpl	$99, %eax
	ja	LBB0_10
## %bb.5:
	cmpl	$101, %r12d
	jne	LBB0_6
LBB0_2:
	movq	_H2O_HTTP2_ERROR_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$1, %edi
	callq	_assert
	movq	_h2o_httpclient_error_http2_protocol_violation@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_call_callback_with_error
LBB0_3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%r14), %esi
	movl	%r15d, %edx
	callq	_stream_send_error
	movq	%r14, %rdi
	callq	_close_stream
LBB0_17:
	xorl	%r13d, %r13d
LBB0_18:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rcx, %r13
	movq	24(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$0, %ebx
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.11:
	movq	_h2o_httpclient_error_is_eos@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_12:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_h2o_iovec_init
	movl	44(%r14), %r10d
	movl	48(%r14), %r9d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$512, %edx                      ## imm = 0x200
	movl	%r12d, %ecx
	movl	%eax, %r8d
	pushq	$0
	pushq	%r10
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	addq	$16, %rsp
	movq	%rax, 16(%r14)
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_close_response
	jmp	LBB0_17
LBB0_6:
	movq	(%rcx), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.7:
	xorl	%r13d, %r13d
	movq	%rcx, %r15
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_h2o_iovec_init
	movl	44(%r14), %r9d
	movl	48(%r14), %r8d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	*%rbx
	testq	%rax, %rax
	je	LBB0_18
## %bb.8:
	movq	_H2O_HTTP2_ERROR_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_3
LBB0_14:
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	_STREAM_STATE_BODY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_17
LBB0_15:
	movq	_H2O_HTTP2_ERROR_CANCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_h2o_hpack_decode_header,4,2    ## @h2o_hpack_decode_header
	.comm	_H2O_HTTP2_ERROR_INVALID_HEADER_CHAR,4,2 ## @H2O_HTTP2_ERROR_INVALID_HEADER_CHAR
	.comm	_H2O_HTTP2_ERROR_PROTOCOL,4,2   ## @H2O_HTTP2_ERROR_PROTOCOL
	.comm	_H2O_HTTP2_ERROR_INTERNAL,4,2   ## @H2O_HTTP2_ERROR_INTERNAL
	.comm	_h2o_httpclient_error_is_eos,8,3 ## @h2o_httpclient_error_is_eos
	.comm	_H2O_HTTP2_ERROR_CANCEL,4,2     ## @H2O_HTTP2_ERROR_CANCEL
	.comm	_STREAM_STATE_BODY,4,2          ## @STREAM_STATE_BODY
	.comm	_h2o_httpclient_error_http2_protocol_violation,4,2 ## @h2o_httpclient_error_http2_protocol_violation
	.no_dead_strip	_on_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_head
_on_head:                               ; @on_head
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x5
	mov	x7, x4
	mov	x6, x3
	mov	x5, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #32]
Lloh0:
	adrp	x8, _h2o_hpack_decode_header@GOTPAGE
Lloh1:
	ldr	x8, [x8, _h2o_hpack_decode_header@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x22, x19, #40
	add	x4, x19, #44
	mov	x2, x20
	mov	x3, x22
	bl	_h2o_hpack_parse_response
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _H2O_HTTP2_ERROR_INVALID_HEADER_CHAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_INVALID_HEADER_CHAR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_4
	b	LBB0_7
LBB0_2:
	add	x23, x19, #8
	ldr	w22, [x22]
	sub	w8, w22, #100
	cmp	w8, #99
	b.hi	LBB0_8
; %bb.3:
	cmp	w22, #101
	b.ne	LBB0_10
LBB0_4:
Lloh6:
	adrp	x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_PROTOCOL@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	mov	w0, #1
	bl	_assert
Lloh9:
	adrp	x8, _h2o_httpclient_error_http2_protocol_violation@GOTPAGE
Lloh10:
	ldr	x8, [x8, _h2o_httpclient_error_http2_protocol_violation@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_call_callback_with_error
LBB0_5:
	ldr	w1, [x19]
	mov	x0, x20
	mov	x2, x21
	bl	_stream_send_error
	mov	x0, x19
	bl	_close_stream
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x25, [x19, #24]
Lloh12:
	adrp	x8, _h2o_httpclient_error_is_eos@GOTPAGE
Lloh13:
	ldr	x8, [x8, _h2o_httpclient_error_is_eos@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	w21, #0
	csel	x24, xzr, x8, eq
	mov	x0, #0
	mov	w1, #0
	bl	_h2o_iovec_init
	mov	x4, x0
	ldp	w6, w5, [x19, #44]
	mov	x0, x23
	mov	x1, x24
	mov	w2, #512
	mov	x3, x22
	mov	w7, #0
	blr	x25
	str	x0, [x19, #16]
	cbz	w21, LBB0_13
; %bb.9:
	mov	x0, x19
	bl	_close_response
	b	LBB0_6
LBB0_10:
	ldr	x21, [x23]
	cbz	x21, LBB0_6
; %bb.11:
	mov	x0, #0
	mov	w1, #0
	bl	_h2o_iovec_init
	mov	x3, x0
	ldp	w5, w4, [x19, #44]
	mov	x0, x23
	mov	w1, #0
	mov	x2, x22
	blr	x21
	cbz	x0, LBB0_7
; %bb.12:
Lloh15:
	adrp	x8, _H2O_HTTP2_ERROR_INTERNAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_INTERNAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
	cbz	x0, LBB0_15
; %bb.14:
	mov	w0, #0
Lloh17:
	adrp	x8, _STREAM_STATE_BODY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _STREAM_STATE_BODY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_7
LBB0_15:
Lloh20:
	adrp	x8, _H2O_HTTP2_ERROR_CANCEL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _H2O_HTTP2_ERROR_CANCEL@GOTPAGEOFF]
LBB0_16:
	ldr	w21, [x8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_h2o_hpack_decode_header,4,2    ; @h2o_hpack_decode_header
	.comm	_H2O_HTTP2_ERROR_INVALID_HEADER_CHAR,4,2 ; @H2O_HTTP2_ERROR_INVALID_HEADER_CHAR
	.comm	_H2O_HTTP2_ERROR_PROTOCOL,4,2   ; @H2O_HTTP2_ERROR_PROTOCOL
	.comm	_H2O_HTTP2_ERROR_INTERNAL,4,2   ; @H2O_HTTP2_ERROR_INTERNAL
	.comm	_h2o_httpclient_error_is_eos,8,3 ; @h2o_httpclient_error_is_eos
	.comm	_H2O_HTTP2_ERROR_CANCEL,4,2     ; @H2O_HTTP2_ERROR_CANCEL
	.comm	_STREAM_STATE_BODY,4,2          ; @STREAM_STATE_BODY
	.comm	_h2o_httpclient_error_http2_protocol_violation,4,2 ; @h2o_httpclient_error_http2_protocol_violation
	.no_dead_strip	_on_head
.subsections_via_symbols
