	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evhttp_connection_free         ## -- Begin function evhttp_connection_free
	.p2align	4, 0x90
_evhttp_connection_free:                ## @evhttp_connection_free
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpl	$-1, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_evhttp_connected
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	64(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	60(%r14), %esi
	movq	%r14, %rdi
	callq	*%rax
LBB0_4:
	leaq	56(%r14), %r15
	movq	%r15, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %rbx
	movq	_next@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	%rbx, %rdi
	callq	_evhttp_request_free
	movq	%r15, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
LBB0_7:
	movq	48(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	movq	_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_TAILQ_REMOVE
LBB0_9:
	leaq	44(%r14), %rbx
	movq	%rbx, %rdi
	callq	_event_initialized
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_event_del
	movq	%rbx, %rdi
	callq	_event_debug_unassign
LBB0_11:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_bufferevent_free
LBB0_13:
	movq	%r14, %rdi
	callq	_get_deferred_queue
	leaq	40(%r14), %rsi
	movl	%eax, %edi
	callq	_event_deferred_cb_cancel_
	movl	(%r14), %edi
	cmpl	$-1, %edi
	je	LBB0_16
## %bb.14:
	movq	_EVUTIL_SHUT_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_shutdown
	movq	32(%r14), %rdi
	callq	_bufferevent_get_options_
	movq	_BEV_OPT_CLOSE_ON_FREE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_16
## %bb.15:
	movl	(%r14), %edi
	callq	_evutil_closesocket
LBB0_16:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_mm_free
LBB0_18:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	_mm_free
LBB0_20:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_mm_free
LBB0_22:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mm_free                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_next,4,2                       ## @next
	.comm	_EVUTIL_SHUT_WR,4,2             ## @EVUTIL_SHUT_WR
	.comm	_BEV_OPT_CLOSE_ON_FREE,4,2      ## @BEV_OPT_CLOSE_ON_FREE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evhttp_connection_free         ; -- Begin function evhttp_connection_free
	.p2align	2
_evhttp_connection_free:                ; @evhttp_connection_free
	.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
	ldr	w8, [x0]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_evhttp_connected
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x19, #60]
	mov	x0, x19
	blr	x8
LBB0_4:
	add	x20, x19, #56
	mov	x0, x20
	bl	_TAILQ_FIRST
Lloh0:
	adrp	x22, _next@GOTPAGE
Lloh1:
	ldr	x22, [x22, _next@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.5:
	mov	x21, x0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_TAILQ_REMOVE
	mov	x0, x21
	bl	_evhttp_request_free
	mov	x0, x20
	bl	_TAILQ_FIRST
	mov	x21, x0
	cbnz	x0, LBB0_6
LBB0_7:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w2, [x22]
	mov	x1, x19
	bl	_TAILQ_REMOVE
LBB0_9:
	add	x20, x19, #44
	mov	x0, x20
	bl	_event_initialized
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_event_del
	mov	x0, x20
	bl	_event_debug_unassign
LBB0_11:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_bufferevent_free
LBB0_13:
	mov	x0, x19
	bl	_get_deferred_queue
	add	x1, x19, #40
	bl	_event_deferred_cb_cancel_
	ldr	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.14:
Lloh2:
	adrp	x8, _EVUTIL_SHUT_WR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EVUTIL_SHUT_WR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_shutdown
	ldr	x0, [x19, #32]
	bl	_bufferevent_get_options_
Lloh5:
	adrp	x8, _BEV_OPT_CLOSE_ON_FREE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BEV_OPT_CLOSE_ON_FREE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_22
LBB0_15:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_17
LBB0_16:
	bl	_mm_free
LBB0_17:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_19
; %bb.18:
	bl	_mm_free
LBB0_19:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_21
; %bb.20:
	bl	_mm_free
LBB0_21:
	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	_mm_free
LBB0_22:
	ldr	w0, [x19]
	bl	_evutil_closesocket
	ldr	x0, [x19, #24]
	cbnz	x0, LBB0_16
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_next,4,2                       ; @next
	.comm	_EVUTIL_SHUT_WR,4,2             ; @EVUTIL_SHUT_WR
	.comm	_BEV_OPT_CLOSE_ON_FREE,4,2      ; @BEV_OPT_CLOSE_ON_FREE
.subsections_via_symbols
