	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginMergeItemPointers           ## -- Begin function ginMergeItemPointers
	.p2align	4, 0x90
_ginMergeItemPointers:                  ## @ginMergeItemPointers
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r12
	leal	(%rbx,%r13), %r15d
	leal	(,%r15,4), %edi
	callq	_palloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %rcx
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.2:
	leaq	(%r12,%rcx,4), %rdi
	addq	$-4, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rcx, %r14
	callq	_ginCompareItemPointers
	movq	%r14, %rcx
	testq	%rax, %rax
	js	LBB0_3
## %bb.5:
	movq	%r12, %rsi
	movslq	%r13d, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,4), %rdi
	addq	$-4, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_ginCompareItemPointers
	testq	%rax, %rax
	js	LBB0_8
## %bb.6:
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.9:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r14, %rdx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rbx), %eax
	addq	$4, %rbx
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, (%r15)
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdx
	addq	$4, %r15
	movq	%r13, %rax
	subq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	sarq	$2, %rax
	cmpq	%r14, %rax
	jge	LBB0_18
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	subq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	sarq	$2, %rax
	cmpq	%r12, %rax
	jge	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ginCompareItemPointers
	testl	%eax, %eax
	jg	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r13), %eax
	addq	$4, %r13
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rbx), %eax
	addq	$4, %rbx
	movl	%eax, (%r15)
	addq	$4, %r13
	jmp	LBB0_17
LBB0_3:
	shll	$2, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rcx, %r12
	movl	%ebx, %edx
	callq	_memcpy
	leaq	(%r14,%r12,4), %rdi
	shll	$2, %r13d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_memcpy
	jmp	LBB0_27
LBB0_18:
	movq	%r13, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_8:
	shll	$2, %r13d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_memcpy
	leaq	(%r14,%r12,4), %rdi
	shll	$2, %ebx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	jmp	LBB0_27
LBB0_7:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rax
	movq	%rcx, %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %rdx
LBB0_19:
	subq	%rcx, %rax
	sarq	$2, %rax
	cmpq	%rdx, %rax
	jge	LBB0_22
## %bb.20:
	movq	%r13, %rax
	subq	%rcx, %rax
	addq	$4, %rax
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ecx
	addq	$4, %r13
	movl	%ecx, (%r15)
	addq	$4, %r15
	movq	%rax, %rcx
	sarq	$2, %rcx
	addq	$4, %rax
	cmpq	%rdx, %rcx
	jl	LBB0_21
LBB0_22:
	movq	%rbx, %rax
	subq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, %rcx
	sarq	$2, %rcx
	cmpq	%r12, %rcx
	jge	LBB0_23
## %bb.24:
	addq	$4, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %ecx
	addq	$4, %rbx
	movl	%ecx, (%r15)
	addq	$4, %r15
	movq	%rax, %rcx
	sarq	$2, %rcx
	addq	$4, %rax
	cmpq	%r12, %rcx
	jl	LBB0_25
	jmp	LBB0_26
LBB0_23:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_26:
	subq	%r14, %r15
	shrq	$2, %r15
LBB0_27:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginMergeItemPointers           ; -- Begin function ginMergeItemPointers
	.p2align	2
_ginMergeItemPointers:                  ; @ginMergeItemPointers
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x22, x3
	mov	x21, x2
	mov	x24, x1
	mov	x23, x0
	add	w25, w3, w1
	lsl	w0, w25, #2
	bl	_palloc
	mov	x20, x0
	cbz	w24, LBB0_14
; %bb.1:
	cbz	w22, LBB0_14
; %bb.2:
	add	x8, x23, w24, sxtw #2
	sub	x0, x8, #4
	mov	x1, x21
	bl	_ginCompareItemPointers
	tbnz	x0, #63, LBB0_14
; %bb.3:
	add	x8, x21, w22, sxtw #2
	sub	x0, x8, #4
	mov	x1, x23
	bl	_ginCompareItemPointers
	tbnz	x0, #63, LBB0_15
; %bb.4:
	sxtw	x27, w24
	cmp	w24, #1
	b.lt	LBB0_16
; %bb.5:
	mov	x8, x22
	sxtw	x28, w8
	mov	x26, x20
	mov	x24, x21
	mov	x25, x23
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x24], #4
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	str	w8, [x26]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x26, #4
	sub	x8, x25, x23
	cmp	x27, x8, asr #2
	b.le	LBB0_17
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x24, x21
	cmp	x28, x8, asr #2
	b.le	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_ginCompareItemPointers
	cmp	w0, #1
	b.ge	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cbz	w0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x25], #4
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x24], #4
	str	w8, [x26]
	add	x25, x25, #4
	b	LBB0_8
LBB0_14:
	lsl	w2, w24, #2
	mov	x0, x20
	mov	x1, x23
	bl	_memcpy
	lsl	w2, w22, #2
	add	x0, x20, w24, sxtw #2
	mov	x1, x21
	bl	_memcpy
	b	LBB0_24
LBB0_15:
	mov	x8, x22
	sxtw	x26, w8
	lsl	w2, w22, #2
	mov	x0, x20
	mov	x1, x21
	bl	_memcpy
	lsl	w2, w24, #2
	add	x0, x20, x26, lsl #2
	mov	x1, x23
	bl	_memcpy
	b	LBB0_24
LBB0_16:
	mov	x25, x23
	mov	x24, x21
	mov	x26, x20
LBB0_17:
	sub	x8, x25, x23
	cmp	x27, x8, asr #2
	b.le	LBB0_20
; %bb.18:
	sub	x8, x25, x23
	add	x8, x8, #4
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x25], #4
	str	w9, [x26], #4
	cmp	x27, x8, asr #2
	add	x8, x8, #4
	b.gt	LBB0_19
LBB0_20:
	sxtw	x8, w22
	sub	x9, x24, x21
	cmp	x8, x9, asr #2
	b.le	LBB0_23
; %bb.21:
	add	x9, x9, #4
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x24], #4
	str	w10, [x26], #4
	cmp	x8, x9, asr #2
	add	x9, x9, #4
	b.gt	LBB0_22
LBB0_23:
	sub	x8, x26, x20
	lsr	x25, x8, #2
LBB0_24:
	str	w25, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
