	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addHeapElement
_addHeapElement:                        ## @addHeapElement
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	testl	%edx, %edx
	jle	LBB0_4
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rdx), %r8d
	movl	%r8d, %eax
	shrl	%eax
	movl	(%rsi,%rax,4), %ecx
	cmpl	%edi, %ecx
	jge	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%edx, %edx
	movl	%ecx, (%rsi,%rdx,4)
	movl	%eax, %edx
	cmpl	$1, %r8d
	ja	LBB0_1
	jmp	LBB0_5
LBB0_4:
	movl	%edx, %eax
LBB0_5:
	cltq
	movl	%edi, (%rsi,%rax,4)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_addHeapElement
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addHeapElement
_addHeapElement:                        ; @addHeapElement
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sub	w9, w2, #1
	lsr	w8, w9, #1
	ldr	w10, [x1, w8, uxtw #2]
	cmp	w10, w0
	b.ge	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	str	w10, [x1, w2, uxtw #2]
	mov	x2, x8
	cmp	w9, #1
	b.hi	LBB0_1
; %bb.3:
	str	w0, [x1, w8, sxtw #2]
	ret
LBB0_4:
	str	w0, [x1, w2, sxtw #2]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_addHeapElement
.subsections_via_symbols
