	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evhttp_get_body
_evhttp_get_body:                       ## @evhttp_get_body
	.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, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_EVHTTP_REQUEST@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.1:
	movl	28(%rbx), %edi
	callq	_evhttp_method_may_have_body
	testl	%eax, %eax
	je	LBB0_20
LBB0_2:
	movq	_EVCON_READING_BODY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	24(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_evhttp_find_header
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_evutil_ascii_strcasecmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	movq	%rbx, %rdi
	callq	_evhttp_get_body_length
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.7:
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_5
## %bb.8:
	cmpl	$0, 12(%rbx)
	jg	LBB0_9
LBB0_20:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_evhttp_connection_done         ## TAILCALL
LBB0_21:
	movq	_EVREQ_HTTP_INVALID_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_evhttp_connection_fail_        ## TAILCALL
LBB0_4:
	movabsq	$-4294967295, %rax              ## imm = 0xFFFFFFFF00000001
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rax
	movq	(%r15), %rcx
LBB0_5:
	cmpq	%rcx, %rax
	jne	LBB0_19
LBB0_9:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_REQ_VERSION_ATLEAST
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	movl	24(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_evhttp_find_header
	testq	%rax, %rax
	je	LBB0_19
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdi
	callq	_evutil_ascii_strcasecmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.22:
	movq	_HTTP_EXPECTATIONFAILED@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_evhttp_send_error              ## TAILCALL
LBB0_12:
	movl	12(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.13:
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_EV_INT64_MAX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jg	LBB0_17
## %bb.14:
	cmpq	%rax, %rcx
	jge	LBB0_17
## %bb.15:
	movq	_HTTP_ENTITYTOOLARGE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_17:
	movl	(%r14), %edi
	callq	_bufferevent_get_input
	movl	%eax, %edi
	callq	_evbuffer_get_length
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_evhttp_send_continue
LBB0_19:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_evhttp_read_body               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EVHTTP_REQUEST,8,3             ## @EVHTTP_REQUEST
	.comm	_EVCON_READING_BODY,4,2         ## @EVCON_READING_BODY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Transfer-Encoding"

L_.str.1:                               ## @.str.1
	.asciz	"chunked"

	.comm	_EVREQ_HTTP_INVALID_HEADER,4,2  ## @EVREQ_HTTP_INVALID_HEADER
L_.str.2:                               ## @.str.2
	.asciz	"Expect"

L_.str.3:                               ## @.str.3
	.asciz	"100-continue"

	.comm	_EV_INT64_MAX,8,3               ## @EV_INT64_MAX
	.comm	_HTTP_ENTITYTOOLARGE,4,2        ## @HTTP_ENTITYTOOLARGE
	.comm	_HTTP_EXPECTATIONFAILED,4,2     ## @HTTP_EXPECTATIONFAILED
	.no_dead_strip	_evhttp_get_body
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function evhttp_get_body
lCPI0_0:
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_evhttp_get_body:                       ; @evhttp_get_body
	.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, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x21, _EVHTTP_REQUEST@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EVHTTP_REQUEST@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #28]
	bl	_evhttp_method_may_have_body
	cbz	w0, LBB0_7
LBB0_2:
Lloh2:
	adrp	x8, _EVCON_READING_BODY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EVCON_READING_BODY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	ldr	w0, [x19, #24]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_evhttp_find_header
	cbz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_evutil_ascii_strcasecmp
	cbz	x0, LBB0_9
LBB0_4:
	mov	x0, x19
	bl	_evhttp_get_body_length
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	ldr	w8, [x19, #12]
	cmp	w8, #0
	b.gt	LBB0_11
LBB0_7:
	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	_evhttp_connection_done
LBB0_8:
Lloh9:
	adrp	x8, _EVREQ_HTTP_INVALID_HEADER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVREQ_HTTP_INVALID_HEADER@GOTPAGEOFF]
Lloh11:
	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	_evhttp_connection_fail_
LBB0_9:
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #8]
	ldr	x8, [x19]
	ldr	x9, [x21]
LBB0_10:
	cmp	x8, x9
	b.ne	LBB0_22
LBB0_11:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_REQ_VERSION_ATLEAST
	cbz	x0, LBB0_22
; %bb.12:
	ldr	w0, [x19, #24]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_evhttp_find_header
	cbz	x0, LBB0_22
; %bb.13:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_evutil_ascii_strcasecmp
	cbz	x0, LBB0_16
; %bb.14:
Lloh18:
	adrp	x8, _HTTP_EXPECTATIONFAILED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HTTP_EXPECTATIONFAILED@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	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	_evhttp_send_error
LBB0_16:
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.17:
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
Lloh20:
	adrp	x10, _EV_INT64_MAX@GOTPAGE
Lloh21:
	ldr	x10, [x10, _EV_INT64_MAX@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	cmp	x9, x10
	b.gt	LBB0_20
; %bb.18:
	cmp	x9, x8
	b.ge	LBB0_20
; %bb.19:
Lloh23:
	adrp	x8, _HTTP_ENTITYTOOLARGE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HTTP_ENTITYTOOLARGE@GOTPAGEOFF]
	b	LBB0_15
LBB0_20:
	ldr	w0, [x20]
	bl	_bufferevent_get_input
	bl	_evbuffer_get_length
	cbnz	w0, LBB0_22
; %bb.21:
	mov	x0, x20
	mov	x1, x19
	bl	_evhttp_send_continue
LBB0_22:
	mov	x0, x20
	mov	x1, 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	_evhttp_read_body
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EVHTTP_REQUEST,8,3             ; @EVHTTP_REQUEST
	.comm	_EVCON_READING_BODY,4,2         ; @EVCON_READING_BODY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Transfer-Encoding"

l_.str.1:                               ; @.str.1
	.asciz	"chunked"

	.comm	_EVREQ_HTTP_INVALID_HEADER,4,2  ; @EVREQ_HTTP_INVALID_HEADER
l_.str.2:                               ; @.str.2
	.asciz	"Expect"

l_.str.3:                               ; @.str.3
	.asciz	"100-continue"

	.comm	_EV_INT64_MAX,8,3               ; @EV_INT64_MAX
	.comm	_HTTP_ENTITYTOOLARGE,4,2        ; @HTTP_ENTITYTOOLARGE
	.comm	_HTTP_EXPECTATIONFAILED,4,2     ; @HTTP_EXPECTATIONFAILED
	.no_dead_strip	_evhttp_get_body
.subsections_via_symbols
