	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swrap_connect                  ## -- Begin function swrap_connect
	.p2align	4, 0x90
_swrap_connect:                         ## @swrap_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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movl	%edi, %r13d
	callq	_find_socket_info
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_swrap_auto_bind
	cmpl	$-1, %eax
	je	LBB0_13
LBB0_3:
	movq	8(%rbx), %rax
	cmpq	(%r14), %rax
	jne	LBB0_11
## %bb.4:
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sockaddr_convert_to_un
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.5:
	movq	_SWRAP_CONNECT_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_swrap_dump_packet
	leaq	-48(%rbp), %rsi
	movl	%r13d, %edi
	movl	$4, %edx
	callq	_real_connect
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	movl	%eax, %r13d
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_ENOENT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.8:
	movq	_EHOSTUNREACH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_9:
	movq	_SWRAP_CONNECT_UNREACH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_swrap_dump_packet
	movl	%r13d, %r12d
	jmp	LBB0_15
LBB0_10:
	movl	%r13d, %edi
	movq	%r14, %rsi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_real_connect                   ## TAILCALL
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_13:
	movl	$-1, %r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	%r15d, 16(%rbx)
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_sockaddr_dup
	movl	%eax, 20(%rbx)
	movq	_SWRAP_CONNECT_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_swrap_dump_packet
	movq	_SWRAP_CONNECT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_swrap_dump_packet
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_errno,8,3                      ## @errno
	.comm	_SWRAP_CONNECT_SEND,4,2         ## @SWRAP_CONNECT_SEND
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_EHOSTUNREACH,8,3               ## @EHOSTUNREACH
	.comm	_SWRAP_CONNECT_RECV,4,2         ## @SWRAP_CONNECT_RECV
	.comm	_SWRAP_CONNECT_ACK,4,2          ## @SWRAP_CONNECT_ACK
	.comm	_SWRAP_CONNECT_UNREACH,4,2      ## @SWRAP_CONNECT_UNREACH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swrap_connect                  ; -- Begin function swrap_connect
	.p2align	2
_swrap_connect:                         ; @swrap_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	x21, x2
	mov	x19, x1
	mov	x22, x0
	bl	_find_socket_info
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	cbnz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_swrap_auto_bind
	cmn	w0, #1
	b.eq	LBB0_12
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.4:
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w4, #0
	mov	x5, #0
	bl	_sockaddr_convert_to_un
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.5:
Lloh0:
	adrp	x8, _SWRAP_CONNECT_SEND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SWRAP_CONNECT_SEND@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, #0
	mov	w4, #0
	bl	_swrap_dump_packet
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #4
	bl	_real_connect
	mov	x22, x0
	cbz	w0, LBB0_13
; %bb.6:
	cmn	w22, #1
	b.ne	LBB0_9
; %bb.7:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh5:
	adrp	x10, _ENOENT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ENOENT@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.8:
Lloh8:
	adrp	x9, _EHOSTUNREACH@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EHOSTUNREACH@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	str	x9, [x8]
LBB0_9:
Lloh11:
	adrp	x8, _SWRAP_CONNECT_UNREACH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SWRAP_CONNECT_UNREACH@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	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
	b	_real_connect
LBB0_11:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _errno@GOTPAGE
Lloh17:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh18:
	str	x8, [x9]
LBB0_12:
	mov	w22, #-1
	b	LBB0_15
LBB0_13:
	str	w21, [x20, #16]
	mov	x0, x19
	mov	x1, x21
	bl	_sockaddr_dup
	str	w0, [x20, #20]
Lloh19:
	adrp	x8, _SWRAP_CONNECT_RECV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SWRAP_CONNECT_RECV@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, #0
	mov	w4, #0
	bl	_swrap_dump_packet
Lloh22:
	adrp	x8, _SWRAP_CONNECT_ACK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SWRAP_CONNECT_ACK@GOTPAGEOFF]
LBB0_14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, #0
	mov	w4, #0
	bl	_swrap_dump_packet
LBB0_15:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_errno,8,3                      ; @errno
	.comm	_SWRAP_CONNECT_SEND,4,2         ; @SWRAP_CONNECT_SEND
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_EHOSTUNREACH,8,3               ; @EHOSTUNREACH
	.comm	_SWRAP_CONNECT_RECV,4,2         ; @SWRAP_CONNECT_RECV
	.comm	_SWRAP_CONNECT_ACK,4,2          ; @SWRAP_CONNECT_ACK
	.comm	_SWRAP_CONNECT_UNREACH,4,2      ; @SWRAP_CONNECT_UNREACH
.subsections_via_symbols
