	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evhttp_handle_chunked_read
_evhttp_handle_chunked_read:            ## @evhttp_handle_chunked_read
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_27
## %bb.2:
	movq	%rdi, %r13
	movq	%r14, %rdi
	callq	_evbuffer_get_length
	testq	%rax, %rax
	je	LBB0_23
## %bb.3:
	movq	_EV_SSIZE_MAX@GOTPCREL(%rip), %r15
	movq	_EVBUFFER_EOL_CRLF@GOTPCREL(%rip), %r12
	jmp	LBB0_6
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_mm_free
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_evbuffer_get_length
	testq	%rax, %rax
	je	LBB0_23
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	ja	LBB0_27
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rdx
	testq	%rdx, %rdx
	js	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rcx, %rdx
	ja	LBB0_27
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%rdx, %rax
	jb	LBB0_23
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r13), %rsi
	movq	%r14, %rdi
	callq	_evbuffer_remove_buffer
	movq	$-1, (%r13)
	movq	40(%r13), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_EVHTTP_REQ_DEFER_FREE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 16(%r13)
	movl	32(%r13), %esi
	movq	%r13, %rdi
	callq	*%rax
	movq	24(%r13), %rbx
	movq	%rbx, %rdi
	callq	_evbuffer_get_length
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_evbuffer_drain
	movq	_EVHTTP_REQ_DEFER_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	16(%r13), %eax
	movl	%eax, 16(%r13)
	movq	_EVHTTP_REQ_NEEDS_FREE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_evbuffer_readln
	testq	%rax, %rax
	je	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	cmpb	$0, (%rax)
	je	LBB0_4
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %r15
	movq	%rbx, %rdi
	leaq	-48(%rbp), %rsi
	movl	$16, %edx
	callq	_evutil_strtoll
	cmpb	$0, (%rbx)
	je	LBB0_26
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r12
	movq	-48(%rbp), %rax
	testb	$-33, (%rax)
	jne	LBB0_26
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_mm_free
	testq	%r12, %r12
	js	LBB0_27
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_EV_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%r13), %rax
	subq	%rax, %rcx
	cmpq	%rcx, %r12
	jg	LBB0_27
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	addq	%r12, %rax
	movq	48(%r13), %rcx
	cmpq	(%rcx), %rax
	ja	LBB0_29
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, 8(%r13)
	movq	%r12, (%r13)
	testq	%r12, %r12
	movq	%r15, %r12
	movq	_EV_SSIZE_MAX@GOTPCREL(%rip), %r15
	jne	LBB0_5
## %bb.21:
	movq	_ALL_DATA_READ@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_23:
	movq	_MORE_DATA_EXPECTED@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_25:
	movq	_REQUEST_CANCELED@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_26:
	movq	%rbx, %rdi
	callq	_mm_free
LBB0_27:
	movq	_DATA_CORRUPTED@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	leaq	L_.str(%rip), %rdi
	callq	_event_debug
	movq	_DATA_TOO_LONG@GOTPCREL(%rip), %rax
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA_CORRUPTED,4,2             ## @DATA_CORRUPTED
	.comm	_EV_SSIZE_MAX,8,3               ## @EV_SSIZE_MAX
	.comm	_EVBUFFER_EOL_CRLF,4,2          ## @EVBUFFER_EOL_CRLF
	.comm	_EV_SIZE_MAX,8,3                ## @EV_SIZE_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Request body is too long"

	.comm	_DATA_TOO_LONG,4,2              ## @DATA_TOO_LONG
	.comm	_ALL_DATA_READ,4,2              ## @ALL_DATA_READ
	.comm	_MORE_DATA_EXPECTED,4,2         ## @MORE_DATA_EXPECTED
	.comm	_EVHTTP_REQ_DEFER_FREE,4,2      ## @EVHTTP_REQ_DEFER_FREE
	.comm	_EVHTTP_REQ_NEEDS_FREE,4,2      ## @EVHTTP_REQ_NEEDS_FREE
	.comm	_REQUEST_CANCELED,4,2           ## @REQUEST_CANCELED
	.no_dead_strip	_evhttp_handle_chunked_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evhttp_handle_chunked_read
_evhttp_handle_chunked_read:            ; @evhttp_handle_chunked_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_4
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_evbuffer_get_length
	cbz	x0, LBB0_23
; %bb.3:
Lloh0:
	adrp	x24, _EV_SSIZE_MAX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EV_SSIZE_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x25, _EVBUFFER_EOL_CRLF@GOTPAGE
Lloh3:
	ldr	x25, [x25, _EVBUFFER_EOL_CRLF@GOTPAGEOFF]
Lloh4:
	adrp	x23, _DATA_CORRUPTED@GOTPAGE
Lloh5:
	ldr	x23, [x23, _DATA_CORRUPTED@GOTPAGEOFF]
	mov	x28, #-1
