	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_message_complete_cb            ## -- Begin function message_complete_cb
	.p2align	4, 0x90
_message_complete_cb:                   ## @message_complete_cb
	.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
	movq	%rdi, %r13
	movq	_parser@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	%r14, %r13
	sete	%dil
	callq	_assert
	movq	_messages@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_num_messages@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	shlq	$5, %rcx
	movq	(%rax,%rcx), %rbx
	movq	%r14, %rdi
	callq	_http_should_keep_alive
	cmpq	%rax, %rbx
	jne	LBB0_1
## %bb.3:
	movq	(%r12), %rdx
	movq	(%r15), %rcx
	movq	%rcx, %rax
	shlq	$5, %rax
	cmpq	$0, 24(%rdx,%rax)
	je	LBB0_7
## %bb.4:
	movq	%r13, %rdi
	callq	_http_body_is_final
	movq	(%r12), %rdx
	movq	(%r15), %rcx
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rcx, %rax
	shlq	$5, %rax
	cmpl	$0, 16(%rdx,%rax)
	je	LBB0_6
LBB0_7:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rcx, %rsi
	shlq	$5, %rsi
	movl	%eax, 12(%rdx,%rsi)
	movq	_currently_parsing_eof@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdx,%rsi)
	incq	%rcx
	movq	%rcx, (%r15)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	callq	_fprintf
	xorl	%edi, %edi
	callq	_assert
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_parser,4,2                     ## @parser
	.comm	_messages,8,3                   ## @messages
	.comm	_num_messages,8,3               ## @num_messages
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n\n *** Error http_should_keep_alive() should have same value in both on_message_complete and on_headers_complete but it doesn't! ***\n\n"

L_.str.1:                               ## @.str.1
	.asciz	"\n\n *** Error http_body_is_final() should return 1 on last on_body callback call but it doesn't! ***\n\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_currently_parsing_eof,4,2      ## @currently_parsing_eof
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_message_complete_cb            ; -- Begin function message_complete_cb
	.p2align	2
_message_complete_cb:                   ; @message_complete_cb
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _parser@GOTPAGE
Lloh1:
	ldr	x20, [x20, _parser@GOTPAGEOFF]
	cmp	x0, x20
	cset	w0, eq
	bl	_assert
Lloh2:
	adrp	x22, _messages@GOTPAGE
Lloh3:
	ldr	x22, [x22, _messages@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh4:
	adrp	x21, _num_messages@GOTPAGE
Lloh5:
	ldr	x21, [x21, _num_messages@GOTPAGEOFF]
	ldr	x9, [x21]
	lsl	x9, x9, #5
	ldr	x23, [x8, x9]
	mov	x0, x20
	bl	_http_should_keep_alive
	cmp	x23, x0
	b.ne	LBB0_5
; %bb.1:
	ldr	x9, [x22]
	ldr	x8, [x21]
	add	x10, x9, x8, lsl #5
	ldr	x10, [x10, #24]
	cbz	x10, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_http_body_is_final
	ldr	x9, [x22]
	ldr	x8, [x21]
	cbz	x0, LBB0_4
; %bb.3:
	add	x10, x9, x8, lsl #5
	ldr	w10, [x10, #16]
	cbz	w10, LBB0_6
LBB0_4:
Lloh6:
	adrp	x10, _TRUE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TRUE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	add	x9, x9, x8, lsl #5
Lloh9:
	adrp	x11, _currently_parsing_eof@GOTPAGE
Lloh10:
	ldr	x11, [x11, _currently_parsing_eof@GOTPAGEOFF]
	str	w10, [x9, #12]
Lloh11:
	ldr	w10, [x11]
	str	w10, [x9, #8]
	add	x8, x8, #1
	str	x8, [x21]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_fprintf
	mov	w0, #0
	bl	_assert
	bl	_abort
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_parser,4,2                     ; @parser
	.comm	_messages,8,3                   ; @messages
	.comm	_num_messages,8,3               ; @num_messages
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n\n *** Error http_should_keep_alive() should have same value in both on_message_complete and on_headers_complete but it doesn't! ***\n\n"

l_.str.1:                               ; @.str.1
	.asciz	"\n\n *** Error http_body_is_final() should return 1 on last on_body callback call but it doesn't! ***\n\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_currently_parsing_eof,4,2      ; @currently_parsing_eof
.subsections_via_symbols
