	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function net_connect
_net_connect:                           ## @net_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_inet_addr
	movq	%rax, %rbx
	cmpq	$-1, %rax
	jne	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_gethostbyname
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_3:
	movq	(%rbx), %rax
	movq	(%rax), %rbx
LBB0_4:
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%rbx, -24(%rbp)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	$0, -40(%rbp)
	movq	_RPC_ANYSOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ptraceSock@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_RDBPROG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RDBVERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_clnttcp_create
	movq	_pClient@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_clnt_pcreateerror
	leaq	L_.str.2(%rip), %rdi
	callq	_error
LBB0_6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid hostname.  Couldn't find remote host address."

	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_RPC_ANYSOCK,4,2                ## @RPC_ANYSOCK
	.comm	_ptraceSock,4,2                 ## @ptraceSock
	.comm	_RDBPROG,4,2                    ## @RDBPROG
	.comm	_RDBVERS,4,2                    ## @RDBVERS
	.comm	_pClient,8,3                    ## @pClient
L_.str.1:                               ## @.str.1
	.asciz	"\tnet_connect"

L_.str.2:                               ## @.str.2
	.asciz	"Couldn't connect to remote target."

	.no_dead_strip	_net_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function net_connect
_net_connect:                           ; @net_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x0
	bl	_inet_addr
	mov	x19, x0
	cmn	x0, #1
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_gethostbyname
	mov	x19, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_3:
	ldr	x8, [x19]
	ldr	x19, [x8]
LBB0_4:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	x19, [sp, #24]
Lloh2:
	adrp	x8, _AF_INET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	xzr, [sp, #8]
Lloh5:
	adrp	x8, _RPC_ANYSOCK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RPC_ANYSOCK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x3, _ptraceSock@GOTPAGE
Lloh9:
	ldr	x3, [x3, _ptraceSock@GOTPAGEOFF]
	str	w8, [x3]
Lloh10:
	adrp	x8, _RDBPROG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RDBPROG@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _RDBVERS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RDBVERS@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	w4, #0
	mov	w5, #0
	bl	_clnttcp_create
Lloh16:
	adrp	x8, _pClient@GOTPAGE
Lloh17:
	ldr	x8, [x8, _pClient@GOTPAGEOFF]
Lloh18:
	str	x0, [x8]
	cbnz	x0, LBB0_6
; %bb.5:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_clnt_pcreateerror
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid hostname.  Couldn't find remote host address."

	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_RPC_ANYSOCK,4,2                ; @RPC_ANYSOCK
	.comm	_ptraceSock,4,2                 ; @ptraceSock
	.comm	_RDBPROG,4,2                    ; @RDBPROG
	.comm	_RDBVERS,4,2                    ; @RDBVERS
	.comm	_pClient,8,3                    ; @pClient
l_.str.1:                               ; @.str.1
	.asciz	"\tnet_connect"

l_.str.2:                               ; @.str.2
	.asciz	"Couldn't connect to remote target."

	.no_dead_strip	_net_connect
.subsections_via_symbols
