	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evhttp_send_done
_evhttp_send_done:                      ## @evhttp_send_done
	.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	%rdi, %r14
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	movq	_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	12(%rbx), %esi
	movq	%rbx, %rdi
	callq	*%rax
LBB0_2:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_REQ_VERSION_BEFORE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	callq	_evhttp_is_connection_keepalive
	testl	%eax, %eax
	je	LBB0_8
LBB0_4:
	movl	(%rbx), %edi
	movl	8(%rbx), %esi
	callq	_evhttp_is_connection_close
	movl	(%rbx), %edi
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	movl	4(%rbx), %esi
	callq	_evhttp_is_connection_close
	movq	%rax, %r15
	movq	_EVHTTP_REQ_OWN_CONNECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%rbx), %edi
	callq	_EVUTIL_ASSERT
	movq	%rbx, %rdi
	callq	_evhttp_request_free
	testq	%r15, %r15
	jne	LBB0_10
## %bb.6:
	movq	%r14, %rdi
	callq	_evhttp_associate_new_request_with_connection
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%rbx), %edi
LBB0_9:
	movq	_EVHTTP_REQ_OWN_CONNECTION@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	callq	_EVUTIL_ASSERT
	movq	%rbx, %rdi
	callq	_evhttp_request_free
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_evhttp_connection_free         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_next,4,2                       ## @next
	.comm	_EVHTTP_REQ_OWN_CONNECTION,4,2  ## @EVHTTP_REQ_OWN_CONNECTION
	.no_dead_strip	_evhttp_send_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evhttp_send_done
_evhttp_send_done:                      ; @evhttp_send_done
	.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, x0
	bl	_TAILQ_FIRST
	mov	x20, x0
Lloh0:
	adrp	x8, _next@GOTPAGE
Lloh1:
	ldr	x8, [x8, _next@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_TAILQ_REMOVE
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x20, #12]
	mov	x0, x20
	blr	x8
LBB0_2:
	mov	x0, x20
	mov	w1, #1
	mov	w2, #1
	bl	_REQ_VERSION_BEFORE
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x20, #8]
	bl	_evhttp_is_connection_keepalive
	cbz	w0, LBB0_8
LBB0_4:
	ldr	w0, [x20]
	ldr	w1, [x20, #8]
	bl	_evhttp_is_connection_close
	mov	x8, x0
	ldr	w0, [x20]
	cbnz	x8, LBB0_9
; %bb.5:
	ldr	w1, [x20, #4]
	bl	_evhttp_is_connection_close
	mov	x21, x0
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _EVHTTP_REQ_OWN_CONNECTION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EVHTTP_REQ_OWN_CONNECTION@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_EVUTIL_ASSERT
	mov	x0, x20
	bl	_evhttp_request_free
	cbnz	x21, LBB0_10
; %bb.6:
	mov	x0, x19
	bl	_evhttp_associate_new_request_with_connection
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.7:
	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
	ret
LBB0_8:
	ldr	w0, [x20]
LBB0_9:
Lloh6:
	adrp	x8, _EVHTTP_REQ_OWN_CONNECTION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVHTTP_REQ_OWN_CONNECTION@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w0, w8, w0
	bl	_EVUTIL_ASSERT
	mov	x0, x20
	bl	_evhttp_request_free
LBB0_10:
	mov	x0, 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_connection_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_next,4,2                       ; @next
	.comm	_EVHTTP_REQ_OWN_CONNECTION,4,2  ; @EVHTTP_REQ_OWN_CONNECTION
	.no_dead_strip	_evhttp_send_done
.subsections_via_symbols
