	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function urihandling
_urihandling:                           ## @urihandling
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ARG_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_MAXLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_strlcpy
	addq	$7, %r15
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r12
	movb	$0, (%rax)
	incq	%r12
	movq	%r12, %rdi
	movl	$59, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movb	$0, (%rax)
	leaq	1(%rax), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$5, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.5:
	addq	$6, %rbx
	movl	$24, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	movq	_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13), %rdi
	addq	$16, %r13
	testq	%rdi, %rdi
	jne	LBB0_6
	jmp	LBB0_9
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_11
LBB0_7:
	movq	_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:
	movl	%r14d, %ecx
	shlq	$4, %rcx
	cmpq	$0, 8(%rax,%rcx)
	je	LBB0_15
## %bb.10:
	movq	(%rax,%rcx), %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_11:
	callq	_settftpmode
LBB0_12:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_setpeer0
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_sprintf
	movq	%r14, %rdi
	callq	_makeargv
	movq	_margc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_margv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_16:
	callq	___stack_chk_fail
LBB0_15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_ARG_MAX,4,2                    ## @ARG_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"octet"

	.comm	_MAXLINE,4,2                    ## @MAXLINE
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Invalid URI: Couldn't find / after hostname\n"

L_.str.2:                               ## @.str.2
	.asciz	"mode="

	.comm	_modes,8,3                      ## @modes
L_.str.3:                               ## @.str.3
	.asciz	"Invalid mode: '%s'\n"

	.comm	_mode,8,3                       ## @mode
L_.str.4:                               ## @.str.4
	.asciz	"get %s"

	.comm	_margc,4,2                      ## @margc
	.comm	_margv,4,2                      ## @margv
	.no_dead_strip	_urihandling
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function urihandling
_urihandling:                           ; @urihandling
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _ARG_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARG_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x9, x2
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x8, _MAXLINE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAXLINE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_strlcpy
	add	x21, x20, #7
	mov	x0, x21
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x0
	strb	wzr, [x20], #1
	mov	x0, x20
	mov	w1, #59
	bl	_strchr
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x0
	strb	wzr, [x0], #1
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #5
	bl	_strncmp
	cbnz	x0, LBB0_12
; %bb.3:
Lloh15:
	adrp	x24, _modes@GOTPAGE
Lloh16:
	ldr	x24, [x24, _modes@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_16
; %bb.4:
	mov	x23, #0
	add	x22, x22, #6
	mov	w25, #24
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldr	x8, [x24]
	ldr	x0, [x8, x25]
	add	x25, x25, #16
	cbnz	x0, LBB0_5
	b	LBB0_9
LBB0_7:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_8:
	ldr	x8, [x24]
LBB0_9:
	add	x9, x8, w23, uxtw #4
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_16
; %bb.10:
	and	x9, x23, #0xffffffff
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
LBB0_11:
	bl	_settftpmode
LBB0_12:
	mov	x0, x21
	mov	x1, #0
	bl	_setpeer0
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_sprintf
	mov	x0, x19
	bl	_makeargv
Lloh21:
	adrp	x8, _margc@GOTPAGE
Lloh22:
	ldr	x8, [x8, _margc@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _margv@GOTPAGE
Lloh25:
	ldr	x8, [x8, _margv@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_get
	ldur	x8, [x29, #-72]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.13:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh30:
	adrp	x8, _stderr@GOTPAGE
Lloh31:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_15:
	bl	___stack_chk_fail
LBB0_16:
Lloh35:
	adrp	x8, _stderr@GOTPAGE
Lloh36:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x8, _mode@GOTPAGE
Lloh39:
	ldr	x8, [x8, _mode@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	str	x8, [sp, #-16]!
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	add	sp, sp, #16
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ARG_MAX,4,2                    ; @ARG_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"octet"

	.comm	_MAXLINE,4,2                    ; @MAXLINE
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Invalid URI: Couldn't find / after hostname\n"

l_.str.2:                               ; @.str.2
	.asciz	"mode="

	.comm	_modes,8,3                      ; @modes
l_.str.3:                               ; @.str.3
	.asciz	"Invalid mode: '%s'\n"

	.comm	_mode,8,3                       ; @mode
l_.str.4:                               ; @.str.4
	.asciz	"get %s"

	.comm	_margc,4,2                      ; @margc
	.comm	_margv,4,2                      ; @margv
	.no_dead_strip	_urihandling
.subsections_via_symbols
