	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_error_limit
_update_error_limit:                    ## @update_error_limit
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	(%rdi), %eax
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	$-1, %r15
	xorl	%ebx, %ebx
	movq	_UINT_MAX@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%rbx), %edx
	movl	4(%rax,%rbx), %ecx
	movl	(%r12), %esi
	subl	%ecx, %esi
	cmpl	%esi, %edx
	jg	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%edx, %ecx
	movl	%ecx, (%rax,%rbx)
	sarl	$16, %ecx
	movl	%ecx, -44(%rbp,%r15,4)
	movl	16(%rax,%rbx), %edi
	callq	_LEVEL_DECAY
	movl	%eax, -52(%rbp,%r15,4)
	movslq	(%r14), %rax
	incq	%r15
	addq	$24, %rbx
	cmpq	%rax, %r15
	jl	LBB0_2
## %bb.5:
	testl	%eax, %eax
	je	LBB0_13
LBB0_6:
	cmpq	$0, 16(%r14)
	je	LBB0_12
## %bb.7:
	movl	-52(%rbp), %edx
	movl	-48(%rbp), %ecx
	subl	-56(%rbp), %edx
	movl	-44(%rbp), %esi
	addl	%esi, %edx
	incl	%edx
	sarl	%edx
	movl	%ecx, %esi
	subl	%edx, %esi
	jge	LBB0_9
## %bb.8:
	addl	%ecx, %ecx
	movl	%ecx, -44(%rbp)
	movl	$0, -48(%rbp)
	testl	%eax, %eax
	jns	LBB0_13
	jmp	LBB0_21
LBB0_3:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_22
LBB0_9:
	movl	%edx, %edi
	negl	%edi
	cmpl	%edi, %ecx
	jge	LBB0_11
## %bb.10:
	addl	%ecx, %ecx
	movl	%ecx, -48(%rbp)
	movl	$0, -44(%rbp)
LBB0_12:
	testl	%eax, %eax
	js	LBB0_21
LBB0_13:
	movl	$2, %r15d
	movq	$-1, %rbx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	-44(%rbp,%rbx,4), %edi
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	callq	_wp_exp2
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%r15,4)
	movslq	(%r14), %rax
	addq	$6, %r15
	incq	%rbx
	cmpq	%rax, %rbx
	jge	LBB0_21
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 16(%r14)
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	-52(%rbp,%rbx,4), %edi
	subl	-44(%rbp,%rbx,4), %edi
	cmpl	$-255, %edi
	jl	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	addl	$256, %edi                      ## imm = 0x100
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_11:
	addl	%ecx, %edx
	movl	%edx, -44(%rbp)
	movl	%esi, -48(%rbp)
	testl	%eax, %eax
	jns	LBB0_13
LBB0_21:
	xorl	%eax, %eax
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_24
## %bb.23:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_update_error_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_error_limit
_update_error_limit:                    ; @update_error_limit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_5
; %bb.1:
	mov	x20, #0
	mov	x21, #0
Lloh3:
	adrp	x22, _UINT_MAX@GOTPAGE
Lloh4:
	ldr	x22, [x22, _UINT_MAX@GOTPAGEOFF]
	add	x23, sp, #16
	add	x24, sp, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x20
	ldr	w11, [x22]
	ldp	w9, w10, [x8]
	sub	w11, w11, w10
	cmp	w9, w11
	b.gt	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w9, w10, w9
	str	w9, [x8]
	asr	w9, w9, #16
	lsl	x25, x21, #2
	str	w9, [x23, x25]
	ldr	w0, [x8, #16]
	bl	_LEVEL_DECAY
	str	w0, [x24, x25]
	add	x9, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #24
	cmp	x21, x8
	mov	x21, x9
	b.lt	LBB0_2
; %bb.4:
	cbz	w8, LBB0_12
LBB0_5:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_11
; %bb.6:
	ldp	w11, w10, [sp, #8]
	ldp	w9, w12, [sp, #16]
	sub	w10, w10, w11
	add	w10, w10, w12
	add	w10, w10, #1
	asr	w11, w10, #1
	subs	w10, w9, w11
	b.ge	LBB0_9
; %bb.7:
	lsl	w9, w9, #1
	stp	wzr, w9, [sp, #16]
	tbz	w8, #31, LBB0_12
	b	LBB0_21
LBB0_8:
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_22
LBB0_9:
	neg	w12, w11
	cmp	w9, w12
	b.ge	LBB0_20
; %bb.10:
	lsl	w9, w9, #1
	stp	w9, wzr, [sp, #16]
LBB0_11:
	tbnz	w8, #31, LBB0_21
LBB0_12:
	mov	x20, #0
	mov	w21, #8
	add	x22, sp, #16
	add	x23, sp, #8
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x22, x20, lsl #2]
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	bl	_wp_exp2
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x19, #8]
	str	x0, [x8, x21]
	add	x8, x20, #1
	ldrsw	x9, [x19]
	add	x21, x21, #24
	cmp	x20, x9
	mov	x20, x8
	b.ge	LBB0_21
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	lsl	x8, x20, #2
	ldr	w9, [x23, x8]
	ldr	w8, [x22, x8]
	sub	w8, w9, w8
	cmn	w8, #255
	b.lt	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	add	w0, w8, #256
	b	LBB0_14
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, #0
	b	LBB0_15
LBB0_20:
	add	w9, w11, w9
	stp	w10, w9, [sp, #16]
	tbz	w8, #31, LBB0_12
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_update_error_limit
.subsections_via_symbols
