	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getremote                      ## -- Begin function getremote
	.p2align	4, 0x90
_getremote:                             ## @getremote
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, _getremote.lookedup(%rip)
	je	LBB0_2
## %bb.1:
	movq	_getremote.next(%rip), %r14
	jmp	LBB0_5
LBB0_2:
	movq	%rdi, %rbx
	movq	_NOSTR@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	cmpq	%rbx, %rax
	movq	%rax, %rbx
	je	LBB0_10
LBB0_4:
	movq	%rbx, %rdi
	callq	_getremcap
	movq	_DV@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, _getremote.next(%rip)
	incl	_getremote.lookedup(%rip)
LBB0_5:
	movq	_NOSTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	%rbx, %r14
	je	LBB0_9
## %bb.6:
	movq	%r14, %rdi
	movl	$44, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %rbx
	incq	%rbx
	movb	$0, (%rax)
LBB0_8:
	movq	_DV@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movq	%rbx, _getremote.next(%rip)
LBB0_9:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___progname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movl	$3, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_getremote.next,8,3 ## @getremote.next
.zerofill __DATA,__bss,_getremote.lookedup,4,2 ## @getremote.lookedup
	.comm	_NOSTR,8,3                      ## @NOSTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HOST"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"%s: no host specified\n"

	.comm	___progname,8,3                 ## @__progname
	.comm	_DV,8,3                         ## @DV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getremote                      ; -- Begin function getremote
	.p2align	2
_getremote:                             ; @getremote
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	adrp	x22, _getremote.lookedup@PAGE
	ldr	w8, [x22, _getremote.lookedup@PAGEOFF]
	adrp	x20, _getremote.next@PAGE
Lloh0:
	adrp	x21, _NOSTR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NOSTR@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x19, [x20, _getremote.next@PAGEOFF]
	b	LBB0_5
LBB0_2:
	mov	x19, x0
	ldr	x8, [x21]
	cmp	x8, x0
	b.ne	LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cmp	x0, x19
	mov	x19, x0
	b.eq	LBB0_10
LBB0_4:
	mov	x0, x19
	bl	_getremcap
Lloh4:
	adrp	x8, _DV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DV@GOTPAGEOFF]
Lloh6:
	ldr	x19, [x8]
	str	x19, [x20, _getremote.next@PAGEOFF]
	ldr	w8, [x22, _getremote.lookedup@PAGEOFF]
	add	w8, w8, #1
	str	w8, [x22, _getremote.lookedup@PAGEOFF]
LBB0_5:
	ldr	x21, [x21]
	cmp	x19, x21
	b.eq	LBB0_9
; %bb.6:
	mov	x0, x19
	mov	w1, #44
	bl	_strchr
	cbz	x0, LBB0_8
; %bb.7:
	strb	wzr, [x0], #1
	mov	x21, x0
LBB0_8:
Lloh7:
	adrp	x8, _DV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DV@GOTPAGEOFF]
Lloh9:
	str	x19, [x8]
	str	x21, [x20, _getremote.next@PAGEOFF]
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, ___progname@GOTPAGE
Lloh14:
	ldr	x8, [x8, ___progname@GOTPAGEOFF]
Lloh15:
	ldr	x2, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	mov	w0, #3
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_getremote.next,8,3 ; @getremote.next
.zerofill __DATA,__bss,_getremote.lookedup,4,2 ; @getremote.lookedup
	.comm	_NOSTR,8,3                      ; @NOSTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HOST"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"%s: no host specified\n"

	.comm	___progname,8,3                 ; @__progname
	.comm	_DV,8,3                         ; @DV
.subsections_via_symbols
