	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function midequalizer8
_midequalizer8:                         ## @midequalizer8
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	24(%rbp), %r12d
	movl	16(%rbp), %edx
	movq	56(%rbp), %r15
	movq	48(%rbp), %r8
	movq	72(%rbp), %r13
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, %esi
	movl	%r12d, %ecx
	movq	%r13, %r9
	callq	_compute_histogram8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	32(%rbp), %edx
	movl	40(%rbp), %ecx
	movq	%r15, %r8
	movq	%r13, %r9
	callq	_compute_histogram8
	movq	48(%rbp), %rdi
	movq	%r15, %rsi
	movq	64(%rbp), %rdx
	movq	%r13, %rcx
	callq	_compute_contrast_change
	testl	%r12d, %r12d
	jle	LBB0_6
## %bb.1:
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	movslq	-68(%rbp), %rcx                 ## 4-byte Folded Reload
	movl	16(%rbp), %r13d
	shlq	$3, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	shlq	$3, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	addq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	addq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	cmpl	24(%rbp), %eax
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, 16(%rbp)
	movq	64(%rbp), %r12
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%r15,8), %rax
	movl	(%r12,%rax,4), %edi
	callq	_av_clip_uint8
	movq	%rax, (%r14,%r15,8)
	incq	%r15
	cmpq	%r15, %r13
	jne	LBB0_4
	jmp	LBB0_5
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_midequalizer8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function midequalizer8
_midequalizer8:                         ; @midequalizer8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x20, x6
	stp	x5, x1, [sp, #8]                ; 16-byte Folded Spill
	str	w4, [sp, #28]                   ; 4-byte Folded Spill
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x21, x2
	mov	x22, x0
	ldp	w28, w24, [x29, #16]
	ldp	x26, x25, [x29, #24]
	ldp	x23, x27, [x29, #40]
	str	x3, [sp]                        ; 8-byte Folded Spill
	mov	x1, x3
	mov	x2, x6
	mov	x3, x7
	mov	x4, x26
	mov	x5, x27
	bl	_compute_histogram8
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	mov	x2, x28
	mov	x3, x24
	mov	x4, x25
	mov	x5, x27
	bl	_compute_histogram8
	mov	x0, x26
	mov	x1, x25
	mov	x2, x23
	mov	x3, x27
	bl	_compute_contrast_change
	cmp	w19, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w24, #0
	mov	w8, w20
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	sbfiz	x25, x9, #3, #32
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	sbfiz	x26, x9, #3, #32
	lsl	x27, x8, #3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	add	x21, x21, x25
	add	x22, x22, x26
	cmp	w24, w19
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w20, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22, x28]
	ldr	w0, [x23, x8, lsl #2]
	bl	_av_clip_uint8
	str	x0, [x21, x28]
	add	x28, x28, #8
	cmp	x27, x28
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_midequalizer8
.subsections_via_symbols
