	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_postprocess_res_group_mode     ## -- Begin function postprocess_res_group_mode
	.p2align	4, 0x90
_postprocess_res_group_mode:            ## @postprocess_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_Q_limit@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_1
## %bb.5:
	movq	_R_cnt@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.7:
	movq	_hm@GOTPCREL(%rip), %rdi
	callq	_hashmap_ll_int_free
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_heap_sort_res                  ## TAILCALL
LBB0_1:
	movq	_hs@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_4
## %bb.2:
	movq	_R_cnt@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jle	LBB0_4
## %bb.3:
	callq	_hashset_init
	xorl	%eax, %eax
	callq	_add_items_into_hashset
LBB0_4:
	movq	_R_tot_undef_hash@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	8(%rbx), %eax
	movq	_MAX_RES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$-1, %ecx
	cmovlel	%eax, %ecx
	movq	_R_tot_groups@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_limit,8,3                    ## @Q_limit
	.comm	_hs,16,3                        ## @hs
	.comm	_R_cnt,8,3                      ## @R_cnt
	.comm	_R_tot_undef_hash,4,2           ## @R_tot_undef_hash
	.comm	_R_tot_groups,4,2               ## @R_tot_groups
	.comm	_MAX_RES,4,2                    ## @MAX_RES
	.comm	_hm,4,2                         ## @hm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_postprocess_res_group_mode     ; -- Begin function postprocess_res_group_mode
	.p2align	2
_postprocess_res_group_mode:            ; @postprocess_res_group_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _Q_limit@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Q_limit@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #0
	b.le	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _R_cnt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R_cnt@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.2:
Lloh6:
	adrp	x0, _hm@GOTPAGE
Lloh7:
	ldr	x0, [x0, _hm@GOTPAGEOFF]
	bl	_hashmap_ll_int_free
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_heap_sort_res
LBB0_3:
Lloh8:
	adrp	x19, _hs@GOTPAGE
Lloh9:
	ldr	x19, [x19, _hs@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _R_cnt@GOTPAGE
Lloh11:
	ldr	x9, [x9, _R_cnt@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x9]
	cmp	x8, #0
	ccmp	x0, #1, #8, eq
	b.lt	LBB0_5
; %bb.4:
	bl	_hashset_init
	bl	_add_items_into_hashset
LBB0_5:
	ldr	w8, [x19, #8]
Lloh13:
	adrp	x9, _R_tot_undef_hash@GOTPAGE
Lloh14:
	ldr	x9, [x9, _R_tot_undef_hash@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _MAX_RES@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MAX_RES@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	add	w8, w9, w8
	cmp	w8, w10
	csinv	w8, w8, wzr, le
Lloh19:
	adrp	x9, _R_tot_groups@GOTPAGE
Lloh20:
	ldr	x9, [x9, _R_tot_groups@GOTPAGEOFF]
Lloh21:
	str	w8, [x9]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_limit,8,3                    ; @Q_limit
	.comm	_hs,16,3                        ; @hs
	.comm	_R_cnt,8,3                      ; @R_cnt
	.comm	_R_tot_undef_hash,4,2           ; @R_tot_undef_hash
	.comm	_R_tot_groups,4,2               ; @R_tot_groups
	.comm	_MAX_RES,4,2                    ; @MAX_RES
	.comm	_hm,4,2                         ; @hm
.subsections_via_symbols
