	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evutil_socket_finished_connecting_ ## -- Begin function evutil_socket_finished_connecting_
	.p2align	4, 0x90
_evutil_socket_finished_connecting_:    ## @evutil_socket_finished_connecting_
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	$4, -8(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-4(%rbp), %rcx
	leaq	-8(%rbp), %r8
	callq	_getsockopt
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	js	LBB0_5
## %bb.1:
	movl	-4(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_2
## %bb.3:
	callq	_EVUTIL_ERR_CONNECT_RETRIABLE
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.4:
	movl	-4(%rbp), %edi
	callq	_EVUTIL_SET_SOCKET_ERROR
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_2:
	movl	$1, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ## @SO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evutil_socket_finished_connecting_ ; -- Begin function evutil_socket_finished_connecting_
	.p2align	2
_evutil_socket_finished_connecting_:    ; @evutil_socket_finished_connecting_
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w8, #4
	str	w8, [sp, #8]
Lloh0:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SO_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SO_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	sub	x3, x29, #4
	add	x4, sp, #8
	bl	_getsockopt
	tbnz	x0, #63, LBB0_6
; %bb.1:
	ldur	w0, [x29, #-4]
	cbz	w0, LBB0_4
; %bb.2:
	bl	_EVUTIL_ERR_CONNECT_RETRIABLE
	cbz	x0, LBB0_5
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	mov	w0, #1
	b	LBB0_7
LBB0_5:
	ldur	w0, [x29, #-4]
	bl	_EVUTIL_SET_SOCKET_ERROR
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ; @SO_ERROR
.subsections_via_symbols
