	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fail_connection                ## -- Begin function fail_connection
	.p2align	4, 0x90
_fail_connection:                       ## @fail_connection
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_C_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	8(%rdi), %r9
	movq	_conn_connecting@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	jmp	LBB0_4
LBB0_2:
	movq	_total_failed_connections@GOTPCREL(%rip), %rcx
	incl	(%rcx)
	movq	8(%rdi), %r9
	movq	_conn_connecting@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %r9
	jne	LBB0_4
## %bb.3:
	movq	_total_connect_failures@GOTPCREL(%rip), %rdx
	incl	(%rdx)
	movq	%r9, %rdx
LBB0_4:
	orl	(%rdi), %eax
	movl	%eax, (%rdi)
	movq	_C_WANTRD@GOTPCREL(%rip), %r8
	movq	_C_WANTWR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%r8), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%rdi)
	cmpq	%rdx, %r9
	jne	LBB0_6
## %bb.5:
	movq	24(%rdi), %rax
	incl	(%rax)
	movq	_active_outbound_connections@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_active_connections@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_6:
	movq	_conn_error@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rdi)
	cmpl	$0, 16(%rdi)
	js	LBB0_8
## %bb.7:
	movl	%esi, 16(%rdi)
LBB0_8:
	movl	20(%rdi), %edi
	callq	_put_event_into_heap
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_C_FAILED,4,2                   ## @C_FAILED
	.comm	_total_failed_connections,4,2   ## @total_failed_connections
	.comm	_conn_connecting,8,3            ## @conn_connecting
	.comm	_total_connect_failures,4,2     ## @total_connect_failures
	.comm	_C_WANTRD,4,2                   ## @C_WANTRD
	.comm	_C_WANTWR,4,2                   ## @C_WANTWR
	.comm	_active_outbound_connections,4,2 ## @active_outbound_connections
	.comm	_active_connections,4,2         ## @active_connections
	.comm	_conn_error,8,3                 ## @conn_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fail_connection                ; -- Begin function fail_connection
	.p2align	2
_fail_connection:                       ; @fail_connection
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _C_FAILED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _C_FAILED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x0, #8]
Lloh3:
	adrp	x10, _conn_connecting@GOTPAGE
Lloh4:
	ldr	x10, [x10, _conn_connecting@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x9, _total_failed_connections@GOTPAGE
Lloh7:
	ldr	x9, [x9, _total_failed_connections@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w10, w10, #1
	str	w10, [x9]
	ldr	x9, [x0, #8]
Lloh8:
	adrp	x10, _conn_connecting@GOTPAGE
Lloh9:
	ldr	x10, [x10, _conn_connecting@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x10, _total_connect_failures@GOTPAGE
Lloh12:
	ldr	x10, [x10, _total_connect_failures@GOTPAGEOFF]
	ldr	w11, [x10]
	add	w11, w11, #1
	str	w11, [x10]
	mov	x10, x9
LBB0_4:
	ldr	w11, [x0]
	orr	w8, w11, w8
	str	w8, [x0]
Lloh13:
	adrp	x11, _C_WANTRD@GOTPAGE
Lloh14:
	ldr	x11, [x11, _C_WANTRD@GOTPAGEOFF]
Lloh15:
	adrp	x12, _C_WANTWR@GOTPAGE
Lloh16:
	ldr	x12, [x12, _C_WANTWR@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
Lloh18:
	ldr	w12, [x12]
	orr	w11, w12, w11
	bic	w8, w8, w11
	str	w8, [x0]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x0, #24]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh19:
	adrp	x8, _active_outbound_connections@GOTPAGE
Lloh20:
	ldr	x8, [x8, _active_outbound_connections@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh21:
	adrp	x8, _active_connections@GOTPAGE
Lloh22:
	ldr	x8, [x8, _active_connections@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_6:
Lloh23:
	adrp	x8, _conn_error@GOTPAGE
Lloh24:
	ldr	x8, [x8, _conn_error@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [x0, #8]
	ldr	w8, [x0, #16]
	tbnz	w8, #31, LBB0_8
; %bb.7:
	str	w1, [x0, #16]
LBB0_8:
	ldr	w0, [x0, #20]
	bl	_put_event_into_heap
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_C_FAILED,4,2                   ; @C_FAILED
	.comm	_total_failed_connections,4,2   ; @total_failed_connections
	.comm	_conn_connecting,8,3            ; @conn_connecting
	.comm	_total_connect_failures,4,2     ; @total_connect_failures
	.comm	_C_WANTRD,4,2                   ; @C_WANTRD
	.comm	_C_WANTWR,4,2                   ; @C_WANTWR
	.comm	_active_outbound_connections,4,2 ; @active_outbound_connections
	.comm	_active_connections,4,2         ; @active_connections
	.comm	_conn_error,8,3                 ; @conn_error
.subsections_via_symbols
