	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_validate_key_group             ## -- Begin function validate_key_group
	.p2align	4, 0x90
_validate_key_group:                    ## @validate_key_group
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
	movq	%rcx, %r13
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_strlen
	movl	%eax, %ecx
	movq	_KEY_LEN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	cltd
	idivl	%r8d
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_LOG_WARNINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	xorl	%r12d, %r12d
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dl_log_add
	jmp	LBB0_18
LBB0_2:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	cmpl	%r14d, %eax
	jne	LBB0_5
## %bb.3:
	testl	%eax, %eax
	jle	LBB0_5
## %bb.4:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r14d, %r15d
	je	LBB0_12
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	%r15d, %r12d
	leal	1(%r12), %r15d
	cmpl	%r14d, %r15d
	jge	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	incl	%r13d
	cmpl	%r13d, %r14d
	movq	_KEY_LEN@GOTPCREL(%rip), %rsi
	je	LBB0_6
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rsi), %edx
	movl	%edx, %eax
	imull	%r12d, %eax
	movslq	%eax, %rdi
	addq	%rbx, %rdi
	movl	%edx, %eax
	imull	%r13d, %eax
	movslq	%eax, %rsi
	addq	%rbx, %rsi
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	_LOG_WARNINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_dl_log_add
	jmp	LBB0_11
LBB0_5:
	movq	_LOG_WARNINGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rdx
	xorl	%r12d, %r12d
	movl	$1, %esi
	movl	%eax, %ecx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_dl_log_add
	jmp	LBB0_18
LBB0_12:
	movl	%r14d, %edi
	callq	_qkey_group_alloc
	movq	%rax, %r12
	testl	%r14d, %r14d
	jle	LBB0_18
## %bb.13:
	movl	%r14d, %r14d
	shlq	$2, %r14
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%r15d
	addq	$4, %r13
	cmpq	%r13, %r14
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	_KEY_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	%r15d, %rdi
	imulq	%rax, %rdi
	addq	%rbx, %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r13), %ecx
	movq	8(%r12), %r9
	addq	%r13, %r9
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_validate_key
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%r13,2)
	movq	(%r12), %rax
	movq	(%rax,%r13,2), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$0, 4(%rax)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_utime
	movq	(%r12), %rcx
	movq	(%rcx,%r13,2), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_17
LBB0_18:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_LEN,4,2                    ## @KEY_LEN
	.comm	_LOG_WARNINGS,4,2               ## @LOG_WARNINGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed : 2. kn %% KEY_LEN : %d %% %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed : 2. kn != req_ts_n || kn <= 0 : %d != %d || %d <= 0\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed : 2. Key %d == key %d\n"

	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_validate_key_group             ; -- Begin function validate_key_group
	.p2align	2
_validate_key_group:                    ; @validate_key_group
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x24, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_strlen
Lloh0:
	adrp	x28, _KEY_LEN@GOTPAGE
Lloh1:
	ldr	x28, [x28, _KEY_LEN@GOTPAGEOFF]
	ldr	w4, [x28]
	sdiv	w3, w0, w4
	msub	w9, w3, w4, w0
	cbz	w9, LBB0_2
; %bb.1:
	mov	x8, x0
Lloh2:
	adrp	x9, _LOG_WARNINGS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LOG_WARNINGS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	mov	x3, x8
	b	LBB0_4
LBB0_2:
	cmp	w3, w24
	ccmp	w3, #1, #8, eq
	b.ge	LBB0_6
; %bb.3:
Lloh7:
	adrp	x8, _LOG_WARNINGS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LOG_WARNINGS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	str	x3, [sp]
	mov	w1, #1
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x24
LBB0_4:
	bl	_dl_log_add
	mov	x25, #0
LBB0_5:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	str	w19, [sp, #28]                  ; 4-byte Folded Spill
	mov	w19, #0
Lloh12:
	adrp	x20, _LOG_WARNINGS@GOTPAGE
Lloh13:
	ldr	x20, [x20, _LOG_WARNINGS@GOTPAGEOFF]
Lloh14:
	adrp	x25, l_.str.2@PAGE
Lloh15:
	add	x25, x25, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	cmp	w19, w24
	b.eq	LBB0_13
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	x26, x19
	add	w19, w19, #1
	cmp	w19, w24
	b.ge	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x27, x19
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	w27, w27, #1
	cmp	w24, w27
	b.eq	LBB0_7
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x28]
	mul	w8, w2, w26
	add	x0, x23, w8, sxtw
	mul	w8, w2, w27
	add	x1, x23, w8, sxtw
	bl	_memcmp
	cbnz	w0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w0, [x20]
	mov	w1, #1
	mov	x2, x25
	mov	x3, x26
	mov	x4, x27
	bl	_dl_log_add
	b	LBB0_10
LBB0_13:
	mov	x0, x24
	bl	_qkey_group_alloc
	mov	x25, x0
	cmp	w24, #1
	b.lt	LBB0_5
; %bb.14:
	mov	x19, #0
	mov	w24, w24
Lloh16:
	adrp	x20, _CLOCK_MONOTONIC@GOTPAGE
Lloh17:
	ldr	x20, [x20, _CLOCK_MONOTONIC@GOTPAGEOFF]
	ldr	w26, [sp, #28]                  ; 4-byte Folded Reload
	ldr	x27, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x19, x19, #1
	cmp	x19, x24
	b.eq	LBB0_5
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x28]
	sxtw	x9, w19
	madd	x0, x8, x9, x23
	lsl	x8, x19, #2
	ldr	w3, [x27, x8]
	ldr	x9, [x25, #8]
	add	x5, x9, x8
	mov	x1, x22
	mov	x2, x21
	mov	x4, x26
	bl	_validate_key
	ldr	x8, [x25]
	lsl	x9, x19, #3
	str	x0, [x8, x9]
	ldr	x8, [x25]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x8, #4]
	cbnz	w8, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x20]
	bl	_get_utime
	ldr	x8, [x25]
	ldr	x8, [x8, x19, lsl #3]
	str	w0, [x8]
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_LEN,4,2                    ; @KEY_LEN
	.comm	_LOG_WARNINGS,4,2               ; @LOG_WARNINGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed : 2. kn %% KEY_LEN : %d %% %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed : 2. kn != req_ts_n || kn <= 0 : %d != %d || %d <= 0\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed : 2. Key %d == key %d\n"

	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
.subsections_via_symbols
