	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_put                            ## -- Begin function put
	.p2align	4, 0x90
_put:                                   ## @put
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	cmpl	$2, %edi
	jne	LBB0_13
## %bb.1:
	movl	$3, -36(%rbp)
	movq	8(%rsi), %rax
	movq	%rax, 16(%rsi)
	jmp	LBB0_2
LBB0_13:
	jge	LBB0_2
## %bb.14:
	leaq	L_.str(%rip), %rdx
	leaq	-36(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_another
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	cmpl	$2, -36(%rbp)
	jg	LBB0_2
## %bb.16:
	leaq	L_.str.1(%rip), %rdx
	leaq	-36(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_another
	testl	%eax, %eax
	je	LBB0_17
LBB0_2:
	movq	-48(%rbp), %rax
	leaq	8(%rax), %rdi
	movq	8(%rax), %r15
	movq	16(%rax), %r12
	callq	_globulize
	testl	%eax, %eax
	je	LBB0_18
## %bb.3:
	movq	-48(%rbp), %rcx
	movq	8(%rcx), %rax
	cmpq	%r15, %rax
	je	LBB0_6
## %bb.4:
	cmpq	%r15, 16(%rcx)
	jne	LBB0_6
## %bb.5:
	movq	%rax, 16(%rcx)
LBB0_6:
	movq	(%rcx), %rax
	movq	_sunique@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	leaq	L_.str.5(%rip), %rdx
	leaq	L_.str.4(%rip), %rsi
	cmoveq	%rdx, %rsi
	cmpb	$97, (%rax)
	leaq	L_.str.3(%rip), %r14
	cmovneq	%rsi, %r14
	cmpl	$2, %ebx
	jne	LBB0_9
## %bb.7:
	movq	_ntflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movq	16(%rcx), %rdi
	callq	_dotrans
	movq	-48(%rbp), %rcx
	movq	%rax, 16(%rcx)
LBB0_9:
	movq	16(%rcx), %rdx
	cmpl	$2, %ebx
	jne	LBB0_12
## %bb.10:
	movq	_mapflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.11:
	movq	%rdx, %rdi
	callq	_domap
	movq	%rax, %rdx
	movq	-48(%rbp), %rcx
	movq	%rax, 16(%rcx)
LBB0_12:
	movq	8(%rcx), %rsi
	movq	_curtype@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_TYPE_I@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.7(%rip), %rcx
	cmoveq	%rax, %rcx
	xorq	%rsi, %r15
	xorq	%rdx, %r12
	xorl	%r8d, %r8d
	orq	%r15, %r12
	setne	%r8b
	movq	%r14, %rdi
	callq	_sendrequest
	jmp	LBB0_19
LBB0_17:
	movq	-48(%rbp), %rax
	movq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_printf
LBB0_18:
	movq	_code@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
LBB0_19:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"local-file"

L_.str.1:                               ## @.str.1
	.asciz	"remote-file"

L_.str.2:                               ## @.str.2
	.asciz	"usage: %s local-file remote-file\n"

	.comm	_code,4,2                       ## @code
L_.str.3:                               ## @.str.3
	.asciz	"APPE"

	.comm	_sunique,8,3                    ## @sunique
L_.str.4:                               ## @.str.4
	.asciz	"STOU"

L_.str.5:                               ## @.str.5
	.asciz	"STOR"

	.comm	_ntflag,8,3                     ## @ntflag
	.comm	_mapflag,8,3                    ## @mapflag
	.comm	_curtype,8,3                    ## @curtype
	.comm	_TYPE_I,8,3                     ## @TYPE_I
L_.str.6:                               ## @.str.6
	.asciz	"rb"

L_.str.7:                               ## @.str.7
	.asciz	"r"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_put                            ; -- Begin function put
	.p2align	2
_put:                                   ; @put
	.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	x19, x0
	str	w0, [sp, #12]
	str	x1, [sp]
	cmp	w0, #2
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #3
	str	w8, [sp, #12]
	ldr	x8, [x1, #8]
	str	x8, [x1, #16]
	b	LBB0_6
LBB0_2:
	cmp	w19, #1
	b.gt	LBB0_6
; %bb.3:
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #12
	mov	x1, sp
	bl	_another
	cbz	w0, LBB0_17
; %bb.4:
	ldr	w8, [sp, #12]
	cmp	w8, #2
	b.gt	LBB0_6
; %bb.5:
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #12
	mov	x1, sp
	bl	_another
	cbz	w0, LBB0_17
LBB0_6:
	ldr	x0, [sp]
	ldp	x21, x22, [x0, #8]!
	bl	_globulize
	cbz	w0, LBB0_18
; %bb.7:
	ldr	x8, [sp]
	ldr	x9, [x8, #8]
	cmp	x9, x21
	b.eq	LBB0_10
; %bb.8:
	ldr	x10, [x8, #16]
	cmp	x10, x21
	b.ne	LBB0_10
; %bb.9:
	str	x9, [x8, #16]
LBB0_10:
	ldr	x9, [x8]
	ldrb	w9, [x9]
Lloh4:
	adrp	x10, _sunique@GOTPAGE
Lloh5:
	ldr	x10, [x10, _sunique@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
Lloh7:
	adrp	x11, l_.str.4@PAGE
Lloh8:
	add	x11, x11, l_.str.4@PAGEOFF
Lloh9:
	adrp	x12, l_.str.5@PAGE
Lloh10:
	add	x12, x12, l_.str.5@PAGEOFF
	cmp	x10, #0
	csel	x10, x12, x11, eq
Lloh11:
	adrp	x11, l_.str.3@PAGE
Lloh12:
	add	x11, x11, l_.str.3@PAGEOFF
	cmp	w9, #97
	csel	x20, x11, x10, eq
	cmp	w19, #2
	b.ne	LBB0_13
; %bb.11:
Lloh13:
	adrp	x9, _ntflag@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ntflag@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cbz	x9, LBB0_13
; %bb.12:
	ldr	x0, [x8, #16]
	bl	_dotrans
	ldr	x8, [sp]
	str	x0, [x8, #16]
LBB0_13:
	ldr	x2, [x8, #16]
	cmp	w19, #2
	b.ne	LBB0_16
; %bb.14:
Lloh16:
	adrp	x9, _mapflag@GOTPAGE
Lloh17:
	ldr	x9, [x9, _mapflag@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cbz	x9, LBB0_16
; %bb.15:
	mov	x0, x2
	bl	_domap
	mov	x2, x0
	ldr	x8, [sp]
	str	x0, [x8, #16]
LBB0_16:
	ldr	x1, [x8, #8]
Lloh19:
	adrp	x8, _curtype@GOTPAGE
Lloh20:
	ldr	x8, [x8, _curtype@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _TYPE_I@GOTPAGE
Lloh23:
	ldr	x9, [x9, _TYPE_I@GOTPAGEOFF]
Lloh24:
	adrp	x10, l_.str.7@PAGE
Lloh25:
	add	x10, x10, l_.str.7@PAGEOFF
Lloh26:
	adrp	x11, l_.str.6@PAGE
Lloh27:
	add	x11, x11, l_.str.6@PAGEOFF
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x3, x11, x10, eq
	cmp	x1, x21
	ccmp	x2, x22, #0, eq
	cset	w4, ne
	mov	x0, x20
	bl	_sendrequest
	b	LBB0_19
LBB0_17:
	ldr	x8, [sp]
	ldr	x1, [x8]
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
LBB0_18:
Lloh31:
	adrp	x8, _code@GOTPAGE
Lloh32:
	ldr	x8, [x8, _code@GOTPAGEOFF]
	mov	w9, #-1
Lloh33:
	str	w9, [x8]
LBB0_19:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh28
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"local-file"

l_.str.1:                               ; @.str.1
	.asciz	"remote-file"

l_.str.2:                               ; @.str.2
	.asciz	"usage: %s local-file remote-file\n"

	.comm	_code,4,2                       ; @code
l_.str.3:                               ; @.str.3
	.asciz	"APPE"

	.comm	_sunique,8,3                    ; @sunique
l_.str.4:                               ; @.str.4
	.asciz	"STOU"

l_.str.5:                               ; @.str.5
	.asciz	"STOR"

	.comm	_ntflag,8,3                     ; @ntflag
	.comm	_mapflag,8,3                    ; @mapflag
	.comm	_curtype,8,3                    ; @curtype
	.comm	_TYPE_I,8,3                     ; @TYPE_I
l_.str.6:                               ; @.str.6
	.asciz	"rb"

l_.str.7:                               ; @.str.7
	.asciz	"r"

.subsections_via_symbols
