	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_store                          ## -- Begin function store
	.p2align	4, 0x90
_store:                                 ## @store
	.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
	movq	%rdi, %r15
	movq	%rdi, -48(%rbp)
	cmpb	$97, (%rsi)
	sete	%r13b
	jne	LBB0_7
## %bb.1:
	testl	%edx, %edx
	je	LBB0_3
## %bb.2:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_syslog
LBB0_3:
	movq	_guest@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.4:
	movq	_noguestmod@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_7:
	testl	%edx, %edx
	je	LBB0_8
LBB0_9:
	movq	_restart_point@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_10
LBB0_8:
	movb	$1, %r13b
LBB0_10:
	movq	_guest@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_restart_point@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	je	LBB0_15
## %bb.11:
	movq	_noguestmod@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_15
## %bb.12:
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movl	$550, %edi                      ## imm = 0x226
	xorl	%eax, %eax
	callq	_reply
	jmp	LBB0_22
LBB0_15:
	testq	%rax, %rax
	leaq	L_.str.3(%rip), %r14
	cmoveq	%rbx, %r14
	testb	%r13b, %r13b
	je	LBB0_16
## %bb.18:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_fopen
	movq	%rax, %r13
	movb	$1, %al
	testq	%r13, %r13
	jne	LBB0_23
LBB0_20:
	movq	-48(%rbp), %rsi
	movl	$553, %edi                      ## imm = 0x229
	callq	_perror_reply
	jmp	LBB0_21
LBB0_13:
	movq	%rbx, %r14
LBB0_16:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_guniquefd
	testl	%eax, %eax
	js	LBB0_21
## %bb.17:
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_fdopen
	movq	%rax, %r13
	xorl	%eax, %eax
	testq	%r13, %r13
	je	LBB0_20
LBB0_23:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_byte_count@GOTPCREL(%rip), %rbx
	movl	$-1, (%rbx)
	movq	(%r12), %r15
	testq	%r15, %r15
	je	LBB0_33
## %bb.24:
	movq	_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_TYPE_A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_32
## %bb.25:
	testq	%r15, %r15
	jle	LBB0_30
## %bb.26:
	xorl	%ebx, %ebx
	movq	_EOF@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_getc
	cmpl	(%r12), %eax
	je	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=1
	xorl	%ecx, %ecx
	cmpl	$10, %eax
	sete	%cl
	addq	%rcx, %rbx
	incq	%rbx
	cmpq	%r15, %rbx
	jl	LBB0_27
LBB0_30:
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_fseeko
	testq	%rax, %rax
	movq	_byte_count@GOTPCREL(%rip), %rbx
	jns	LBB0_33
LBB0_31:
	movq	-48(%rbp), %rsi
	movl	$550, %edi                      ## imm = 0x226
	callq	_perror_reply
	jmp	LBB0_39
LBB0_21:
	movq	%r14, %rbx
LBB0_22:
	cmpb	$97, (%rbx)
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.8(%rip), %rdi
	cmoveq	%rax, %rdi
	movq	-48(%rbp), %rsi
	callq	_LOGCMD
	jmp	LBB0_40
LBB0_32:
	movq	%r13, %rdi
	callq	_fileno
	movq	(%r12), %rsi
	movq	_L_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_lseek
	testq	%rax, %rax
	js	LBB0_31
LBB0_33:
	movq	-48(%rbp), %rdi
	leaq	L_.str.4(%rip), %rdx
	movl	$-1, %esi
	callq	_dataconn
	testq	%rax, %rax
	je	LBB0_39
## %bb.34:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_receive_data
	testq	%rax, %rax
	jne	LBB0_38
## %bb.35:
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_36
## %bb.37:
	leaq	L_.str.6(%rip), %rsi
	movl	$226, %edi
	xorl	%eax, %eax
	callq	_reply
	jmp	LBB0_38
LBB0_28:
	movq	-48(%rbp), %rsi
	movl	$550, %edi                      ## imm = 0x226
	callq	_perror_reply
	movq	_byte_count@GOTPCREL(%rip), %rbx
	jmp	LBB0_39
LBB0_36:
	movq	-48(%rbp), %rdx
	leaq	L_.str.5(%rip), %rsi
	movl	$226, %edi
	xorl	%eax, %eax
	callq	_reply
LBB0_38:
	movq	%r15, %rdi
	callq	_fclose
	movq	_data@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movq	_pdata@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
