	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_store_res_group_mode           ## -- Begin function store_res_group_mode
	.p2align	4, 0x90
_store_res_group_mode:                  ## @store_res_group_mode
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	movq	_R_tot@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_Q_limit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	cmpl	$601, %eax                      ## imm = 0x259
	movl	$600, %esi                      ## imm = 0x258
	cmovgel	%eax, %esi
	movq	_hm@GOTPCREL(%rip), %rdi
	callq	_hashmap_ll_int_init
	testl	%eax, %eax
	je	LBB0_26
LBB0_2:
	movq	%r14, %rdi
	callq	_get_hash_item
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_R_tot_undef_hash@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_4:
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	%xmm1, -72(%rbp)
	movq	_R_cnt@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edx
	movq	_Q_limit@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	cmpl	%ecx, %edx
	jne	LBB0_6
## %bb.5:
	movq	_RR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%rax), %xmm0
	ucomisd	%xmm0, %xmm1
	jae	LBB0_25
LBB0_6:
	movq	_hm@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)
	movq	%r14, -64(%rbp)
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.7:
	movq	_hm@GOTPCREL(%rip), %r15
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_hashmap_ll_int_get
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	24(%r15), %rax
	movslq	-44(%rbp), %rcx
	shlq	$4, %rcx
	movslq	(%rax,%rcx), %rbx
	cmpq	$-1, %rbx
	je	LBB0_17
## %bb.9:
	testl	%ebx, %ebx
	setg	%al
	movq	_R_cnt@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	setle	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_RR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%rax,%rbx,8), %xmm0
	ucomisd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	jbe	LBB0_25
## %bb.10:
	movl	-44(%rbp), %edx
	leaq	-72(%rbp), %rdi
	movl	%ebx, %esi
	callq	_heapify_front
	jmp	LBB0_25
LBB0_14:
	movq	_R_tot_groups@GOTPCREL(%rip), %rsi
	incl	(%rsi)
	cmpl	%ecx, %edx
	jne	LBB0_18
LBB0_16:
	movq	24(%r12), %rax
LBB0_17:
	movq	_RS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx), %rcx
	shlq	$4, %rcx
	movl	$-1, (%rax,%rcx)
	movl	-44(%rbp), %edx
	leaq	-72(%rbp), %rdi
	movl	$1, %esi
	callq	_heapify_front
	jmp	LBB0_25
LBB0_11:
	movq	_R_tot_groups@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	8(%r15), %rax
	cmpq	16(%r15), %rax
	jl	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	_rebuild_hashmap
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_hashmap_ll_int_get
	movq	8(%r15), %rax
LBB0_13:
	incq	%rax
	movq	%rax, 8(%r15)
	movq	24(%r15), %rcx
	movslq	-44(%rbp), %rax
	movq	%rax, %rdx
	shlq	$4, %rdx
	movq	%rbx, 8(%rcx,%rdx)
	movq	_R_cnt@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edx
	movl	(%r13), %ecx
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	cmpl	%ecx, %edx
	je	LBB0_16
LBB0_18:
	leal	1(%rdx), %ecx
	movl	%ecx, (%rdi)
	testl	%edx, %edx
	jle	LBB0_24
## %bb.19:
	movq	_RR@GOTPCREL(%rip), %r10
	movq	(%r10), %rbx
	movq	_R@GOTPCREL(%rip), %r8
	movq	_RS@GOTPCREL(%rip), %r9
	movl	%ecx, %edx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	shrl	%edx
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%rbx,%rdx,8), %xmm0
	ucomisd	%xmm1, %xmm0
	jae	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	(%r8), %rbx
	movq	(%rbx,%rdx,8), %rsi
	movl	%ecx, %edi
	movq	%rsi, (%rbx,%rdi,8)
	movq	(%r10), %rbx
	movq	(%rbx,%rdx,8), %rsi
	movq	%rsi, (%rbx,%rdi,8)
	movq	24(%r12), %r11
	movq	(%r9), %rax
	movq	(%rax,%rdx,8), %rsi
	movq	%rsi, (%rax,%rdi,8)
	shlq	$4, %rsi
	movl	%ecx, (%r11,%rsi)
	cmpl	$3, %ecx
	movl	%edx, %ecx
	ja	LBB0_20
	jmp	LBB0_23
LBB0_21:
	movl	%ecx, %edx
