	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sk_stream_wait_connect         ## -- Begin function sk_stream_wait_connect
	.p2align	4, 0x90
_sk_stream_wait_connect:                ## @sk_stream_wait_connect
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEFINE_WAIT
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%al, %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sk_wait_event
	movl	%eax, %r12d
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	callq	_finish_wait
	decl	4(%rbx)
	testl	%r12d, %r12d
	jne	LBB0_12
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_sock_error
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_TCPF_SYN_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TCPF_SYN_SENT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %ecx
	btl	%ecx, %eax
	jae	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rbx), %edi
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_wait@GOTPCREL(%rip), %r15
	movq	%r15, %rsi
	callq	_prepare_to_wait
	incl	4(%rbx)
	xorl	%r13d, %r13d
	cmpl	$0, 12(%rbx)
	movl	$0, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_TCPF_CLOSE_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TCPF_ESTABLISHED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %ecx
	btl	%ecx, %eax
	setb	%al
	jmp	LBB0_11
LBB0_2:
	movl	%eax, %r13d
	jmp	LBB0_12
LBB0_4:
	movq	_EPIPE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sock_intr_errno                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_wait,4,2                       ## @wait
	.comm	_TCPF_SYN_SENT,4,2              ## @TCPF_SYN_SENT
	.comm	_TCPF_SYN_RECV,4,2              ## @TCPF_SYN_RECV
	.comm	_EPIPE,4,2                      ## @EPIPE
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_TCPF_ESTABLISHED,4,2           ## @TCPF_ESTABLISHED
	.comm	_TCPF_CLOSE_WAIT,4,2            ## @TCPF_CLOSE_WAIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sk_stream_wait_connect         ; -- Begin function sk_stream_wait_connect
	.p2align	2
_sk_stream_wait_connect:                ; @sk_stream_wait_connect
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x22, _wait@GOTPAGE
Lloh4:
	ldr	x22, [x22, _wait@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_DEFINE_WAIT
Lloh5:
	adrp	x24, _TCPF_SYN_SENT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _TCPF_SYN_SENT@GOTPAGEOFF]
Lloh7:
	adrp	x25, _TCPF_SYN_RECV@GOTPAGE
Lloh8:
	ldr	x25, [x25, _TCPF_SYN_RECV@GOTPAGEOFF]
Lloh9:
	adrp	x26, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh10:
	ldr	x26, [x26, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh11:
	adrp	x27, _TCPF_ESTABLISHED@GOTPAGE
Lloh12:
	ldr	x27, [x27, _TCPF_ESTABLISHED@GOTPAGEOFF]
Lloh13:
	adrp	x28, _TCPF_CLOSE_WAIT@GOTPAGE
Lloh14:
	ldr	x28, [x28, _TCPF_CLOSE_WAIT@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x27]
	ldr	w10, [x28]
	orr	w9, w10, w9
	lsr	w8, w9, w8
	and	w2, w8, #0x1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_sk_wait_event
	mov	x23, x0
	ldr	w0, [x20, #8]
	mov	x1, x22
	bl	_finish_wait
	ldr	w8, [x20, #4]
	sub	w8, w8, #1
	str	w8, [x20, #4]
	cbnz	w23, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_sock_error
	cbnz	w0, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x24]
	ldr	w10, [x25]
	orr	w9, w10, w9
	lsr	w8, w9, w8
	tbz	w8, #0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_signal_pending
	cbnz	x0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20, #8]
	ldr	w2, [x26]
	mov	x1, x22
	bl	_prepare_to_wait
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w2, #0
	b	LBB0_2
LBB0_9:
	mov	w0, #0
	b	LBB0_13
LBB0_10:
Lloh15:
	adrp	x8, _EPIPE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh17:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	ldr	x0, [x19]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_sock_intr_errno
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_wait,4,2                       ; @wait
	.comm	_TCPF_SYN_SENT,4,2              ; @TCPF_SYN_SENT
	.comm	_TCPF_SYN_RECV,4,2              ; @TCPF_SYN_RECV
	.comm	_EPIPE,4,2                      ; @EPIPE
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_TCPF_ESTABLISHED,4,2           ; @TCPF_ESTABLISHED
	.comm	_TCPF_CLOSE_WAIT,4,2            ; @TCPF_CLOSE_WAIT
.subsections_via_symbols
