	.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	%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	%rsi, %rbx
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%edi, -52(%rbp)
	movq	%rsi, -64(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	cmpl	$2, %r13d
	jne	LBB0_2
## %bb.1:
	movl	$3, -52(%rbp)
	movq	8(%rbx), %rax
	movq	%rax, 16(%rbx)
LBB0_9:
	movq	-64(%rbp), %rax
	movq	8(%rax), %rdi
	callq	_globulize
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movq	%rax, %r12
	movq	-64(%rbp), %rcx
	movq	%rax, %rdx
	cmpl	$2, %r13d
	sete	%al
	je	LBB0_12
## %bb.11:
	movq	16(%rcx), %rdx
LBB0_12:
	movq	(%rcx), %rcx
	movq	_sunique@GOTPCREL(%rip), %rsi
	cmpq	$0, (%rsi)
	leaq	L_.str.5(%rip), %rsi
	leaq	L_.str.4(%rip), %rdi
	cmoveq	%rsi, %rdi
	cmpb	$97, (%rcx)
	leaq	L_.str.3(%rip), %rbx
	cmovneq	%rdi, %rbx
	movq	_ntflag@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	setne	%cl
	andb	%al, %cl
	movq	_mapflag@GOTPCREL(%rip), %rsi
	cmpq	$0, (%rsi)
	movzbl	%cl, %r8d
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %r9d
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	callq	_doprocess
	movq	-64(%rbp), %rdx
	movl	$1, %ecx
	cmpq	8(%rdx), %r12
	jne	LBB0_14
## %bb.13:
	xorl	%ecx, %ecx
	cmpq	16(%rdx), %rax
	setne	%cl
LBB0_14:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_sendrequest
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_18
LBB0_2:
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.3:
	movl	%r13d, %eax
	cmpl	$1, %r13d
	jne	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rdx
	leaq	-52(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_another
	testl	%eax, %eax
	je	LBB0_16
## %bb.5:
	movl	-52(%rbp), %eax
LBB0_6:
	cmpl	$2, %eax
	jg	LBB0_15
## %bb.7:
	leaq	L_.str.1(%rip), %rdx
	leaq	-52(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_another
	testl	%eax, %eax
	je	LBB0_16
## %bb.8:
	cmpl	$3, -52(%rbp)
	jle	LBB0_9
	jmp	LBB0_16
LBB0_15:
	cmpl	$3, %eax
	je	LBB0_9
LBB0_16:
	movq	-64(%rbp), %rax
	movq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_UPRINTF
LBB0_17:
	movq	_code@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.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
.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:
	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
	sub	sp, sp, #32
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	stur	w0, [x29, #-44]
	stur	x1, [x29, #-56]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	cmp	w0, #2
	b.ne	LBB0_5
; %bb.1:
	mov	w8, #3
	stur	w8, [x29, #-44]
	ldr	x8, [x1, #8]
	str	x8, [x1, #16]
LBB0_2:
	ldur	x8, [x29, #-56]
	ldr	x0, [x8, #8]
	bl	_globulize
	cbz	x0, LBB0_16
; %bb.3:
	mov	x22, x0
	cmp	w21, #2
	cset	w8, eq
	ldur	x9, [x29, #-56]
	ldr	x10, [x9, #16]
	csel	x2, x0, x10, eq
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _sunique@GOTPAGE
Lloh9:
	ldr	x10, [x10, _sunique@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	adrp	x11, l_.str.4@PAGE
Lloh12:
	add	x11, x11, l_.str.4@PAGEOFF
Lloh13:
	adrp	x12, l_.str.5@PAGE
Lloh14:
	add	x12, x12, l_.str.5@PAGEOFF
	cmp	x10, #0
	csel	x10, x12, x11, eq
Lloh15:
	adrp	x11, l_.str.3@PAGE
Lloh16:
	add	x11, x11, l_.str.3@PAGEOFF
	cmp	w9, #97
	csel	x21, x11, x10, eq
Lloh17:
	adrp	x9, _ntflag@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ntflag@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, #0
	cset	w9, ne
	and	w4, w8, w9
Lloh20:
	adrp	x9, _mapflag@GOTPAGE
Lloh21:
	ldr	x9, [x9, _mapflag@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, #0
	cset	w9, ne
	and	w5, w8, w9
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_doprocess
	mov	x2, x0
	ldur	x8, [x29, #-56]
	ldr	x9, [x8, #8]
	cmp	x22, x9
	b.eq	LBB0_12
; %bb.4:
	mov	w3, #1
	b	LBB0_13
LBB0_5:
	cbz	w21, LBB0_15
; %bb.6:
	mov	x8, x21
	cmp	w21, #1
	b.ne	LBB0_9
; %bb.7:
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	sub	x0, x29, #44
	sub	x1, x29, #56
	bl	_another
	cbz	w0, LBB0_15
; %bb.8:
	ldur	w8, [x29, #-44]
LBB0_9:
	cmp	w8, #2
	b.gt	LBB0_14
; %bb.10:
Lloh25:
	adrp	x2, l_.str.1@PAGE
Lloh26:
	add	x2, x2, l_.str.1@PAGEOFF
	sub	x0, x29, #44
	sub	x1, x29, #56
	bl	_another
	cbz	w0, LBB0_15
; %bb.11:
	ldur	w8, [x29, #-44]
	cmp	w8, #3
	b.le	LBB0_2
	b	LBB0_15
LBB0_12:
	ldr	x8, [x8, #16]
	cmp	x2, x8
	cset	w3, ne
LBB0_13:
	mov	x0, x21
	mov	x1, x22
	bl	_sendrequest
	mov	x0, x22
	bl	_free
	b	LBB0_17
LBB0_14:
	cmp	w8, #3
	b.eq	LBB0_2
LBB0_15:
	ldur	x8, [x29, #-56]
	ldr	x1, [x8]
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_UPRINTF
LBB0_16:
Lloh29:
	adrp	x8, _code@GOTPAGE
Lloh30:
	ldr	x8, [x8, _code@GOTPAGEOFF]
	mov	w9, #-1
Lloh31:
	str	w9, [x8]
LBB0_17:
	ldur	x8, [x29, #-40]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	sub	sp, x29, #32
	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_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.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
.subsections_via_symbols
