	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function postprocess_res
_postprocess_res:                       ## @postprocess_res
	.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
	.cfi_offset %rbx, -24
	movq	_Q_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MAX_RATES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movq	_Q_order@GOTPCREL(%rip), %rax
	movq	_FLAG_REVERSE_SEARCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.2:
	movq	_R_cnt@GOTPCREL(%rip), %r8
	movslq	(%r8), %r11
	leal	-1(%r11), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movabsq	$-4294967296, %r9               ## imm = 0xFFFFFFFF00000000
	movl	%eax, %esi
	movq	%rsi, %rdi
	shlq	$32, %rdi
	addq	%r9, %rdi
	xorl	%eax, %eax
	movq	_R@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r10), %rdx
	movq	(%rdx,%rsi,8), %rcx
	movq	(%rdx,%rax,8), %rbx
	movq	%rbx, (%rdx,%rsi,8)
	movq	(%r10), %rdx
	movq	%rcx, (%rdx,%rax,8)
	incq	%rax
	decq	%rsi
	movq	%rdi, %rcx
	sarq	$32, %rcx
	addq	%r9, %rdi
	cmpq	%rcx, %rax
	jl	LBB0_4
LBB0_5:
	movq	_R_tot@GOTPCREL(%rip), %rax
	movq	_Q_limit@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	cmpl	%r9d, (%rax)
	jl	LBB0_11
## %bb.6:
	leal	-1(%r9), %eax
	cmpl	%eax, %r11d
	jge	LBB0_9
## %bb.7:
	movabsq	$-4294967296, %r10              ## imm = 0xFFFFFFFF00000000
	movslq	%eax, %rdi
	movq	%rdi, %rax
	shlq	$32, %rax
	addq	%r10, %rax
	movq	_R@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rcx
	movq	(%rcx,%rdi,8), %rbx
	movq	(%rcx,%r11,8), %rsi
	movq	%rsi, (%rcx,%rdi,8)
	movq	(%rdx), %rcx
	movq	%rbx, (%rcx,%r11,8)
	incq	%r11
	decq	%rdi
	movq	%rax, %rcx
	sarq	$32, %rcx
	addq	%r10, %rax
	cmpq	%rcx, %r11
	jl	LBB0_8
LBB0_9:
	movl	%r9d, (%r8)
	jmp	LBB0_11
LBB0_10:
	movq	_R_cnt@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.12:
	xorl	%eax, %eax
	popq	%rbx
	popq	%rbp
	jmp	_heap_sort_res                  ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_type,8,3                     ## @Q_type
	.comm	_MAX_RATES,8,3                  ## @MAX_RATES
	.comm	_Q_order,4,2                    ## @Q_order
	.comm	_FLAG_REVERSE_SEARCH,4,2        ## @FLAG_REVERSE_SEARCH
	.comm	_R_cnt,4,2                      ## @R_cnt
	.comm	_R,8,3                          ## @R
	.comm	_R_tot,4,2                      ## @R_tot
	.comm	_Q_limit,4,2                    ## @Q_limit
	.no_dead_strip	_postprocess_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function postprocess_res
_postprocess_res:                       ; @postprocess_res
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _Q_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Q_type@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MAX_RATES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_RATES@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.1:
Lloh6:
	adrp	x8, _Q_order@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Q_order@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _FLAG_REVERSE_SEARCH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FLAG_REVERSE_SEARCH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.2:
Lloh12:
	adrp	x8, _R_cnt@GOTPAGE
Lloh13:
	ldr	x8, [x8, _R_cnt@GOTPAGEOFF]
	ldrsw	x9, [x8]
	sub	w13, w9, #1
	cmp	w13, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x10, #0
	lsl	x11, x13, #3
	mov	x12, #-4294967296
	add	x13, x12, x13, lsl #32
Lloh14:
	adrp	x14, _R@GOTPAGE
Lloh15:
	ldr	x14, [x14, _R@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x14]
	ldr	x16, [x15, x11]
	lsl	x17, x10, #3
	ldr	x0, [x15, x17]
	str	x0, [x15, x11]
	ldr	x15, [x14]
	str	x16, [x15, x17]
	add	x10, x10, #1
	sub	x11, x11, #8
	cmp	x10, x13, asr #32
	add	x13, x13, x12
	b.lt	LBB0_4
LBB0_5:
Lloh16:
	adrp	x10, _R_tot@GOTPAGE
Lloh17:
	ldr	x10, [x10, _R_tot@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x10]
Lloh19:
	adrp	x10, _Q_limit@GOTPAGE
Lloh20:
	ldr	x10, [x10, _Q_limit@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	cmp	w11, w10
	b.lt	LBB0_12
; %bb.6:
	sub	w11, w10, #1
	cmp	w9, w11
	b.ge	LBB0_9
; %bb.7:
	sxtw	x13, w11
	sbfiz	x11, x11, #3, #32
	mov	x12, #-4294967296
	add	x13, x12, x13, lsl #32
Lloh22:
	adrp	x14, _R@GOTPAGE
Lloh23:
	ldr	x14, [x14, _R@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x14]
	ldr	x16, [x15, x11]
	lsl	x17, x9, #3
	ldr	x0, [x15, x17]
	str	x0, [x15, x11]
	ldr	x15, [x14]
	str	x16, [x15, x17]
	add	x9, x9, #1
	sub	x11, x11, #8
	cmp	x9, x13, asr #32
	add	x13, x13, x12
	b.lt	LBB0_8
LBB0_9:
	str	w10, [x8]
	ret
LBB0_10:
Lloh24:
	adrp	x8, _R_cnt@GOTPAGE
Lloh25:
	ldr	x8, [x8, _R_cnt@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cbz	w8, LBB0_12
; %bb.11:
	b	_heap_sort_res
LBB0_12:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_type,8,3                     ; @Q_type
	.comm	_MAX_RATES,8,3                  ; @MAX_RATES
	.comm	_Q_order,4,2                    ; @Q_order
	.comm	_FLAG_REVERSE_SEARCH,4,2        ; @FLAG_REVERSE_SEARCH
	.comm	_R_cnt,4,2                      ; @R_cnt
	.comm	_R,8,3                          ; @R
	.comm	_R_tot,4,2                      ; @R_tot
	.comm	_Q_limit,4,2                    ; @Q_limit
	.no_dead_strip	_postprocess_res
.subsections_via_symbols
