	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evhttp_send_reply_end          ## -- Begin function evhttp_send_reply_end
	.p2align	4, 0x90
_evhttp_send_reply_end:                 ## @evhttp_send_reply_end
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movl	16(%r14), %edi
	callq	_bufferevent_get_output
	movl	$1, (%rbx)
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	$5, %edx
	callq	_evbuffer_add
	movq	16(%rbx), %rdi
	movq	_evhttp_send_done@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	callq	_evhttp_write_buffer
	movq	$0, 8(%rbx)
	jmp	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_evhttp_request_free            ## TAILCALL
LBB0_3:
	movq	%rax, %rdi
	callq	_evbuffer_get_length
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	_evhttp_send_done@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	$0, (%r14)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_evhttp_send_done               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0\r\n\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evhttp_send_reply_end          ; -- Begin function evhttp_send_reply_end
	.p2align	2
_evhttp_send_reply_end:                 ; @evhttp_send_reply_end
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #16]
	cbz	x20, LBB0_3
; %bb.1:
	ldr	w0, [x20, #16]
	bl	_bufferevent_get_output
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #5
	bl	_evbuffer_add
	ldr	x0, [x19, #16]
Lloh2:
	adrp	x1, _evhttp_send_done@GOTPAGE
Lloh3:
	ldr	x1, [x1, _evhttp_send_done@GOTPAGEOFF]
	mov	x2, #0
	bl	_evhttp_write_buffer
	str	xzr, [x19, #8]
	b	LBB0_6
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_evhttp_request_free
LBB0_4:
	bl	_evbuffer_get_length
	cbz	x0, LBB0_7
; %bb.5:
Lloh4:
	adrp	x8, _evhttp_send_done@GOTPAGE
Lloh5:
	ldr	x8, [x8, _evhttp_send_done@GOTPAGEOFF]
	stp	xzr, x8, [x20]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x20
	mov	x1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_evhttp_send_done
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0\r\n\r\n"

.subsections_via_symbols
