	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_trp_add_or_set                 ## -- Begin function trp_add_or_set
	.p2align	4, 0x90
_trp_add_or_set:                        ## @trp_add_or_set
	.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
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r15
	leaq	8(%rdi), %rbx
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, (%rax)
	jl	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rax), %ecx
	movl	%ecx, %edx
	xorl	%r13d, %edx
	cmpl	$1, %edx
	jle	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	8(%rax), %rdx
	addq	$16, %rax
	cmpl	%r13d, %ecx
	cmovlq	%rax, %rbx
	cmovgq	%rdx, %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_1
LBB0_4:
	xorl	%eax, %eax
	callq	_get_new_node
	movq	%rax, %r12
	decl	(%r15)
	movl	%r13d, 4(%rax)
	movl	%r14d, (%rax)
	movq	(%rbx), %rdi
	leaq	16(%rax), %rdx
	leaq	8(%rax), %rcx
	movl	%r13d, %esi
	callq	_trp_split
	movq	%r12, (%rbx)
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_8 Depth=1
	addq	$8, %rax
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rax), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	testq	%rax, %rax
	je	LBB0_4
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rax), %ecx
	movl	%ecx, %edx
	xorl	%r13d, %edx
	cmpl	$1, %edx
	jle	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r13d, %ecx
	jg	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	jge	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	$16, %rax
	jmp	LBB0_6
LBB0_13:
	movl	%r13d, 4(%rax)
LBB0_14:
	addq	$8, %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	_trp_add_or_set                 ; -- Begin function trp_add_or_set
	.p2align	2
_trp_add_or_set:                        ; @trp_add_or_set
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x23, x0
	ldr	x8, [x23, #8]!
	cbz	x8, LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8]
	cmp	w9, w20
	b.lt	LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x8, #4]
	eor	w10, w9, w19
	cmp	w10, #1
	b.le	LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x10, x8, #8
	add	x8, x8, #16
	cmp	w9, w19
	csel	x8, x8, x23, lt
	csel	x23, x10, x8, gt
	ldr	x8, [x23]
	cbnz	x8, LBB0_1
LBB0_4:
	bl	_get_new_node
	mov	x22, x0
	ldr	w8, [x21]
	sub	w8, w8, #1
	str	w8, [x21]
	stp	w20, w19, [x0]
	ldr	x0, [x23]
	add	x2, x22, #16
	add	x3, x22, #8
	mov	x1, x19
	bl	_trp_split
	str	x22, [x23]
	b	LBB0_13
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, #8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x8]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	cbz	x8, LBB0_4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8, #4]
	eor	w10, w9, w19
	cmp	w10, #1
	b.le	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w9, w19
	b.gt	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	b.ge	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, #16
	b	LBB0_6
LBB0_12:
	str	w19, [x8, #4]
LBB0_13:
	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
.subsections_via_symbols
