	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_entity_reader
_create_entity_reader:                  ## @create_entity_reader
	.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	%rdi, %r14
	movl	4(%rsi), %r15d
	cmpl	$17, (%rsi)
	movl	8(%rsi), %ebx
	jne	LBB0_5
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_H2O_STRLIT
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_h2o_lcstris
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_create_chunked_entity_reader   ## TAILCALL
LBB0_5:
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_h2o_strtosize
	movq	_SIZE_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_3
LBB0_7:
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rcx), %rax
	jbe	LBB0_10
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	callq	_entity_read_send_error_413
	jmp	LBB0_9
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
LBB0_3:
	movq	%r14, %rdi
	callq	_entity_read_send_error_400
LBB0_9:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rax, (%r14)
	movq	%r14, %rdi
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_create_content_length_entity_reader ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chunked"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid Request"

L_.str.2:                               ## @.str.2
	.asciz	"unknown transfer-encoding"

	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
L_.str.3:                               ## @.str.3
	.asciz	"broken content-length header"

L_.str.4:                               ## @.str.4
	.asciz	"Request Entity Too Large"

L_.str.5:                               ## @.str.5
	.asciz	"request entity is too large"

	.no_dead_strip	_create_entity_reader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_entity_reader
_create_entity_reader:                  ; @create_entity_reader
	.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	x19, x0
	ldp	w21, w20, [x1, #4]
	ldr	w8, [x1]
	cmp	w8, #17
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_H2O_STRLIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_h2o_lcstris
	cbz	w0, LBB0_7
; %bb.2:
	mov	x0, x19
	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	_create_chunked_entity_reader
LBB0_3:
	mov	x0, x20
	mov	x1, x21
	bl	_h2o_strtosize
Lloh2:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh7:
	adrp	x2, l_.str.3@PAGE
Lloh8:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_5:
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	x0, x8
	b.ls	LBB0_10
; %bb.6:
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh11:
	adrp	x2, l_.str.5@PAGE
Lloh12:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_entity_read_send_error_413
	b	LBB0_9
LBB0_7:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_entity_read_send_error_400
LBB0_9:
	mov	w0, #-1
	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
	ret
LBB0_10:
	str	x1, [x19]
	mov	x0, x19
	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	_create_content_length_entity_reader
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chunked"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid Request"

l_.str.2:                               ; @.str.2
	.asciz	"unknown transfer-encoding"

	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
l_.str.3:                               ; @.str.3
	.asciz	"broken content-length header"

l_.str.4:                               ; @.str.4
	.asciz	"Request Entity Too Large"

l_.str.5:                               ; @.str.5
	.asciz	"request entity is too large"

	.no_dead_strip	_create_entity_reader
.subsections_via_symbols
