	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evhttp_connection_fail_        ## -- Begin function evhttp_connection_fail_
	.p2align	4, 0x90
_evhttp_connection_fail_:               ## @evhttp_connection_fail_
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_EVUTIL_SOCKET_ERROR
	movl	%eax, %r15d
	leaq	4(%rbx), %r12
	movq	%r12, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_EVUTIL_ASSERT
	movl	8(%rbx), %edi
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movq	_EV_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_bufferevent_disable
	movq	_EVHTTP_CON_INCOMING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_evhttp_connection_incoming_fail
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.2:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_evhttp_connection_free         ## TAILCALL
LBB0_3:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	16(%r13), %rsi
	movq	_EVREQ_HTTP_REQUEST_CANCEL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	$0, %edx
	cmpl	%r14d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	8(%r13), %rdx
	movq	%rsi, %rcx
LBB0_5:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	(%r13), %r15
	movq	_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_TAILQ_REMOVE
	movq	%r13, %rdi
	callq	_evhttp_request_free
	movq	%rbx, %rdi
	callq	_evhttp_connection_reset_
	movq	%r12, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_evhttp_connection_connect_
LBB0_7:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_EVUTIL_SET_SOCKET_ERROR
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:
	movl	%r14d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	*%r15
LBB0_9:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	xorl	%edi, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.comm	_EVHTTP_CON_INCOMING,4,2        ## @EVHTTP_CON_INCOMING
	.comm	_EVREQ_HTTP_REQUEST_CANCEL,4,2  ## @EVREQ_HTTP_REQUEST_CANCEL
	.comm	_next,4,2                       ## @next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evhttp_connection_fail_        ; -- Begin function evhttp_connection_fail_
	.p2align	2
_evhttp_connection_fail_:               ; @evhttp_connection_fail_
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	bl	_EVUTIL_SOCKET_ERROR
	mov	x21, x0
	add	x22, x20, #4
	mov	x0, x22
	bl	_TAILQ_FIRST
	mov	x23, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_EVUTIL_ASSERT
Lloh0:
	adrp	x8, _EV_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
	ldr	w0, [x20, #8]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EV_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EV_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_bufferevent_disable
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _EVHTTP_CON_INCOMING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EVHTTP_CON_INCOMING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x23
	mov	x1, x19
	bl	_evhttp_connection_incoming_fail
	cmn	w0, #1
	b.ne	LBB0_12
; %bb.2:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_evhttp_connection_free
LBB0_3:
	ldr	x24, [x23, #16]
Lloh9:
	adrp	x8, _EVREQ_HTTP_REQUEST_CANCEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVREQ_HTTP_REQUEST_CANCEL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_5
; %bb.4:
	mov	x25, #0
	mov	x0, #0
	b	LBB0_6
LBB0_5:
	ldr	x0, [x23, #8]
	mov	x25, x24
LBB0_6:
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x26, [x23]
Lloh12:
	adrp	x8, _next@GOTPAGE
Lloh13:
	ldr	x8, [x8, _next@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x23
	bl	_TAILQ_REMOVE
	mov	x0, x23
	bl	_evhttp_request_free
	mov	x0, x20
	bl	_evhttp_connection_reset_
	mov	x0, x22
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_evhttp_connection_connect_
LBB0_8:
	mov	x0, x21
	bl	_EVUTIL_SET_SOCKET_ERROR
	cbz	x26, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x24
	blr	x26
LBB0_10:
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x2, LBB0_12
; %bb.11:
	mov	x0, #0
	mov	x1, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	br	x2
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.comm	_EVHTTP_CON_INCOMING,4,2        ; @EVHTTP_CON_INCOMING
	.comm	_EVREQ_HTTP_REQUEST_CANCEL,4,2  ; @EVREQ_HTTP_REQUEST_CANCEL
	.comm	_next,4,2                       ; @next
.subsections_via_symbols
