	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pqdownheap
_pqdownheap:                            ## @pqdownheap
	.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
	movq	(%rdi), %rcx
	movslq	%edx, %r14
	movl	(%rcx,%r14,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	(%r14,%r14), %ebx
	movl	8(%rdi), %eax
	cmpl	%eax, %ebx
	jg	LBB0_10
## %bb.1:
	movl	%edx, %r15d
	movq	%rsi, %r8
	movq	%rdi, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, %ebx
	jge	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r14d
	orl	$1, %r14d
	movslq	%r14d, %rax
	movl	(%rcx,%rax,4), %esi
	movslq	%ebx, %rax
	movl	(%rcx,%rax,4), %edx
	movl	12(%r12), %ecx
	movq	%r8, %rdi
	callq	_smaller
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rcx
	movl	%ebx, %r13d
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r13d
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %r14
	movl	(%rcx,%r14,4), %edx
	movl	12(%r12), %ecx
	movq	%r8, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_smaller
	movq	(%r12), %rcx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx,%r14,4), %eax
	movslq	%r15d, %rdx
	movl	%eax, (%rcx,%rdx,4)
	leal	(%r14,%r14), %ebx
	movl	8(%r12), %eax
	movl	%r13d, %r15d
	cmpl	%eax, %ebx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	jle	LBB0_2
	jmp	LBB0_10
LBB0_8:
	movslq	%r15d, %r14
LBB0_10:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rcx,%r14,4)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pqdownheap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pqdownheap
_pqdownheap:                            ; @pqdownheap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x2
	ldr	x8, [x0]
	ldr	w19, [x8, w2, sxtw #2]
	lsl	w23, w2, #1
	ldr	w10, [x0, #8]
	cmp	w23, w10
	b.gt	LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x21, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w23, w10
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x9, w23
	orr	x24, x9, #0x1
	ldr	w1, [x8, x24, lsl #2]
	ldr	w2, [x8, w23, sxtw #2]
	ldr	w3, [x21, #12]
	mov	x0, x20
	bl	_smaller
	cmp	x0, #0
	csel	w24, w23, w24, eq
	ldr	x8, [x21]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x23
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x8, w24, sxtw #2]
	ldr	w3, [x21, #12]
	mov	x0, x20
	mov	x1, x19
	bl	_smaller
	ldr	x8, [x21]
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x9, w24
	ldr	w10, [x8, x9, lsl #2]
	str	w10, [x8, w22, sxtw #2]
	lsl	w23, w24, #1
	ldr	w10, [x21, #8]
	mov	x22, x24
	cmp	w23, w10
	b.le	LBB0_2
	b	LBB0_9
LBB0_7:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_8:
	sxtw	x9, w22
LBB0_9:
	str	w19, [x8, x9, lsl #2]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pqdownheap
.subsections_via_symbols