LBB0_23:
	movq	-64(%rbp), %r14
	movl	-44(%rbp), %eax
	movl	%edx, %ecx
LBB0_24:
	movq	_R@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	%ecx, %rcx
	movq	%r14, (%rdx,%rcx,8)
	cvttsd2si	%xmm1, %rdx
	movq	_RR@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rdx, (%rsi,%rcx,8)
	movq	24(%r12), %rdx
	cltq
	movq	_RS@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rax, (%rsi,%rcx,8)
	shlq	$4, %rax
	movl	%ecx, (%rdx,%rax)
LBB0_25:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	leaq	L_.str(%rip), %rdi
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_R_tot,4,2                      ## @R_tot
	.comm	_Q_limit,4,2                    ## @Q_limit
	.comm	_hm,32,3                        ## @hm
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not enough memory for allocate hash table\n"

	.comm	_R_tot_undef_hash,4,2           ## @R_tot_undef_hash
	.comm	_R_cnt,4,2                      ## @R_cnt
	.comm	_RR,8,3                         ## @RR
	.comm	_RS,8,3                         ## @RS
	.comm	_R_tot_groups,4,2               ## @R_tot_groups
	.comm	_R,8,3                          ## @R
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_store_res_group_mode           ; -- Begin function store_res_group_mode
	.p2align	2
_store_res_group_mode:                  ; @store_res_group_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 b8, -72
	.cfi_offset b9, -80
	fmov	d8, d0
	mov	x19, x0
Lloh0:
	adrp	x8, _R_tot@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R_tot@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x24, _Q_limit@GOTPAGE
Lloh4:
	ldr	x24, [x24, _Q_limit@GOTPAGEOFF]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x24]
	lsl	w8, w8, #1
	mov	w9, #600
	cmp	w8, #600
	csel	w1, w8, w9, gt
Lloh5:
	adrp	x0, _hm@GOTPAGE
Lloh6:
	ldr	x0, [x0, _hm@GOTPAGEOFF]
	bl	_hashmap_ll_int_init
	cbz	w0, LBB0_25