Lloh6:
	adrp	x26, _EVHTTP_REQ_DEFER_FREE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _EVHTTP_REQ_DEFER_FREE@GOTPAGEOFF]
Lloh8:
	adrp	x27, _EVHTTP_REQ_NEEDS_FREE@GOTPAGE
Lloh9:
	ldr	x27, [x27, _EVHTTP_REQ_NEEDS_FREE@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh10:
	adrp	x8, _DATA_CORRUPTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DATA_CORRUPTED@GOTPAGEOFF]
	b	LBB0_24
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	_mm_free
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_evbuffer_get_length
	cbz	x0, LBB0_23
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cmp	x0, x8
	b.hi	LBB0_28
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x2, [x20]
	tbnz	x2, #63, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x2, x8
	b.hi	LBB0_28
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	cbz	x2, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x0, x2
	b.lo	LBB0_23
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [x20, #24]
	mov	x0, x19
	bl	_evbuffer_remove_buffer
	str	x28, [x20]
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x26]
	ldr	w10, [x20, #16]
	orr	w9, w10, w9
	str	w9, [x20, #16]
	ldr	w1, [x20, #32]
	mov	x0, x20
	blr	x8
	ldr	x21, [x20, #24]
	mov	x0, x21
	bl	_evbuffer_get_length
	mov	x1, x0
	mov	x0, x21
	bl	_evbuffer_drain
	ldr	w8, [x26]
	ldr	w9, [x20, #16]
	bic	w8, w9, w8
	str	w8, [x20, #16]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_6
	b	LBB0_26
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, #0
	bl	_evbuffer_readln
	cbz	x0, LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #16
	bl	_evutil_strtoll
	ldrb	w8, [x22]
	cbz	w8, LBB0_27
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	orr	w8, w8, #0x20
	cmp	w8, #32
	b.ne	LBB0_27
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x21, x0
	mov	x0, x22
	bl	_mm_free
	tbnz	x21, #63, LBB0_28
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh12:
	adrp	x8, _EV_SIZE_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EV_SIZE_MAX@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x8]
	ldr	x8, [x20, #8]
	sub	x9, x9, x8
	cmp	x21, x9
	b.gt	LBB0_28
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x20, #48]
	ldr	x9, [x9]
	add	x8, x8, x21
	cmp	x8, x9
	b.hi	LBB0_29
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	stp	x21, x8, [x20]
	cbnz	x21, LBB0_6
; %bb.22:
Lloh15:
	adrp	x23, _ALL_DATA_READ@GOTPAGE
Lloh16:
	ldr	x23, [x23, _ALL_DATA_READ@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x23]
	b	LBB0_25
LBB0_23:
Lloh18:
	adrp	x8, _MORE_DATA_EXPECTED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MORE_DATA_EXPECTED@GOTPAGEOFF]
LBB0_24:
	ldr	w0, [x8]
LBB0_25:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_26:
Lloh20:
	adrp	x8, _REQUEST_CANCELED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _REQUEST_CANCELED@GOTPAGEOFF]
	b	LBB0_24
LBB0_27:
	mov	x0, x22
	bl	_mm_free
Lloh22:
	adrp	x23, _DATA_CORRUPTED@GOTPAGE
Lloh23:
	ldr	x23, [x23, _DATA_CORRUPTED@GOTPAGEOFF]
LBB0_28:
	ldr	w0, [x23]
	b	LBB0_25
LBB0_29:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_event_debug
Lloh26:
	adrp	x23, _DATA_TOO_LONG@GOTPAGE
Lloh27:
	ldr	x23, [x23, _DATA_TOO_LONG@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x23]
	b	LBB0_25
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA_CORRUPTED,4,2             ; @DATA_CORRUPTED
	.comm	_EV_SSIZE_MAX,8,3               ; @EV_SSIZE_MAX
	.comm	_EVBUFFER_EOL_CRLF,4,2          ; @EVBUFFER_EOL_CRLF
	.comm	_EV_SIZE_MAX,8,3                ; @EV_SIZE_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Request body is too long"

	.comm	_DATA_TOO_LONG,4,2              ; @DATA_TOO_LONG
	.comm	_ALL_DATA_READ,4,2              ; @ALL_DATA_READ
	.comm	_MORE_DATA_EXPECTED,4,2         ; @MORE_DATA_EXPECTED
	.comm	_EVHTTP_REQ_DEFER_FREE,4,2      ; @EVHTTP_REQ_DEFER_FREE
	.comm	_EVHTTP_REQ_NEEDS_FREE,4,2      ; @EVHTTP_REQ_NEEDS_FREE
	.comm	_REQUEST_CANCELED,4,2           ; @REQUEST_CANCELED
	.no_dead_strip	_evhttp_handle_chunked_read
.subsections_via_symbols
