	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function doinsert
_doinsert:                              ## @doinsert
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	jne	LBB0_9
## %bb.1:
	movl	%ecx, %ebx
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_HERE
	movl	%eax, %r13d
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_EMIT
	xorl	%eax, %eax
	callq	_HERE
	leal	1(%r13), %ecx
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	sete	%dil
	callq	_assert
	movq	24(%r14), %rax
	movq	32(%r14), %rcx
	movslq	%r13d, %rdx
	movl	(%rcx,%rdx,4), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setg	%dil
	callq	_assert
	movq	_NPAREN@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_8
## %bb.2:
	movq	8(%r14), %rcx
	movq	16(%r14), %rdx
	movl	$1, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	movslq	(%rax), %rdi
	cmpq	%rdi, %rsi
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edi
	cmpl	%ebx, %edi
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%edi
	movl	%edi, (%rcx,%rsi,4)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rdx,%rsi,4), %edi
	cmpl	%ebx, %edi
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%edi
	movl	%edi, (%rdx,%rsi,4)
	jmp	LBB0_7
LBB0_8:
	movq	32(%r14), %rax
	movslq	%ebx, %r13
	leaq	(%rax,%r13,4), %r15
	addq	$4, %r15
	leaq	(%rax,%r13,4), %r12
	xorl	%eax, %eax
	callq	_HERE
                                        ## kill: def $eax killed $eax def $rax
	notl	%ebx
	leal	(%rax,%rbx), %edx
	shll	$2, %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_memmove
	movq	24(%r14), %rax
	leaq	(%rax,%r13,4), %r15
	addq	$4, %r15
	leaq	(%rax,%r13,4), %r12
	xorl	%eax, %eax
	callq	_HERE
	addl	%eax, %ebx
	shll	$2, %ebx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memmove
	movq	32(%r14), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax,%r13,4)
	movq	24(%r14), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax,%r13,4)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NPAREN,4,2                     ## @NPAREN
	.no_dead_strip	_doinsert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function doinsert
_doinsert:                              ; @doinsert
	.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
	ldr	x8, [x0]
	cbnz	x8, LBB0_9
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_HERE
	mov	x23, x0
	mov	x0, x22
	mov	x1, x21
	bl	_EMIT
	bl	_HERE
	add	w8, w23, #1
	cmp	w0, w8
	cset	w0, eq
	bl	_assert
	sbfiz	x8, x23, #2, #32
	ldp	x10, x9, [x19, #24]
	ldr	w23, [x9, x8]
	ldr	w24, [x10, x8]
	cmp	w20, #0
	cset	w0, gt
	bl	_assert
Lloh0:
	adrp	x8, _NPAREN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NPAREN@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #2
	b.lt	LBB0_8
; %bb.2:
	ldp	x9, x10, [x19, #8]
	mov	w11, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x11, #1
	ldrsw	x12, [x8]
	cmp	x11, x12
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9, x11, lsl #2]
	cmp	w12, w20
	b.lt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w12, w12, #1
	str	w12, [x9, x11, lsl #2]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [x10, x11, lsl #2]
	cmp	w12, w20
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w12, w12, #1
	str	w12, [x10, x11, lsl #2]
	b	LBB0_3
LBB0_8:
	ldr	x8, [x19, #32]
	sbfiz	x25, x20, #2, #32
	add	x26, x25, #4
	add	x21, x8, x26
	add	x22, x8, x25
	bl	_HERE
	mvn	w27, w20
	add	w8, w0, w27
	lsl	w2, w8, #2
	mov	x0, x21
	mov	x1, x22
	bl	_memmove
	ldr	x8, [x19, #24]
	add	x20, x8, x26
	add	x21, x8, x25
	bl	_HERE
	add	w8, w0, w27
	lsl	w2, w8, #2
	mov	x0, x20
	mov	x1, x21
	bl	_memmove
	ldp	x9, x8, [x19, #24]
	str	w23, [x8, x25]
	str	w24, [x9, x25]
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NPAREN,4,2                     ; @NPAREN
	.no_dead_strip	_doinsert
.subsections_via_symbols