LBB0_39:
	cmpb	$97, (%r14)
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.8(%rip), %rdi
	cmoveq	%rax, %rdi
	movq	-48(%rbp), %rsi
	movl	(%rbx), %edx
	callq	_LOGBYTES
	movq	%r13, %rdi
	callq	_fclose
LBB0_40:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Internal: unique flag to APPE"

	.comm	_guest,8,3                      ## @guest
	.comm	_noguestmod,8,3                 ## @noguestmod
L_.str.1:                               ## @.str.1
	.asciz	"Appending to existing file denied."

	.comm	_restart_point,8,3              ## @restart_point
L_.str.2:                               ## @.str.2
	.asciz	"Modifying existing file denied."

L_.str.3:                               ## @.str.3
	.asciz	"r+"

	.comm	_byte_count,4,2                 ## @byte_count
	.comm	_type,8,3                       ## @type
	.comm	_TYPE_A,8,3                     ## @TYPE_A
	.comm	_EOF,4,2                        ## @EOF
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_L_SET,4,2                      ## @L_SET
L_.str.4:                               ## @.str.4
	.asciz	"r"

L_.str.5:                               ## @.str.5
	.asciz	"Transfer complete (unique file name:%s)."

L_.str.6:                               ## @.str.6
	.asciz	"Transfer complete."

	.comm	_data,4,2                       ## @data
	.comm	_pdata,4,2                      ## @pdata
L_.str.7:                               ## @.str.7
	.asciz	"append"

L_.str.8:                               ## @.str.8
	.asciz	"put"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_store                          ; -- Begin function store
	.p2align	2
