	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evhttp_connection_done
_evhttp_connection_done:                ## @evhttp_connection_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %rbx
	movq	_EVHTTP_CON_OUTGOING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	callq	_evhttp_is_request_connection_close
	movl	%eax, %r12d
	movq	_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	$0, 16(%rbx)
	movq	_EVCON_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	callq	_evhttp_connection_reset_
	movq	%r15, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	jne	LBB0_5
## %bb.12:
	movq	_EVHTTP_CON_AUTOFREE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	(%r14), %r12d
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	%rbx, %rdi
	callq	_evhttp_request_free_auto
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.10:
	movq	%r15, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_11
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_EVCON_WRITING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	8(%rbx), %rax
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_2:
	movq	%r15, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	movq	%r14, %rdi
	callq	_evhttp_connected
	movq	%r14, %rdi
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	callq	_evhttp_request_dispatch
	jmp	LBB0_7
LBB0_6:
	callq	_evhttp_connection_connect_
	jmp	LBB0_7
LBB0_3:
	movq	%r14, %rdi
	callq	_evhttp_connection_start_detectclose
LBB0_7:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_evhttp_request_free_auto       ## TAILCALL
LBB0_11:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_evhttp_connection_free         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EVHTTP_CON_OUTGOING,4,2        ## @EVHTTP_CON_OUTGOING
	.comm	_next,4,2                       ## @next
	.comm	_EVCON_IDLE,4,2                 ## @EVCON_IDLE
	.comm	_EVHTTP_CON_AUTOFREE,4,2        ## @EVHTTP_CON_AUTOFREE
	.comm	_EVCON_WRITING,4,2              ## @EVCON_WRITING
	.no_dead_strip	_evhttp_connection_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evhttp_connection_done
_evhttp_connection_done:                ; @evhttp_connection_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	x20, x0
	add	x21, x0, #4
	mov	x0, x21
	bl	_TAILQ_FIRST
	mov	x19, x0
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _EVHTTP_CON_OUTGOING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EVHTTP_CON_OUTGOING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_evhttp_is_request_connection_close
	mov	x22, x0
Lloh3:
	adrp	x8, _next@GOTPAGE
Lloh4:
	ldr	x8, [x8, _next@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_TAILQ_REMOVE
	str	xzr, [x19, #16]
Lloh6:
	adrp	x8, _EVCON_IDLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVCON_IDLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	cbz	w22, LBB0_7
; %bb.2:
	mov	x0, x20
	bl	_evhttp_connection_reset_
	mov	x0, x21
	bl	_TAILQ_FIRST
	cbnz	x0, LBB0_8
; %bb.3:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _EVHTTP_CON_AUTOFREE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EVHTTP_CON_AUTOFREE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w22, w9, w8
	ldr	x8, [x19, #8]
	ldr	w1, [x19]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_evhttp_request_free_auto
	cbz	w22, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_13
LBB0_5:
	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_6:
Lloh12:
	adrp	x8, _EVCON_WRITING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EVCON_WRITING@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	ldr	x2, [x19, #8]
	ldr	w1, [x19]
	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
	br	x2
LBB0_7:
	mov	x0, x21
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_11
LBB0_8:
	mov	x0, x20
	bl	_evhttp_connected
	cbz	w0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_evhttp_request_dispatch
	b	LBB0_12
LBB0_10:
	mov	x0, x20
	bl	_evhttp_connection_connect_
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	bl	_evhttp_connection_start_detectclose
LBB0_12:
	ldr	x8, [x19, #8]
	ldr	w1, [x19]
	mov	x0, x19
	blr	x8
	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_request_free_auto
LBB0_13:
	mov	x0, x20
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EVHTTP_CON_OUTGOING,4,2        ; @EVHTTP_CON_OUTGOING
	.comm	_next,4,2                       ; @next
	.comm	_EVCON_IDLE,4,2                 ; @EVCON_IDLE
	.comm	_EVHTTP_CON_AUTOFREE,4,2        ; @EVHTTP_CON_AUTOFREE
	.comm	_EVCON_WRITING,4,2              ; @EVCON_WRITING
	.no_dead_strip	_evhttp_connection_done
.subsections_via_symbols
