	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_intensity_stereo
_apply_intensity_stereo:                ## @apply_intensity_stereo
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %r8
	movl	96(%r8), %edx
	testl	%edx, %edx
	jle	LBB0_23
## %bb.1:
	movq	%rdi, %r12
	movq	88(%r8), %r9
	movq	(%r8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	56(%r8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	100(%r8), %r10d
	xorl	%edi, %edi
	xorl	%r11d, %r11d
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	96(%r8), %edx
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	104(%r8), %rsi
	movslq	(%rsi,%rdi,4), %rsi
	shlq	$9, %rsi
	addq	%rsi, -72(%rbp)                 ## 8-byte Folded Spill
	addq	%rsi, -64(%rbp)                 ## 8-byte Folded Spill
	incq	%rdi
	movslq	%edx, %rsi
	cmpq	%rsi, %rdi
	jge	LBB0_23
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##         Child Loop BB0_14 Depth 4
	testl	%r10d, %r10d
	jle	LBB0_22
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	100(%r8), %r10d
	movl	%esi, %r11d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, %ecx
	cmpl	%r10d, %eax
	jge	LBB0_21
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
                                        ##         Child Loop BB0_14 Depth 4
	movslq	%r11d, %rsi
	movq	64(%r8), %rdx
	movq	72(%r8), %rax
	movl	(%rdx,%rsi,4), %edx
	movl	(%rax,%rsi,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_INTENSITY_BT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_INTENSITY_BT2@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	je	LBB0_6
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=2
	subl	%ecx, %r11d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, %r11d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %ecx
	jge	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	cltq
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movslq	%ecx, %r10
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_14 Depth 4
	addl	%edx, %edx
	addl	$-29, %edx
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%rsi,4), %eax
	addl	%eax, %eax
	movl	$1, %ecx
	subl	%eax, %ecx
	imull	%ecx, %edx
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	104(%r8), %rax
	cmpl	$0, (%rax,%rdi,4)
	jle	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	80(%r8), %rax
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	imull	(%rax,%rsi,4), %edx
	leaq	1(%r10), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	xorl	%r14d, %r14d
	movq	%r10, -128(%rbp)                ## 8-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ##       Parent Loop BB0_9 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movq	(%r12), %rax
	movslq	(%r9,%r10,4), %rbx
	leaq	(%r15,%rbx,4), %rdi
	leaq	(,%rbx,4), %rsi
	addq	%r13, %rsi
	movl	4(%r9,%r10,4), %ecx
	subl	%ebx, %ecx
	movq	%r12, %rbx
	movq	%r8, %r12
	callq	*(%rax)
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-128(%rbp), %r10                ## 8-byte Reload
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	-112(%rbp), %r9                 ## 8-byte Reload
	movq	%r12, %r8
	movq	%rbx, %r12
	incq	%r14
	movq	104(%r8), %rax
	movslq	(%rax,%rdi,4), %rax
	addq	$512, %r13                      ## imm = 0x200
	addq	$512, %r15                      ## imm = 0x200
	cmpq	%rax, %r14
	jl	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	-96(%rbp), %r10                 ## 8-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=3
	incq	%r10
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=3
	incq	%rsi
	cmpq	-88(%rbp), %r10                 ## 8-byte Folded Reload
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	64(%r8), %rax
	movl	(%rax,%rsi,4), %edx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%ecx, %eax
	jmp	LBB0_20
LBB0_23:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTENSITY_BT,4,2               ## @INTENSITY_BT
	.comm	_INTENSITY_BT2,4,2              ## @INTENSITY_BT2
	.no_dead_strip	_apply_intensity_stereo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_intensity_stereo
_apply_intensity_stereo:                ; @apply_intensity_stereo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	str	w2, [sp, #44]                   ; 4-byte Folded Spill
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x23, [x1, #8]
	ldr	w10, [x23, #96]
	cmp	w10, #1
	b.lt	LBB0_22
; %bb.1:
	mov	x21, x0
	mov	x24, #0
	mov	w8, #0
	ldr	x25, [x23, #88]
	ldr	x11, [x23, #56]
	ldr	x9, [x23]
	stp	x9, x11, [sp, #24]              ; 16-byte Folded Spill
	ldr	w9, [x23, #100]
Lloh0:
	adrp	x16, _INTENSITY_BT@GOTPAGE
Lloh1:
	ldr	x16, [x16, _INTENSITY_BT@GOTPAGEOFF]
Lloh2:
	adrp	x17, _INTENSITY_BT2@GOTPAGE
Lloh3:
	ldr	x17, [x17, _INTENSITY_BT2@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x23, #96]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x23, #104]
	ldrsw	x11, [x11, x24, lsl #2]
	lsl	x11, x11, #9
	ldr	x12, [sp, #24]                  ; 8-byte Folded Reload
	add	x12, x12, x11
	str	x12, [sp, #24]                  ; 8-byte Folded Spill
	ldr	x12, [sp, #32]                  ; 8-byte Folded Reload
	add	x12, x12, x11
	str	x12, [sp, #32]                  ; 8-byte Folded Spill
	add	x24, x24, #1
	cmp	x24, w10, sxtw
	b.ge	LBB0_22
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;         Child Loop BB0_15 Depth 4
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	sub	w8, w8, w10
	add	w8, w8, w12
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x10, x12
	cmp	w12, w9
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;         Child Loop BB0_15 Depth 4
	sbfiz	x12, x8, #2, #32
	ldp	x11, x13, [x23, #64]
	ldr	w11, [x11, x12]
	ldr	w14, [x16]
	ldr	w15, [x17]
	ldr	w12, [x13, x12]
	cmp	w11, w14
	ccmp	w11, w15, #4, ne
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w10, w12
	b.ge	LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	sxtw	x13, w8
	str	x12, [sp, #8]                   ; 8-byte Folded Spill
	sxtw	x8, w12
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	sxtw	x19, w10
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_15 Depth 4
	lsl	w8, w11, #1
	sub	w8, w8, #29
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	cbz	w9, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x9, [x9]
	ldr	w9, [x9, x13, lsl #2]
	mul	w9, w9, w8
	sub	w8, w8, w9, lsl #1
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=3
	ldr	x9, [x23, #104]
	ldr	w9, [x9, x24, lsl #2]
	cmp	w9, #0
	b.le	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=3
	mov	x28, #0
	ldr	x9, [x23, #80]
	str	x13, [sp, #56]                  ; 8-byte Folded Spill
	ldr	w9, [x9, x13, lsl #2]
	mul	w22, w9, w8
	add	x27, x19, #1
	ldp	x20, x26, [sp, #24]             ; 16-byte Folded Reload
LBB0_15:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ;       Parent Loop BB0_11 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldrsw	x9, [x25, x19, lsl #2]
	lsl	x10, x9, #2
	add	x0, x26, x10
	add	x1, x20, x10
	ldr	w10, [x25, x27, lsl #2]
	sub	w3, w10, w9
	mov	x2, x22
	blr	x8
	add	x28, x28, #1
	ldr	x8, [x23, #104]
	ldrsw	x8, [x8, x24, lsl #2]
	add	x20, x20, #512
	add	x26, x26, #512
	cmp	x28, x8
	b.lt	LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=3
	mov	x19, x27
	ldr	x13, [sp, #56]                  ; 8-byte Folded Reload
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=3
	add	x19, x19, #1
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=3
	add	x13, x13, #1
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	cmp	x19, x8
	b.eq	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=3
	ldr	x8, [x23, #64]
	ldr	w11, [x8, x13, lsl #2]
	b	LBB0_11
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x12, x10
	b	LBB0_7
LBB0_21:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w9, [x23, #100]
	mov	x8, x13
Lloh4:
	adrp	x16, _INTENSITY_BT@GOTPAGE
Lloh5:
	ldr	x16, [x16, _INTENSITY_BT@GOTPAGEOFF]
Lloh6:
	adrp	x17, _INTENSITY_BT2@GOTPAGE
Lloh7:
	ldr	x17, [x17, _INTENSITY_BT2@GOTPAGEOFF]
	ldr	x12, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_7
LBB0_22:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INTENSITY_BT,4,2               ; @INTENSITY_BT
	.comm	_INTENSITY_BT2,4,2              ; @INTENSITY_BT2
	.no_dead_strip	_apply_intensity_stereo
.subsections_via_symbols
