	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function new_pri
_new_pri:                               ## @new_pri
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_numpri@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	_maxpri@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_7
## %bb.1:
	leal	(%rcx,%rcx), %eax
	testl	%ecx, %ecx
	movl	$1024, %esi                     ## imm = 0x400
	cmovnel	%eax, %esi
	movl	%esi, (%rbx)
	movq	_prilist@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	shll	$2, %esi
	callq	_realloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rcx
	movl	(%r14), %eax
	cmpl	(%rbx), %eax
	jge	LBB0_7
## %bb.4:
	cltq
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rcx,%rdx,8), %rcx
	addq	$16, %rcx
	movq	_UNKNOWN@GOTPCREL(%rip), %rdx
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %esi
	movl	%esi, (%rcx)
	incq	%rax
	movups	%xmm0, -16(%rcx)
	movslq	(%rbx), %rsi
	addq	$24, %rcx
	cmpq	%rsi, %rax
	jl	LBB0_5
## %bb.6:
	movl	(%r14), %eax
LBB0_7:
	leal	1(%rax), %ecx
	movl	%ecx, (%r14)
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$-1, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_numpri,4,2                     ## @numpri
	.comm	_maxpri,4,2                     ## @maxpri
	.comm	_prilist,8,3                    ## @prilist
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_UNKNOWN,4,2                    ## @UNKNOWN
	.no_dead_strip	_new_pri
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function new_pri
_new_pri:                               ; @new_pri
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x19, _numpri@GOTPAGE
Lloh1:
	ldr	x19, [x19, _numpri@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x20, _maxpri@GOTPAGE
Lloh3:
	ldr	x20, [x20, _maxpri@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.lt	LBB0_6
; %bb.1:
	lsl	w9, w8, #1
	mov	w10, #1024
	cmp	w8, #0
	csel	w8, w10, w9, eq
	str	w8, [x20]
Lloh4:
	adrp	x21, _prilist@GOTPAGE
Lloh5:
	ldr	x21, [x21, _prilist@GOTPAGEOFF]
	ldr	x0, [x21]
	lsl	w1, w8, #2
	bl	_realloc
	str	x0, [x21]
	cbz	x0, LBB0_8
; %bb.2:
	mov	x8, x0
	ldr	w0, [x19]
	ldr	w9, [x20]
	cmp	w0, w9
	b.ge	LBB0_6
; %bb.3:
	sxtw	x9, w0
	mov	w10, #24
	madd	x8, x9, x10, x8
	add	x8, x8, #16
Lloh6:
	adrp	x10, _UNKNOWN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _UNKNOWN@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	str	w11, [x8]
	add	x9, x9, #1
	stp	xzr, xzr, [x8, #-16]
	ldrsw	x11, [x20]
	add	x8, x8, #24
	cmp	x9, x11
	b.lt	LBB0_4
; %bb.5:
	ldr	w0, [x19]
LBB0_6:
	add	w8, w0, #1
	str	w8, [x19]
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #-1
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_numpri,4,2                     ; @numpri
	.comm	_maxpri,4,2                     ; @maxpri
	.comm	_prilist,8,3                    ; @prilist
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_UNKNOWN,4,2                    ; @UNKNOWN
	.no_dead_strip	_new_pri
.subsections_via_symbols
