	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_remote_fd                  ## -- Begin function cmd_remote_fd
	.p2align	4, 0x90
_cmd_remote_fd:                         ## @cmd_remote_fd
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	cmpl	$3, %edi
	je	LBB0_2
## %bb.1:
	movq	_usage_msg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
LBB0_2:
	movq	16(%r15), %rdi
	leaq	-40(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, %r14
	movq	-40(%rbp), %rbx
	cmpq	16(%r15), %rbx
	je	LBB0_5
## %bb.3:
	movzbl	(%rbx), %eax
	cmpq	$47, %rax
	ja	LBB0_5
## %bb.4:
	movabsq	$158329674399745, %rcx          ## imm = 0x900000000001
	btq	%rax, %rcx
	jb	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_die
	movb	(%rbx), %al
LBB0_6:
	movl	%r14d, %r15d
	testb	%al, %al
	je	LBB0_12
## %bb.7:
	movl	%r14d, %r15d
	cmpb	$47, %al
	je	LBB0_12
## %bb.8:
	incq	%rbx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, %r15
	movq	-32(%rbp), %rax
	cmpq	%rbx, %rax
	je	LBB0_11
## %bb.9:
	movb	(%rax), %al
	testb	%al, %al
	je	LBB0_12
## %bb.10:
	cmpb	$47, %al
	je	LBB0_12
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_12:
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_command_loop
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_usage_msg,4,2                  ## @usage_msg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad URL syntax"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_remote_fd                  ; -- Begin function cmd_remote_fd
	.p2align	2
_cmd_remote_fd:                         ; @cmd_remote_fd
	.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	x20, x1
	cmp	w0, #3
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _usage_msg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _usage_msg@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_usage
LBB0_2:
	ldr	x0, [x20, #16]
	add	x1, sp, #8
	mov	w2, #10
	bl	_strtoul
	mov	x19, x0
	ldr	x21, [sp, #8]
	ldr	x8, [x20, #16]
	cmp	x21, x8
	b.eq	LBB0_4
; %bb.3:
	ldrb	w8, [x21]
	cmp	w8, #47
	mov	w9, #1
	lsl	x9, x9, x8
	mov	x10, #1
	movk	x10, #36864, lsl #32
	and	x9, x9, x10
	ccmp	x9, #0, #4, ls
	b.ne	LBB0_5
LBB0_4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
	ldrb	w8, [x21]
LBB0_5:
	mov	x20, x19
	cbz	w8, LBB0_11
; %bb.6:
	mov	x20, x19
	cmp	w8, #47
	b.eq	LBB0_11
; %bb.7:
	add	x21, x21, #1
	mov	x1, sp
	mov	x0, x21
	mov	w2, #10
	bl	_strtoul
	mov	x20, x0
	ldr	x8, [sp]
	cmp	x8, x21
	b.eq	LBB0_10
; %bb.8:
	ldrb	w8, [x8]
	cbz	w8, LBB0_11
; %bb.9:
	cmp	w8, #47
	b.eq	LBB0_11
LBB0_10:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_command_loop
	mov	w0, #0
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_usage_msg,4,2                  ; @usage_msg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad URL syntax"

.subsections_via_symbols
