	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function increment_rate
_increment_rate:                        ## @increment_rate
	.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	%rcx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movsbl	(%rsi), %edi
	callq	_get_sorting_mode
	movl	%eax, %r13d
	movslq	%eax, %rdx
	movsbl	(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	testl	%r13d, %r13d
	js	LBB0_11
## %bb.1:
	movq	_MAX_RATES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_11
## %bb.2:
	incq	%rbx
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_9
## %bb.3:
	movl	-48(%rbp), %eax
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movl	-44(%rbp), %r12d
	testl	%r12d, %r12d
	jle	LBB0_11
## %bb.5:
	shlq	$32, %r12
	orq	%rax, %r12
	jmp	LBB0_6
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.10:
	movl	-44(%rbp), %r12d
	testl	%r12d, %r12d
	jle	LBB0_11
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	movl	$3, %edi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_vkprintf
	movq	%r12, %rdi
	cmpl	$1, %r13d
	je	LBB0_13
## %bb.7:
	testl	%r13d, %r13d
	jne	LBB0_14
## %bb.8:
	movq	%r15, %rsi
	callq	_do_incr_rate
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	movl	$3, %edi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_vkprintf
LBB0_12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	$11, %edx
LBB0_19:
	callq	_write_out
	xorl	%eax, %eax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r15, %rsi
	callq	_do_incr_rate2
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_12
LBB0_14:
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_do_incr_rate_new
	testl	%eax, %eax
	je	LBB0_12
LBB0_16:
	leaq	-52(%rbp), %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_get_single_rate
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	movl	-52(%rbp), %edx
	leaq	_increment_rate.value(%rip), %rbx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sprintf
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	jmp	LBB0_19
LBB0_17:
	movl	$-1, %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_increment_rate.value,32,4 ## @increment_rate.value
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p = %d, *key=%c\n"

	.comm	_MAX_RATES,4,2                  ## @MAX_RATES
L_.str.1:                               ## @.str.1
	.asciz	"ate%d_%d"

L_.str.2:                               ## @.str.2
	.asciz	"ate%d"

L_.str.3:                               ## @.str.3
	.asciz	"incr: item_id=%lld\n"

L_.str.4:                               ## @.str.4
	.asciz	"%d\r\n"

L_.str.5:                               ## @.str.5
	.asciz	"NOT_FOUND\r\n"

	.no_dead_strip	_increment_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function increment_rate
_increment_rate:                        ; @increment_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x3
	mov	x22, x1
	mov	x19, x0
	ldrsb	w0, [x1]
	bl	_get_sorting_mode
	mov	x20, x0
	sxtw	x2, w20
	ldrsb	x8, [x22]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	bl	_vkprintf
	tbnz	w20, #31, LBB0_11
; %bb.1:
Lloh2:
	adrp	x8, _MAX_RATES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_RATES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ge	LBB0_11
; %bb.2:
	add	x22, x22, #1
	add	x8, sp, #20
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #24
	mov	x0, x22
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_6
; %bb.3:
	ldr	w22, [sp, #24]
	cbz	w22, LBB0_11
; %bb.4:
	ldr	w8, [sp, #20]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.5:
	bfi	x22, x8, #32, #32
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #20
	mov	x0, x22
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_11
; %bb.7:
	ldr	w22, [sp, #20]
	cmp	w22, #1
	b.lt	LBB0_11
LBB0_8:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #3
	mov	x2, x22
	bl	_vkprintf
	mov	x0, x22
	cmp	w20, #1
	b.eq	LBB0_15
; %bb.9:
	cbnz	w20, LBB0_16
; %bb.10:
	mov	x1, x21
	bl	_do_incr_rate
	cbnz	w0, LBB0_17
	b	LBB0_12
LBB0_11:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #3
	mov	x2, #0
	bl	_vkprintf
LBB0_12:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w2, #11
LBB0_13:
	bl	_write_out
	mov	w0, #0
LBB0_14:
	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
	add	sp, sp, #80
	ret
LBB0_15:
	mov	x1, x21
	bl	_do_incr_rate2
	cbnz	w0, LBB0_17
	b	LBB0_12
LBB0_16:
	mov	x1, x20
	mov	x2, x21
	bl	_do_incr_rate_new
	cbz	w0, LBB0_12
LBB0_17:
	add	x0, sp, #28
	mov	x1, x22
	mov	x2, x20
	bl	_get_single_rate
	cbz	w0, LBB0_19
; %bb.18:
	ldr	w2, [sp, #28]
Lloh15:
	adrp	x20, _increment_rate.value@PAGE
Lloh16:
	add	x20, x20, _increment_rate.value@PAGEOFF
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_sprintf
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	b	LBB0_13
LBB0_19:
	mov	w0, #-1
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_increment_rate.value,32,0 ; @increment_rate.value
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p = %d, *key=%c\n"

	.comm	_MAX_RATES,4,2                  ; @MAX_RATES
l_.str.1:                               ; @.str.1
	.asciz	"ate%d_%d"

l_.str.2:                               ; @.str.2
	.asciz	"ate%d"

l_.str.3:                               ; @.str.3
	.asciz	"incr: item_id=%lld\n"

l_.str.4:                               ; @.str.4
	.asciz	"%d\r\n"

l_.str.5:                               ; @.str.5
	.asciz	"NOT_FOUND\r\n"

	.no_dead_strip	_increment_rate
.subsections_via_symbols
