	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function terminate_chunked_cb
_terminate_chunked_cb:                  ## @terminate_chunked_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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_evhttp_request_get_connection
	movq	_terminate_chunked_close_cb@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movq	%r14, %rdx
	callq	_evhttp_connection_set_closecb
	movq	%rbx, 8(%r14)
	movq	_HTTP_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_evhttp_send_reply_start
	movq	$0, -24(%rbp)
	movl	$3000, -32(%rbp)                ## imm = 0xBB8
	movl	(%r14), %edi
	movq	_EV_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_terminate_chunked_trickle_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %r9
	movl	$-1, %esi
	movq	%r14, %r8
	callq	_event_base_once
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_terminate_chunked_close_cb,4,2 ## @terminate_chunked_close_cb
	.comm	_HTTP_OK,4,2                    ## @HTTP_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OK"

	.comm	_EV_TIMEOUT,4,2                 ## @EV_TIMEOUT
	.comm	_terminate_chunked_trickle_cb,4,2 ## @terminate_chunked_trickle_cb
	.no_dead_strip	_terminate_chunked_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_cb
_terminate_chunked_cb:                  ; @terminate_chunked_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, x1
	mov	x20, x0
	bl	_evhttp_request_get_connection
Lloh0:
	adrp	x8, _terminate_chunked_close_cb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _terminate_chunked_close_cb@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_evhttp_connection_set_closecb
	str	x20, [x19, #8]
Lloh3:
	adrp	x8, _HTTP_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HTTP_OK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_evhttp_send_reply_start
	str	xzr, [sp, #8]
	mov	w8, #3000
	str	w8, [sp]
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _EV_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EV_TIMEOUT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _terminate_chunked_trickle_cb@GOTPAGE
Lloh12:
	ldr	x8, [x8, _terminate_chunked_trickle_cb@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_terminate_chunked_close_cb,4,2 ; @terminate_chunked_close_cb
	.comm	_HTTP_OK,4,2                    ; @HTTP_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OK"

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