LBB0_2:
	mov	x0, x19
	bl	_get_hash_item
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _R_tot_undef_hash@GOTPAGE
Lloh8:
	ldr	x8, [x8, _R_tot_undef_hash@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_4:
	str	d8, [sp, #16]
Lloh9:
	adrp	x23, _R_cnt@GOTPAGE
Lloh10:
	ldr	x23, [x23, _R_cnt@GOTPAGEOFF]
	ldr	w11, [x23]
	ldr	w8, [x24]
	cmp	w11, w8
	b.ne	LBB0_6
; %bb.5:
Lloh11:
	adrp	x9, _RR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RR@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	d0, [x9, #8]
	scvtf	d0, d0
	fcmp	d0, d8
	b.ls	LBB0_24
LBB0_6:
Lloh14:
	adrp	x22, _hm@GOTPAGE
Lloh15:
	ldr	x22, [x22, _hm@GOTPAGEOFF]
	ldr	w9, [x22]
	str	w9, [sp, #12]
	str	x19, [sp, #24]
	cbz	x20, LBB0_11
; %bb.7:
Lloh16:
	adrp	x21, _hm@GOTPAGE
Lloh17:
	ldr	x21, [x21, _hm@GOTPAGEOFF]
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_hashmap_ll_int_get
	cbz	x0, LBB0_14
; %bb.8:
	ldr	x8, [x21, #24]
	ldrsw	x9, [sp, #12]
	lsl	x9, x9, #4
	ldrsw	x19, [x8, x9]
	cmn	w19, #1
	b.eq	LBB0_13
; %bb.9:
	cmp	w19, #0
	ldr	w8, [x23]
	ccmp	w19, w8, #0, gt
	cset	w0, le
	bl	_assert
Lloh18:
	adrp	x8, _RR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RR@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	d0, [x8, x19, lsl #3]
	scvtf	d0, d0
	fcmp	d0, d8
	b.le	LBB0_24
; %bb.10:
	ldr	w2, [sp, #12]
	add	x0, sp, #16
	mov	x1, x19
	bl	_heapify_front
	b	LBB0_24
LBB0_11:
Lloh21:
	adrp	x10, _R_tot_groups@GOTPAGE
Lloh22:
	ldr	x10, [x10, _R_tot_groups@GOTPAGEOFF]
	ldr	w12, [x10]
	add	w12, w12, #1
	str	w12, [x10]
	cmp	w11, w8
	b.ne	LBB0_17
LBB0_12:
	ldr	x8, [x22, #24]
LBB0_13:
Lloh23:
	adrp	x9, _RS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RS@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	ldr	x9, [x9, #8]
	lsl	x9, x9, #4
	mov	w10, #-1
	str	w10, [x8, x9]
	ldr	w2, [sp, #12]
	add	x0, sp, #16
	mov	w1, #1
	bl	_heapify_front
	b	LBB0_24
LBB0_14:
Lloh26:
	adrp	x8, _R_tot_groups@GOTPAGE
Lloh27:
	ldr	x8, [x8, _R_tot_groups@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldp	x8, x9, [x21, #8]
	cmp	x8, x9
	b.lt	LBB0_16
; %bb.15:
	bl	_rebuild_hashmap
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_hashmap_ll_int_get
	ldr	x8, [x21, #8]
LBB0_16:
	add	x8, x8, #1
	str	x8, [x21, #8]
	ldr	x8, [x21, #24]
	ldrsw	x9, [sp, #12]
	add	x8, x8, x9, lsl #4
	str	x20, [x8, #8]
	ldr	w11, [x23]
	ldr	w8, [x24]
	cmp	w11, w8
	b.eq	LBB0_12
LBB0_17:
	add	w8, w11, #1
	str	w8, [x23]
Lloh28:
	adrp	x10, _R@GOTPAGE
Lloh29:
	ldr	x10, [x10, _R@GOTPAGEOFF]
	cmp	w11, #1
	b.lt	LBB0_23
; %bb.18:
Lloh30:
	adrp	x9, _RR@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RR@GOTPAGEOFF]
	ldr	x13, [x9]
Lloh32:
	adrp	x12, _RS@GOTPAGE
Lloh33:
	ldr	x12, [x12, _RS@GOTPAGEOFF]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	lsr	w11, w8, #1
	ldr	d0, [x13, w11, uxtw #3]
	scvtf	d0, d0
	fcmp	d0, d8
	b.ge	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x13, [x10]
	lsl	x14, x11, #3
	ldr	x15, [x13, x14]
	mov	w16, w8
	lsl	x16, x16, #3
	str	x15, [x13, x16]
	ldr	x13, [x9]
	ldr	x15, [x13, x14]
	str	x15, [x13, x16]
	ldr	x15, [x22, #24]
	ldr	x17, [x12]
	ldr	x14, [x17, x14]
	str	x14, [x17, x16]
	lsl	x14, x14, #4
	str	w8, [x15, x14]
	cmp	w8, #3
	mov	x8, x11
	b.hi	LBB0_19
	b	LBB0_22
LBB0_21:
	mov	x11, x8
LBB0_22:
	ldr	x19, [sp, #24]
	ldr	w9, [sp, #12]
	mov	x8, x11
LBB0_23:
	ldr	x10, [x10]
	sbfiz	x11, x8, #3, #32
	str	x19, [x10, x11]
	fcvtzs	x10, d8
Lloh34:
	adrp	x12, _RR@GOTPAGE
Lloh35:
	ldr	x12, [x12, _RR@GOTPAGEOFF]
Lloh36:
	ldr	x12, [x12]
	str	x10, [x12, x11]
	ldr	x10, [x22, #24]
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sxtw	x12, w9
Lloh37:
	adrp	x13, _RS@GOTPAGE
Lloh38:
	ldr	x13, [x13, _RS@GOTPAGEOFF]
Lloh39:
	ldr	x13, [x13]
	str	x12, [x13, x11]
	sbfiz	x9, x9, #4, #32
	str	w8, [x10, x9]
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
Lloh40:
	adrp	x0, l_.str@PAGE
Lloh41:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_R_tot,4,2                      ; @R_tot
	.comm	_Q_limit,4,2                    ; @Q_limit
	.comm	_hm,32,3                        ; @hm
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not enough memory for allocate hash table\n"

	.comm	_R_tot_undef_hash,4,2           ; @R_tot_undef_hash
	.comm	_R_cnt,4,2                      ; @R_cnt
	.comm	_RR,8,3                         ; @RR
	.comm	_RS,8,3                         ; @RS
	.comm	_R_tot_groups,4,2               ; @R_tot_groups
	.comm	_R,8,3                          ; @R
.subsections_via_symbols
