	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fastrpc_get_buff_overlaps
_fastrpc_get_buff_overlaps:             ## @fastrpc_get_buff_overlaps
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %esi
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movq	8(%r14), %rdi
	movq	16(%r14), %rax
	addq	$8, %rax
	leaq	16(%rdi), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rax), %rbx
	movq	%rbx, -16(%rcx)
	addq	(%rax), %rbx
	movq	%rbx, -8(%rcx)
	movl	%edx, (%rcx)
	incq	%rdx
	addq	$16, %rax
	addq	$48, %rcx
	cmpq	%rdx, %rsi
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movq	8(%r14), %rdi
LBB0_4:
	movq	_olaps_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$48, %edx
	xorl	%r8d, %r8d
	callq	_sort
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.5:
	movq	8(%r14), %rax
	addq	$40, %rax
	shlq	$4, %rcx
	leaq	(%rcx,%rcx,2), %r8
	xorl	%edx, %edx
	xorps	%xmm0, %xmm0
	xorl	%esi, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-32(%rax,%rdx), %rdi
	movq	%rdi, -8(%rax,%rdx)
	movq	%rbx, -16(%rax,%rdx)
	movq	$0, (%rax,%rdx)
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$48, %rdx
	movq	%rdi, %rsi
	cmpq	%rdx, %r8
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rax,%rdx), %rbx
	movq	%rsi, %rcx
	subq	%rbx, %rcx
	jle	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rsi, -16(%rax,%rdx)
	movq	-32(%rax,%rdx), %rdi
	movq	%rdi, -8(%rax,%rdx)
	movq	%rcx, (%rax,%rdx)
	cmpq	%rsi, %rdi
	jg	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movups	%xmm0, -16(%rax,%rdx)
	movq	%rsi, %rdi
	jmp	LBB0_10
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_olaps_cmp,4,2                  ## @olaps_cmp
	.no_dead_strip	_fastrpc_get_buff_overlaps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fastrpc_get_buff_overlaps
_fastrpc_get_buff_overlaps:             ; @fastrpc_get_buff_overlaps
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w1, [x0]
	cmp	w1, #0
	b.le	LBB0_3
; %bb.1:
	ldp	x0, x9, [x19, #8]
	cmp	w1, #1
	b.ne	LBB0_4
; %bb.2:
	mov	x8, #0
	b	LBB0_7
LBB0_3:
	ldr	x0, [x19, #8]
	b	LBB0_9
LBB0_4:
	mov	x10, #0
	and	x8, x1, #0xfffffffe
	add	x11, x0, #64
	add	x12, x9, #16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w13, w10, #1
	ldp	x14, x15, [x12, #-16]
	ldp	x16, x17, [x12], #32
	add	x15, x15, x14
	add	x17, x17, x16
	stp	x14, x15, [x11, #-64]
	stp	x16, x17, [x11, #-16]
	stur	w10, [x11, #-48]
	str	w13, [x11], #96
	add	x10, x10, #2
	cmp	x8, x10
	b.ne	LBB0_5
; %bb.6:
	cmp	x8, x1
	b.eq	LBB0_9
LBB0_7:
	add	x9, x9, x8, lsl #4
	add	x9, x9, #8
	mov	w10, #48
	madd	x10, x8, x10, x0
	add	x10, x10, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #-8]
	stur	x11, [x10, #-8]
	ldr	x12, [x9], #16
	add	x11, x12, x11
	str	x11, [x10]
	str	w8, [x10, #8]
	add	x8, x8, #1
	add	x10, x10, #48
	cmp	x1, x8
	b.ne	LBB0_8
LBB0_9:
Lloh0:
	adrp	x8, _olaps_cmp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _olaps_cmp@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #48
	mov	x4, #0
	bl	_sort
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.10:
	mov	x10, #0
	ldr	x9, [x19, #8]
	add	x9, x9, #24
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldur	x11, [x9, #-16]
	stp	x12, x11, [x9]
	str	xzr, [x9, #16]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x9, x9, #48
	mov	x10, x11
	subs	x8, x8, #1
	b.eq	LBB0_16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x9, #-24]
	subs	x13, x10, x12
	b.le	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldur	x11, [x9, #-16]
	stp	x10, x11, [x9]
	str	x13, [x9, #16]
	cmp	x11, x10
	b.gt	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	stp	xzr, xzr, [x9]
	mov	x11, x10
	b	LBB0_12
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_olaps_cmp,4,2                  ; @olaps_cmp
	.no_dead_strip	_fastrpc_get_buff_overlaps
.subsections_via_symbols
