	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLAC__format_seektable_sort    ## -- Begin function FLAC__format_seektable_sort
	.p2align	4, 0x90
_FLAC__format_seektable_sort:           ## @FLAC__format_seektable_sort
	.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
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_FLAC__ASSERT
	movl	(%r14), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.3:
	movq	8(%r14), %rdi
	movq	_seekpoint_compare_@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	$4, %edx
	callq	_qsort
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	cmpl	$1, %eax
	jne	LBB0_13
## %bb.5:
	movl	%eax, %r9d
LBB0_6:
	cmpl	%eax, %r9d
	jae	LBB0_12
## %bb.7:
	movq	8(%r14), %rsi
	movl	%r9d, %ebx
	movl	%eax, %edx
	subl	%r9d, %eax
	movq	%rbx, %rdi
	notq	%rdi
	testb	$1, %al
	je	LBB0_9
## %bb.8:
	movq	_FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	leaq	(%rbx,%rbx,2), %rax
	movq	%r8, (%rsi,%rax,8)
	incq	%rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsi,%rax,8)
LBB0_9:
	addq	%rdx, %rdi
	je	LBB0_12
## %bb.10:
	subq	%rbx, %rdx
	leaq	(%rbx,%rbx,2), %rax
	leaq	(%rsi,%rax,8), %rax
	addq	$32, %rax
	movq	_FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER@GOTPCREL(%rip), %rsi
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rcx
	movq	%rcx, -32(%rax)
	movups	%xmm0, -24(%rax)
	movq	(%rsi), %rcx
	movq	%rcx, -8(%rax)
	movups	%xmm0, (%rax)
	addq	$48, %rax
	addq	$-2, %rdx
	jne	LBB0_11
LBB0_12:
	movl	%r9d, %eax
	jmp	LBB0_2
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_13:
	movl	$1, %r9d
	movl	$1, %edx
	movl	$24, %esi
	movq	_FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER@GOTPCREL(%rip), %r8
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%r9d, %eax
	incl	%r9d
	leaq	(%rax,%rax,2), %rax
	movq	16(%rdi,%rsi), %rcx
	movq	%rcx, 16(%rdi,%rax,8)
	movups	(%rdi,%rsi), %xmm0
	movups	%xmm0, (%rdi,%rax,8)
	movl	(%r14), %eax
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rdx
	movl	%eax, %ecx
	addq	$24, %rsi
	cmpq	%rcx, %rdx
	jae	LBB0_6
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	movq	(%rdi,%rsi), %rbx
	cmpq	(%r8), %rbx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	leal	-1(%r9), %ecx
	leaq	(%rcx,%rcx,2), %rcx
	cmpq	(%rdi,%rcx,8), %rbx
	jne	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_seekpoint_compare_,8,3         ## @seekpoint_compare_
	.comm	_FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER,8,3 ## @FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FLAC__format_seektable_sort    ; -- Begin function FLAC__format_seektable_sort
	.p2align	2
_FLAC__format_seektable_sort:           ; @FLAC__format_seektable_sort
	.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
	cmp	x0, #0
	cset	w0, ne
	bl	_FLAC__ASSERT
	ldr	w1, [x19]
	cbz	w1, LBB0_8
; %bb.1:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x8, _seekpoint_compare_@GOTPAGE
Lloh1:
	ldr	x8, [x8, _seekpoint_compare_@GOTPAGEOFF]
Lloh2:
	ldr	x3, [x8]
	mov	w2, #4
	bl	_qsort
	ldr	w0, [x19]
	cbz	w0, LBB0_9
; %bb.2:
Lloh3:
	adrp	x8, _FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER@GOTPAGEOFF]
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.3:
	mov	x9, x0
LBB0_4:
	cmp	w9, w0
	b.hs	LBB0_7
; %bb.5:
	ldr	x10, [x19, #8]
	mov	w11, w0
	mov	w12, #24
	umaddl	x10, w9, w12, x10
	add	x10, x10, #8
	sub	x11, x11, w9, uxtw
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8]
	stp	x12, xzr, [x10, #-8]
	str	xzr, [x10, #8]
	add	x10, x10, #24
	subs	x11, x11, #1
	b.ne	LBB0_6
LBB0_7:
	mov	x0, x9
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w10, #1
	mov	w11, #24
	mov	w12, #24
	mov	w9, #1
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	umaddl	x14, w9, w11, x13
	add	w9, w9, #1
	add	x13, x13, x12
	ldr	q0, [x13]
	ldr	x13, [x13, #16]
	str	x13, [x14, #16]
	str	q0, [x14]
	ldr	w0, [x19]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x10, x10, #1
	add	x12, x12, #24
	cmp	x10, w0, uxtw
	b.hs	LBB0_4
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x19, #8]
	ldr	x14, [x13, x12]
	ldr	x15, [x8]
	cmp	x14, x15
	b.eq	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	sub	w15, w9, #1
	umull	x15, w15, w11
	ldr	x15, [x13, x15]
	cmp	x14, x15
	b.ne	LBB0_11
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_seekpoint_compare_,8,3         ; @seekpoint_compare_
	.comm	_FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER,8,3 ; @FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER
.subsections_via_symbols
