	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function entry_func
_entry_func:                            ## @entry_func
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movl	(%r14), %eax
	movq	_NB_GAIN_ENTRY_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_1
## %bb.2:
	movsd	%xmm1, -24(%rbp)                ## 8-byte Spill
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	callq	_isnan
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
LBB0_7:
	movsd	-24(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movb	$2, %al
	callq	_av_log
	jmp	LBB0_8
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movq	%rax, 16(%r14)
LBB0_10:
	xorpd	%xmm0, %xmm0
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movslq	(%r14), %rax
	movq	8(%r14), %rcx
	testq	%rax, %rax
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	jle	LBB0_9
## %bb.5:
	leal	-1(%rax), %edx
	shlq	$4, %rdx
	movsd	(%rcx,%rdx), %xmm1              ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jae	LBB0_6
LBB0_9:
	movq	%rax, %rdx
	shlq	$4, %rdx
	movsd	%xmm0, (%rcx,%rdx)
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, 8(%rcx,%rdx)
	incl	%eax
	movl	%eax, (%r14)
	jmp	LBB0_10
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_NB_GAIN_ENTRY_MAX,4,2          ## @NB_GAIN_ENTRY_MAX
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"entry table overflow.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"nan frequency (%g, %g).\n"

L_.str.2:                               ## @.str.2
	.asciz	"unsorted frequency (%g, %g).\n"

	.no_dead_strip	_entry_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function entry_func
_entry_func:                            ; @entry_func
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	mov	x19, x0
	ldr	x20, [x0]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _NB_GAIN_ENTRY_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NB_GAIN_ENTRY_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.1:
	fmov	d9, d1
	fmov	d8, d0
	bl	_isnan
	cbz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	stp	d8, d9, [sp]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_av_log
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_AVERROR
	str	x0, [x20, #16]
LBB0_5:
	movi	d0, #0000000000000000
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	ldrsw	x8, [x20]
	ldr	x9, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.7:
	sub	w10, w8, #1
	lsl	x10, x10, #4
	ldr	d0, [x9, x10]
	fcmp	d0, d8
	b.ge	LBB0_9
LBB0_8:
	add	x9, x9, x8, lsl #4
	stp	d8, d9, [x9]
	add	w8, w8, #1
	str	w8, [x20]
	b	LBB0_5
LBB0_9:
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	str	d9, [sp, #8]
	str	d8, [sp]
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_NB_GAIN_ENTRY_MAX,4,2          ; @NB_GAIN_ENTRY_MAX
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"entry table overflow.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"nan frequency (%g, %g).\n"

l_.str.2:                               ; @.str.2
	.asciz	"unsorted frequency (%g, %g).\n"

	.no_dead_strip	_entry_func
.subsections_via_symbols
