	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_connect                        ## -- Begin function connect
	.p2align	4, 0x90
_connect:                               ## @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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movl	%edi, %r12d
	leaq	-36(%rbp), %rsi
	callq	_fd_get
	movq	_fd_rsocket@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movl	-36(%rbp), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_rconnect
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.4:
	movq	_fd_normal@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_transpose_socket
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:
	movl	-36(%rbp), %edi
	callq	_rclose
	movl	%ebx, -36(%rbp)
	jmp	LBB0_8
LBB0_6:
	movl	%r12d, %edi
	callq	_fd_gets
	movq	_fd_fork@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movl	-36(%rbp), %esi
	movq	_fd_normal@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_fd_fork_active@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	callq	_fd_store
LBB0_8:
	movq	_real@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	*(%rax)
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_2:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fd_rsocket,8,3                 ## @fd_rsocket
	.comm	_errno,8,3                      ## @errno
	.comm	_EINPROGRESS,8,3                ## @EINPROGRESS
	.comm	_fd_normal,4,2                  ## @fd_normal
	.comm	_fd_fork,8,3                    ## @fd_fork
	.comm	_fd_fork_active,4,2             ## @fd_fork_active
	.comm	_real,8,3                       ## @real
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_connect                        ; -- Begin function connect
	.p2align	2
_connect:                               ; @connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x1, sp, #12
	bl	_fd_get
Lloh0:
	adrp	x8, _fd_rsocket@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fd_rsocket@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	ldr	w0, [sp, #12]
	mov	x1, x20
	mov	x2, x19
	bl	_rconnect
	mov	x22, x0
	cbz	w0, LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _EINPROGRESS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EINPROGRESS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.3:
Lloh9:
	adrp	x8, _fd_normal@GOTPAGE
Lloh10:
	ldr	x8, [x8, _fd_normal@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_transpose_socket
	mov	x22, x0
	tbnz	w0, #31, LBB0_8
; %bb.4:
	ldr	w0, [sp, #12]
	bl	_rclose
	str	w22, [sp, #12]
	b	LBB0_7
LBB0_5:
	mov	x0, x21
	bl	_fd_gets
Lloh12:
	adrp	x8, _fd_fork@GOTPAGE
Lloh13:
	ldr	x8, [x8, _fd_fork@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	ldr	w1, [sp, #12]
Lloh15:
	adrp	x8, _fd_normal@GOTPAGE
Lloh16:
	ldr	x8, [x8, _fd_normal@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _fd_fork_active@GOTPAGE
Lloh19:
	ldr	x8, [x8, _fd_fork_active@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_fd_store
LBB0_7:
Lloh21:
	adrp	x8, _real@GOTPAGE
Lloh22:
	ldr	x8, [x8, _real@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	w0, [sp, #12]
	mov	x1, x20
	mov	x2, x19
	blr	x8
	mov	x22, x0
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.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
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_fd_rsocket,8,3                 ; @fd_rsocket
	.comm	_errno,8,3                      ; @errno
	.comm	_EINPROGRESS,8,3                ; @EINPROGRESS
	.comm	_fd_normal,4,2                  ; @fd_normal
	.comm	_fd_fork,8,3                    ; @fd_fork
	.comm	_fd_fork_active,4,2             ; @fd_fork_active
	.comm	_real,8,3                       ; @real
.subsections_via_symbols
