	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_trp_add                        ## -- Begin function trp_add
	.p2align	4, 0x90
_trp_add:                               ## @trp_add
	.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, %r15d
	movl	%esi, %r12d
	leaq	8(%rdi), %r14
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, (%rbx)
	jl	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %eax
	cmpl	%r12d, %eax
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	8(%rbx), %rdx
	addq	$16, %rbx
	cmpl	%r12d, %eax
	cmovlq	%rbx, %r14
	cmovgq	%rdx, %r14
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_12:
	xorl	%eax, %eax
	movq	%rcx, %r13
	movq	%rdi, %rbx
	callq	_alloc_wkey
	incl	(%rbx)
	movq	%rax, %rbx
	movl	%r12d, 4(%rax)
	movl	%r15d, (%rax)
	movq	%r13, 24(%rax)
	movq	(%r14), %rdi
	leaq	16(%rbx), %rdx
	leaq	8(%rbx), %rcx
	movl	%r12d, %esi
	callq	_trp_split
	movq	%rbx, (%r14)
LBB0_13:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %rbx
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rbx
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %eax
	cmpl	%r12d, %eax
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	jg	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	jge	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$16, %rbx
	jmp	LBB0_10
	.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                        ; -- Begin function trp_add
	.p2align	2
_trp_add:                               ; @trp_add
	.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, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	mov	x24, x0
	ldr	x23, [x24, #8]!
	cbz	x23, LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	cmp	w8, w21
	b.lt	LBB0_9
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x23, #4]
	cmp	w8, w19
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x23, #8
	add	x9, x23, #16
	csel	x9, x9, x24, lt
	csel	x24, x8, x9, gt
	ldr	x23, [x24]
	cbnz	x23, LBB0_1
LBB0_4:
	bl	_alloc_wkey
	mov	x23, x0
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	stp	w21, w19, [x0]
	str	x20, [x0, #24]
	ldr	x0, [x24]
	add	x2, x23, #16
	add	x3, x23, #8
	mov	x1, x19
	bl	_trp_split
	str	x23, [x24]
LBB0_5:
	mov	x0, x23
	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
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x23, #8
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x23, [x8]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	cbz	x23, LBB0_4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, #4]
	cmp	w8, w19
	b.eq	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	b.gt	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w8, w19
	b.ge	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x23, #16
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
