	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function terminate_chunked_trickle_cb
_terminate_chunked_trickle_cb:          ## @terminate_chunked_trickle_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	8(%rdx), %edi
	callq	_evhttp_request_get_connection
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_evbuffer_new
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movq	%rax, %rdx
	callq	_evbuffer_add_printf
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_evhttp_send_reply_chunk
	movq	%rbx, %rdi
	callq	_evbuffer_free
	movq	$0, -24(%rbp)
	movl	$3000, -32(%rbp)                ## imm = 0xBB8
	movq	%r14, %rdi
	callq	_EVUTIL_ASSERT
	movq	(%r14), %rdi
	callq	_EVUTIL_ASSERT
	movq	(%r14), %rdi
	movq	_EV_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_terminate_chunked_trickle_cb(%rip), %rcx
	leaq	-32(%rbp), %r9
	movl	$-1, %esi
	movq	%r14, %r8
	callq	_event_base_once
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_test_ok@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	8(%r14), %edi
	callq	_evhttp_request_free
	movq	(%r14), %rdi
	xorl	%esi, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_event_base_loopexit            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_test_ok,4,2                    ## @test_ok
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p"

	.comm	_EV_TIMEOUT,4,2                 ## @EV_TIMEOUT
	.no_dead_strip	_terminate_chunked_trickle_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function terminate_chunked_trickle_cb
_terminate_chunked_trickle_cb:          ; @terminate_chunked_trickle_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	ldr	w0, [x2, #8]
	bl	_evhttp_request_get_connection
	cbz	x0, LBB0_2
; %bb.1:
	bl	_evbuffer_new
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x0
	bl	_evbuffer_add_printf
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_evhttp_send_reply_chunk
	mov	x0, x20
	bl	_evbuffer_free
	str	xzr, [sp, #8]
	mov	w8, #3000
	str	w8, [sp]
	mov	x0, x19
	bl	_EVUTIL_ASSERT
	ldr	x0, [x19]
	bl	_EVUTIL_ASSERT
	ldr	x0, [x19]
Lloh2:
	adrp	x8, _EV_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EV_TIMEOUT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x3, _terminate_chunked_trickle_cb@PAGE
Lloh6:
	add	x3, x3, _terminate_chunked_trickle_cb@PAGEOFF
	mov	x5, sp
	mov	w1, #-1
	mov	x4, x19
	bl	_event_base_once
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
Lloh7:
	adrp	x8, _test_ok@GOTPAGE
Lloh8:
	ldr	x8, [x8, _test_ok@GOTPAGEOFF]
	mov	w9, #1
Lloh9:
	str	w9, [x8]
	ldr	w0, [x19, #8]
	bl	_evhttp_request_free
	ldr	x0, [x19]
	mov	x1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_event_base_loopexit
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_test_ok,4,2                    ; @test_ok
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p"

	.comm	_EV_TIMEOUT,4,2                 ; @EV_TIMEOUT
	.no_dead_strip	_terminate_chunked_trickle_cb
.subsections_via_symbols