_store:                                 ; @store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	str	x0, [sp, #8]
	ldrb	w8, [x1]
Lloh0:
	adrp	x21, _restart_point@GOTPAGE
Lloh1:
	ldr	x21, [x21, _restart_point@GOTPAGEOFF]
Lloh2:
	adrp	x23, _guest@GOTPAGE
Lloh3:
	ldr	x23, [x23, _guest@GOTPAGEOFF]
Lloh4:
	adrp	x24, _noguestmod@GOTPAGE
Lloh5:
	ldr	x24, [x24, _noguestmod@GOTPAGEOFF]
	cmp	w8, #97
	cset	w22, eq
	b.ne	LBB0_5
; %bb.1:
	cbz	w2, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
LBB0_3:
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_6
; %bb.4:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_5:
	cbz	w2, LBB0_7
LBB0_6:
	str	xzr, [x21]
	b	LBB0_8
LBB0_7:
	mov	w22, #1
LBB0_8:
	ldr	x9, [x23]
	ldr	x10, [x24]
	ldr	x8, [x21]
	cmp	x9, #0
	ccmp	x10, #0, #4, ne
	b.ne	LBB0_12
; %bb.9:
Lloh13:
	adrp	x9, l_.str.3@PAGE
Lloh14:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x19, x19, x9, eq
	tbz	w22, #0, LBB0_15
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	bl	_fopen
	mov	x20, x0
	mov	w23, #1
	cbnz	x20, LBB0_17
LBB0_11:
	ldr	x1, [sp, #8]
	mov	w0, #553
	bl	_perror_reply
	b	LBB0_25
LBB0_12:
	cbz	x8, LBB0_15
; %bb.13:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
	mov	w0, #550
	bl	_reply
	b	LBB0_25
LBB0_15:
	add	x1, sp, #8
	mov	x0, x20
	bl	_guniquefd
	tbnz	w0, #31, LBB0_25
; %bb.16:
	mov	x1, x19
	bl	_fdopen
	mov	x20, x0
	mov	w23, #0
	cbz	x20, LBB0_11
LBB0_17:
Lloh17:
	adrp	x22, _byte_count@GOTPAGE
Lloh18:
	ldr	x22, [x22, _byte_count@GOTPAGEOFF]
	mov	w8, #-1
	str	w8, [x22]
	ldr	x24, [x21]
	cbz	x24, LBB0_27
; %bb.18:
Lloh19:
	adrp	x8, _type@GOTPAGE
Lloh20:
	ldr	x8, [x8, _type@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _TYPE_A@GOTPAGE
Lloh23:
	ldr	x9, [x9, _TYPE_A@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.19:
	cmp	x24, #1
	b.lt	LBB0_23
; %bb.20:
	mov	x21, #0
Lloh25:
	adrp	x25, _EOF@GOTPAGE
Lloh26:
	ldr	x25, [x25, _EOF@GOTPAGEOFF]
	mov	w26, #1
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_getc
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	cmp	w0, #10
	cinc	x8, x26, eq
	add	x21, x8, x21
	cmp	x21, x24
	b.lt	LBB0_21
LBB0_23:
Lloh27:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_fseeko
	tbz	x0, #63, LBB0_27
LBB0_24:
	ldr	x1, [sp, #8]
	mov	w0, #550
	bl	_perror_reply
	b	LBB0_34
LBB0_25:
Lloh30:
	adrp	x8, l_.str.8@PAGE
Lloh31:
	add	x8, x8, l_.str.8@PAGEOFF
	ldrb	w9, [x19]
Lloh32:
	adrp	x10, l_.str.7@PAGE
Lloh33:
	add	x10, x10, l_.str.7@PAGEOFF
	cmp	w9, #97
	csel	x0, x10, x8, eq
	ldr	x1, [sp, #8]
	bl	_LOGCMD
	b	LBB0_35
LBB0_26:
	mov	x0, x20
	bl	_fileno
	ldr	x1, [x21]
Lloh34:
	adrp	x8, _L_SET@GOTPAGE
Lloh35:
	ldr	x8, [x8, _L_SET@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	bl	_lseek
	tbnz	x0, #63, LBB0_24
LBB0_27:
	ldr	x0, [sp, #8]
Lloh37:
	adrp	x2, l_.str.4@PAGE
Lloh38:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w1, #-1
	bl	_dataconn
	cbz	x0, LBB0_34
; %bb.28:
	mov	x21, x0
	mov	x1, x20
	bl	_receive_data
	cbnz	x0, LBB0_33
; %bb.29:
	tbz	w23, #0, LBB0_31
; %bb.30:
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_32
LBB0_31:
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_32:
	mov	w0, #226
	bl	_reply
LBB0_33:
	mov	x0, x21
	bl	_fclose
Lloh43:
	adrp	x8, _data@GOTPAGE
Lloh44:
	ldr	x8, [x8, _data@GOTPAGEOFF]
	mov	w9, #-1
Lloh45:
	str	w9, [x8]
Lloh46:
	adrp	x8, _pdata@GOTPAGE
Lloh47:
	ldr	x8, [x8, _pdata@GOTPAGEOFF]
Lloh48:
	str	w9, [x8]
LBB0_34:
	ldrb	w8, [x19]
Lloh49:
	adrp	x9, l_.str.8@PAGE
Lloh50:
	add	x9, x9, l_.str.8@PAGEOFF
Lloh51:
	adrp	x10, l_.str.7@PAGE
Lloh52:
	add	x10, x10, l_.str.7@PAGEOFF
	cmp	w8, #97
	csel	x0, x10, x9, eq
	ldr	x1, [sp, #8]
	ldr	w2, [x22]
	bl	_LOGBYTES
	mov	x0, x20
	bl	_fclose
LBB0_35:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotStr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Internal: unique flag to APPE"

	.comm	_guest,8,3                      ; @guest
	.comm	_noguestmod,8,3                 ; @noguestmod
l_.str.1:                               ; @.str.1
	.asciz	"Appending to existing file denied."

	.comm	_restart_point,8,3              ; @restart_point
l_.str.2:                               ; @.str.2
	.asciz	"Modifying existing file denied."

l_.str.3:                               ; @.str.3
	.asciz	"r+"

	.comm	_byte_count,4,2                 ; @byte_count
	.comm	_type,8,3                       ; @type
	.comm	_TYPE_A,8,3                     ; @TYPE_A
	.comm	_EOF,4,2                        ; @EOF
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_L_SET,4,2                      ; @L_SET
l_.str.4:                               ; @.str.4
	.asciz	"r"

l_.str.5:                               ; @.str.5
	.asciz	"Transfer complete (unique file name:%s)."

l_.str.6:                               ; @.str.6
	.asciz	"Transfer complete."

	.comm	_data,4,2                       ; @data
	.comm	_pdata,4,2                      ; @pdata
l_.str.7:                               ; @.str.7
	.asciz	"append"

l_.str.8:                               ; @.str.8
	.asciz	"put"

.subsections_via_symbols
