	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memcache_store                 ## -- Begin function memcache_store
	.p2align	4, 0x90
_memcache_store:                        ## @memcache_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movl	16(%rbp), %r15d
	leaq	L_.str(%rip), %rdi
	movq	%rdx, %rsi
	movl	%ecx, %edx
	movl	%r15d, %ecx
	callq	_hst
	movq	_MAX_VALUE_LEN@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r15d, (%rax)
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-2, %esi
	callq	_RETURN
LBB0_2:
	leaq	-48(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_eat_at
	cmpl	$12, -60(%rbp)
	jl	LBB0_24
## %bb.3:
	movq	-48(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$7, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	-48(%rbp), %rdi
	addq	$7, %rdi
	movq	_mode_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_mode@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	movl	$5, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	_buf@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_safe_read_in
	movq	-48(%rbp), %rdi
	addq	$12, %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	leaq	-56(%rbp), %r8
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rax
	movslq	-56(%rbp), %rcx
	cmpb	$0, 12(%rcx,%rax)
	je	LBB0_8
LBB0_7:
	movq	_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_RETURN
LBB0_8:
	movl	-52(%rbp), %edi
	movl	-36(%rbp), %esi
	movl	(%rbx), %edx
	callq	_do_change_photo
	movq	_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_RETURN
LBB0_9:
	cmpl	$12, -60(%rbp)
	jl	LBB0_24
## %bb.10:
	movq	-48(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$12, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movq	_buf@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_safe_read_in
	movq	-48(%rbp), %rdi
	addq	$12, %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	leaq	-56(%rbp), %r8
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$2, %eax
	jl	LBB0_13
## %bb.12:
	movq	-48(%rbp), %rax
	movslq	-56(%rbp), %rcx
	cmpb	$0, 12(%rcx,%rax)
	je	LBB0_14
LBB0_13:
	movq	_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_RETURN
LBB0_14:
	movl	-52(%rbp), %edi
	movl	-36(%rbp), %esi
	movl	(%rbx), %edx
	callq	_do_change_album
	movq	_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_RETURN
LBB0_15:
	cmpl	$22, -60(%rbp)
	jl	LBB0_24
## %bb.16:
	movq	-48(%rbp), %rdi
	movq	_mode_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_mode@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	movl	$5, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_24
## %bb.17:
	movq	-48(%rbp), %rdi
	addq	$5, %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	$17, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_24
## %bb.18:
	movl	$-1, -36(%rbp)
	movq	-48(%rbp), %rdi
	addq	$22, %rdi
	leaq	L_.str.5(%rip), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_20
## %bb.19:
	movq	-48(%rbp), %rax
	movslq	-36(%rbp), %rcx
	cmpb	$0, 22(%rcx,%rax)
	je	LBB0_21
LBB0_20:
	movq	_get@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-2, %esi
	callq	_RETURN
LBB0_21:
	movq	%r14, %rdi
	callq	_MESSAGE
	movl	-52(%rbp), %edx
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_msg_reinit
	testq	%rax, %rax
	jns	LBB0_23
## %bb.22:
	movq	_get@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-2, %esi
	callq	_RETURN
LBB0_23:
	movq	%r14, %rdi
	callq	_MESSAGE
	movl	%eax, %edi
	callq	_msg_get_buf
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_safe_read_in
	movq	_get@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_RETURN
LBB0_24:
	movq	_set@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-2, %esi
	callq	_RETURN
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INIT,4,2                       ## @INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memcache_store: key='%s', key_len=%d, value_len=%d\n"

	.comm	_MAX_VALUE_LEN,4,2              ## @MAX_VALUE_LEN
	.comm	_set,4,2                        ## @set
L_.str.1:                               ## @.str.1
	.asciz	"change_"

	.comm	_mode_names,8,3                 ## @mode_names
	.comm	_mode,8,3                       ## @mode
	.comm	_buf,4,2                        ## @buf
L_.str.2:                               ## @.str.2
	.asciz	"%d,%d%n"

L_.str.3:                               ## @.str.3
	.asciz	"change_album"

L_.str.4:                               ## @.str.4
	.asciz	"s_overview_albums"

L_.str.5:                               ## @.str.5
	.asciz	"%*d,%d%n"

	.comm	_get,4,2                        ## @get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memcache_store                 ; -- Begin function memcache_store
	.p2align	2
_memcache_store:                        ; @memcache_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x6
	mov	x21, x3
	mov	x22, x2
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	mov	x2, x3
	mov	x3, x6
	bl	_hst
Lloh2:
	adrp	x8, _MAX_VALUE_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_VALUE_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w0, le
	bl	_unlikely
Lloh5:
	adrp	x23, _set@GOTPAGE
Lloh6:
	ldr	x23, [x23, _set@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x23]
	mov	w1, #-2
	bl	_RETURN
LBB0_2:
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x22
	mov	x1, x21
	bl	_eat_at
	ldr	w8, [sp, #20]
	cmp	w8, #12
	b.lt	LBB0_24
; %bb.3:
	ldr	x0, [sp, #24]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #7
	bl	_strncmp
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	x8, [sp, #24]
	add	x0, x8, #7
Lloh9:
	adrp	x8, _mode_names@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mode_names@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _mode@GOTPAGE
Lloh13:
	ldr	x9, [x9, _mode@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	x1, [x8, x9, lsl #3]
	mov	w2, #5
	bl	_strncmp
	cbnz	w0, LBB0_9
; %bb.5:
Lloh15:
	adrp	x21, _buf@GOTPAGE
Lloh16:
	ldr	x21, [x21, _buf@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	mov	x2, x19
	bl	_safe_read_in
	ldr	x8, [sp, #24]
	add	x0, x8, #12
	add	x8, sp, #8
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #16
	add	x3, sp, #12
	bl	_sscanf
	cmp	w0, #2
	b.lt	LBB0_7
; %bb.6:
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #8]
	add	x8, x9, x8
	ldrb	w8, [x8, #12]
	cbz	w8, LBB0_8
LBB0_7:
	ldr	w0, [x23]
	mov	w1, #0
	bl	_RETURN
LBB0_8:
	ldp	w1, w0, [sp, #12]
	ldr	w2, [x21]
	bl	_do_change_photo
	mov	x1, x0
	ldr	w0, [x23]
	bl	_RETURN
LBB0_9:
	ldr	w8, [sp, #20]
	cmp	w8, #12
	b.lt	LBB0_24
; %bb.10:
	ldr	x0, [sp, #24]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #12
	bl	_strncmp
	cbnz	w0, LBB0_15
; %bb.11:
Lloh21:
	adrp	x21, _buf@GOTPAGE
Lloh22:
	ldr	x21, [x21, _buf@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	mov	x2, x19
	bl	_safe_read_in
	ldr	x8, [sp, #24]
	add	x0, x8, #12
	add	x8, sp, #8
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #16
	add	x3, sp, #12
	bl	_sscanf
	cmp	w0, #2
	b.lt	LBB0_13
; %bb.12:
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #8]
	add	x8, x9, x8
	ldrb	w8, [x8, #12]
	cbz	w8, LBB0_14
LBB0_13:
	ldr	w0, [x23]
	mov	w1, #0
	bl	_RETURN
LBB0_14:
	ldp	w1, w0, [sp, #12]
	ldr	w2, [x21]
	bl	_do_change_album
	mov	x1, x0
	ldr	w0, [x23]
	bl	_RETURN
LBB0_15:
	ldr	w8, [sp, #20]
	cmp	w8, #22
	b.lt	LBB0_24
; %bb.16:
	ldr	x0, [sp, #24]
Lloh25:
	adrp	x8, _mode_names@GOTPAGE
Lloh26:
	ldr	x8, [x8, _mode_names@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _mode@GOTPAGE
Lloh29:
	ldr	x9, [x9, _mode@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	ldr	x1, [x8, x9, lsl #3]
	mov	w2, #5
	bl	_strncmp
	cbnz	w0, LBB0_24
; %bb.17:
	ldr	x8, [sp, #24]
	add	x0, x8, #5
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #17
	bl	_strncmp
	cbnz	w0, LBB0_24
; %bb.18:
	mov	w8, #-1
	str	w8, [sp, #12]
	ldr	x8, [sp, #24]
	add	x0, x8, #22
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #16
	add	x3, sp, #12
	bl	_sscanf
Lloh35:
	adrp	x21, _get@GOTPAGE
Lloh36:
	ldr	x21, [x21, _get@GOTPAGEOFF]
	cmp	w0, #1
	b.ne	LBB0_20
; %bb.19:
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp, #12]
	add	x8, x9, x8
	ldrb	w8, [x8, #22]
	cbz	w8, LBB0_21
LBB0_20:
	ldr	w0, [x21]
	mov	w1, #-2
	bl	_RETURN
LBB0_21:
	mov	x0, x20
	bl	_MESSAGE
	ldr	w2, [sp, #16]
	mov	x1, x19
	bl	_msg_reinit
	tbz	x0, #63, LBB0_23
; %bb.22:
	ldr	w0, [x21]
	mov	w1, #-2
	bl	_RETURN
LBB0_23:
	mov	x0, x20
	bl	_MESSAGE
	bl	_msg_get_buf
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_safe_read_in
	ldr	w0, [x21]
	mov	w1, #1
	bl	_RETURN
LBB0_24:
	ldr	w0, [x23]
	mov	w1, #-2
	bl	_RETURN
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_INIT,4,2                       ; @INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memcache_store: key='%s', key_len=%d, value_len=%d\n"

	.comm	_MAX_VALUE_LEN,4,2              ; @MAX_VALUE_LEN
	.comm	_set,4,2                        ; @set
l_.str.1:                               ; @.str.1
	.asciz	"change_"

	.comm	_mode_names,8,3                 ; @mode_names
	.comm	_mode,8,3                       ; @mode
	.comm	_buf,4,2                        ; @buf
l_.str.2:                               ; @.str.2
	.asciz	"%d,%d%n"

l_.str.3:                               ; @.str.3
	.asciz	"change_album"

l_.str.4:                               ; @.str.4
	.asciz	"s_overview_albums"

l_.str.5:                               ; @.str.5
	.asciz	"%*d,%d%n"

	.comm	_get,4,2                        ; @get
.subsections_via_symbols
