	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_register_agent                 ## -- Begin function register_agent
	.p2align	4, 0x90
_register_agent:                        ## @register_agent
	.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	%rsi, %r15
	movq	%rdi, %r13
	leaq	_register_agent(%rip), %rdi
	callq	_TRACE_IN
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	movslq	(%r13), %r14
	leaq	1(%r14), %r12
	leal	(,%r12,8), %edi
	callq	_malloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	8(%r13), %rsi
	movl	(%r13), %edx
	shll	$3, %edx
	movq	%rbx, %rdi
	callq	_memcpy
	movq	%r15, (%rbx,%r14,8)
	movq	_agent_cmp_func@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_qsort
	movq	8(%r13), %rdi
	callq	_free
	movq	%rbx, 8(%r13)
	movl	%r12d, (%r13)
	leaq	_register_agent(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TRACE_OUT                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_agent_cmp_func,4,2             ## @agent_cmp_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_register_agent                 ; -- Begin function register_agent
	.p2align	2
_register_agent:                        ; @register_agent
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x20, _register_agent@PAGE
Lloh1:
	add	x20, x20, _register_agent@PAGEOFF
	mov	x0, x20
	bl	_TRACE_IN
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
	cmp	x21, #0
	cset	w0, ne
	bl	_assert
	ldrsw	x8, [x19]
	add	x22, x8, #1
	lsl	w0, w22, #3
	bl	_malloc
	mov	x23, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x1, [x19, #8]
	ldr	w8, [x19]
	lsl	w2, w8, #3
	mov	x0, x23
	bl	_memcpy
	add	x8, x23, x22, lsl #3
	stur	x21, [x8, #-8]
Lloh2:
	adrp	x8, _agent_cmp_func@GOTPAGE
Lloh3:
	ldr	x8, [x8, _agent_cmp_func@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x1, x22
	mov	w2, #8
	bl	_qsort
	ldr	x0, [x19, #8]
	bl	_free
	str	x23, [x19, #8]
	str	w22, [x19]
	mov	x0, x20
	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
	b	_TRACE_OUT
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_agent_cmp_func,4,2             ; @agent_cmp_func
.subsections_via_symbols
