	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_upd                            ## -- Begin function upd
	.p2align	4, 0x90
_upd:                                   ## @upd
	.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
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %edx
	movl	$1, %eax
	testl	%edx, %edx
	je	LBB0_22
## %bb.1:
	movl	%r8d, %ebx
	movq	%rcx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	%r15, (%r14,%r8,8)
	movl	(%r12), %edx
	testl	%edx, %edx
	je	LBB0_21
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	_priority@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movslq	%edx, %rax
	shlq	$4, %rax
	movq	-16(%rax,%r13), %rax
	cmpl	%ebx, (%rcx,%rax,4)
	jg	LBB0_21
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_new_node
	movq	%rax, %r15
	movslq	(%r12), %rax
	decq	%rax
	movl	%eax, (%r12)
	shlq	$4, %rax
	movq	(%r13,%rax), %rdi
	movq	%rdi, 16(%r15)
	movl	12(%r13,%rax), %eax
	movl	%eax, 28(%r15)
	movslq	(%r12), %rax
	shlq	$4, %rax
	movl	8(%r13,%rax), %eax
	movl	%eax, 24(%r15)
	movq	_op_rb@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_19
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_op_lb@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_IS_CONST
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, (%r15)
	xorl	%edi, %edi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %rdi
	callq	_IS_UN
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, (%r15)
	movl	$8, %edi
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$2, (%r15)
	movl	$16, %edi
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_dl_malloc0
	movq	%rax, 8(%r15)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	subl	(%r15), %ecx
	jl	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	movl	(%r15), %r9d
	movslq	%ecx, %r8
	testl	%r9d, %r9d
	jle	LBB0_2
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14,%r8,8), %rsi
	movq	%rsi, (%rax)
	cmpl	$1, %r9d
	je	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %r11d
	movl	%r9d, %esi
	decq	%r9
	movl	$1, %eax
	cmpl	$2, %esi
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %r10d
	movq	%r9, %rsi
	andq	$-2, %rsi
	negq	%rsi
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rdx
	leaq	(%r10,%rax), %rbx
	movslq	%ebx, %rbx
	movq	(%r14,%rbx,8), %rdi
	movq	%rdi, (%rdx,%rax,8)
	movq	8(%r15), %rdx
	incl	%ebx
	movslq	%ebx, %rdi
	movq	(%r14,%rdi,8), %rdi
	movq	%rdi, 8(%rdx,%rax,8)
	leaq	(%rsi,%rax), %rdx
	addq	$2, %rdx
	addq	$2, %rax
	cmpq	$1, %rdx
	jne	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %r9b
	movl	%r11d, %ebx
	je	LBB0_2
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rdx
	leal	(%rcx,%rax), %esi
	movslq	%esi, %rsi
	movq	(%r14,%rsi,8), %rsi
	movq	%rsi, (%rdx,%rax,8)
	jmp	LBB0_2
LBB0_21:
	movl	$1, %eax
	jmp	LBB0_22
LBB0_19:
	movq	%r15, %rdi
	callq	_del_node
	xorl	%eax, %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_priority,8,3                   ## @priority
	.comm	_op_rb,8,3                      ## @op_rb
	.comm	_op_lb,8,3                      ## @op_lb
	.comm	_s1n,4,2                        ## @s1n
	.comm	_s2n,4,2                        ## @s2n
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_upd                            ; -- Begin function upd
	.p2align	2
_upd:                                   ; @upd
	.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	w8, [x3]
	mov	w19, #1
	cbz	w8, LBB0_17
; %bb.1:
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x26, _priority@GOTPAGE
Lloh1:
	ldr	x26, [x26, _priority@GOTPAGEOFF]
Lloh2:
	adrp	x27, _op_rb@GOTPAGE
Lloh3:
	ldr	x27, [x27, _op_rb@GOTPAGEOFF]
Lloh4:
	adrp	x28, _op_lb@GOTPAGE
Lloh5:
	ldr	x28, [x28, _op_lb@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w8, #1
	str	w9, [x22]
	str	x25, [x24, w8, sxtw #3]
	ldr	w8, [x21]
	cbz	w8, LBB0_15
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x9, [x26]
	add	x8, x23, w8, sxtw #4
	ldur	x8, [x8, #-16]
	ldr	w8, [x9, x8, lsl #2]
	cmp	w8, w20
	b.gt	LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_new_node
	mov	x25, x0
	ldrsw	x8, [x21]
	sub	x8, x8, #1
	str	w8, [x21]
	add	x8, x23, x8, lsl #4
	ldr	x0, [x8]
	str	x0, [x25, #16]
	ldr	w8, [x8, #12]
	str	w8, [x25, #28]
	ldrsw	x8, [x21]
	add	x8, x23, x8, lsl #4
	ldr	w8, [x8, #8]
	str	w8, [x25, #24]
	ldr	x8, [x27]
	ldr	x9, [x28]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_IS_CONST
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
	str	wzr, [x25]
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x25, #16]
	bl	_IS_UN
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w19, [x25]
	mov	w0, #8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #2
	str	w8, [x25]
	mov	w0, #16
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_dl_malloc0
	str	x0, [x25, #8]
	ldr	w8, [x22]
	ldr	w9, [x25]
	subs	w8, w8, w9
	b.lt	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	str	w8, [x22]
	ldr	w9, [x25]
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x24, w8, sxtw #3]
	str	x10, [x0]
	cmp	w9, #1
	b.eq	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w10, #1
LBB0_14:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x25, #8]
	add	w12, w8, w10
	ldr	x12, [x24, w12, sxtw #3]
	str	x12, [x11, x10, lsl #3]
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_14
	b	LBB0_2
LBB0_15:
	mov	w19, #1
	b	LBB0_17
LBB0_16:
	mov	x0, x25
	bl	_del_node
	mov	w19, #0
LBB0_17:
	mov	x0, x19
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_priority,8,3                   ; @priority
	.comm	_op_rb,8,3                      ; @op_rb
	.comm	_op_lb,8,3                      ; @op_lb
	.comm	_s1n,4,2                        ; @s1n
	.comm	_s2n,4,2                        ; @s2n
.subsections_via_symbols
