	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 24(%rdi)
	je	LBB0_18
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r8
	movl	24(%r8), %edx
	testl	%edx, %edx
	jle	LBB0_18
## %bb.2:
	movq	32(%r8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%r8), %edx
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	%esi, %ecx
	movl	%ecx, %esi
	cmpl	%edx, %ecx
	jge	LBB0_18
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
	movslq	%esi, %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rcx,4), %ecx
	testl	%ecx, %ecx
	jle	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %eax
	shll	$4, %eax
	movslq	%eax, %r15
	movl	40(%r8), %r13d
	xorl	%eax, %eax
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %ecx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=2
	incl	%eax
	cmpl	%ecx, %eax
	jge	LBB0_16
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
	testl	%r13d, %r13d
	jle	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leal	(%rax,%rsi), %r9d
	shll	$7, %r9d
	movq	8(%r8), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=3
	movq	48(%r8), %rax
	movl	(%rax,%r14,4), %r10d
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=3
	addl	%r10d, %r9d
	incq	%r14
	movslq	%r13d, %rax
	cmpq	%rax, %r14
	jge	LBB0_14
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_11 Depth 4
	leaq	(%r14,%r15), %rax
	cmpl	$0, (%r12,%rax,4)
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=3
	movq	48(%r8), %r11
	movq	56(%r8), %rdx
	movl	(%rdx,%rax,4), %edx
	movl	$29, %ebx
	subl	%edx, %ebx
	subl	%edx, %ebx
	addl	%edx, %edx
	addl	$-29, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rsi
	cmpq	$0, (%rsi,%rax,8)
	cmovnel	%ebx, %edx
	movl	(%r11,%r14,4), %r10d
	testl	%r10d, %r10d
	jle	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=3
	movss	(%rdi,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movslq	%r9d, %rax
	shlq	$2, %rax
	movq	16(%r8), %rsi
	addq	%rax, %rsi
	addq	72(%r8), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ##       Parent Loop BB0_7 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movl	(%rax,%rbx,4), %ecx
	imull	%edx, %ecx
	addl	(%rsi,%rbx,4), %ecx
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ecx, %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %ecx
	movl	%ecx, (%rsi,%rbx,4)
	movl	$0, (%rax,%rbx,4)
	incq	%rbx
	movslq	(%r11,%r14,4), %r10
	cmpq	%r10, %rbx
	jl	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=3
	movl	40(%r8), %r13d
	jmp	LBB0_13
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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:
	stp	x20, x19, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_18
; %bb.1:
	ldr	x8, [x0]
	ldr	w12, [x8, #24]
	cmp	w12, #1
	b.lt	LBB0_18
; %bb.2:
	mov	w13, #0
	ldr	x9, [x8, #32]
	mov	w10, #29
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w12, [x8, #24]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w13, w15, w11
	cmp	w13, w12
	b.ge	LBB0_18
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
                                        ;         Child Loop BB0_16 Depth 4
	sxtw	x11, w13
	ldr	w15, [x9, w13, sxtw #2]
	cmp	w15, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w12, #0
	lsl	w13, w11, #4
	sxtw	x13, w13
	ldr	w14, [x8, #40]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	w15, [x9, x11, lsl #2]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	w12, w12, #1
	cmp	w12, w15
	b.ge	LBB0_3
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
                                        ;         Child Loop BB0_16 Depth 4
	cmp	w14, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x15, #0
	add	w16, w12, w11
	lsl	w16, w16, #7
	ldr	x17, [x8, #8]
	ldr	x1, [x0, #16]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=3
	ldr	x2, [x8, #48]
	ldr	w6, [x2, x15, lsl #2]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=3
	add	w16, w6, w16
	add	x15, x15, #1
	cmp	x15, w14, sxtw
	b.ge	LBB0_7
LBB0_13:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_16 Depth 4
	add	x3, x15, x13
	lsl	x4, x3, #2
	ldr	w2, [x1, x4]
	cbz	w2, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	ldp	x2, x5, [x8, #48]
	ldr	w5, [x5, x3, lsl #2]
	lsl	w5, w5, #1
	sub	w6, w5, #29
	ldr	x7, [x0, #8]
	ldr	x3, [x7, x3, lsl #3]
	sub	w5, w10, w5
	cmp	x3, #0
	csel	w3, w6, w5, eq
	ldr	w6, [x2, x15, lsl #2]
	cmp	w6, #1
	b.lt	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=3
	mov	x14, #0
	ldr	s0, [x17, x4]
	ldr	x4, [x8, #16]
	ldr	x5, [x8, #72]
	sbfiz	x6, x16, #2, #32
	add	x4, x4, x6
	add	x5, x5, x6
LBB0_16:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ;       Parent Loop BB0_13 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	lsl	x6, x14, #2
	ldr	w7, [x4, x6]
	ldr	w19, [x5, x6]
	madd	w7, w19, w3, w7
	scvtf	s1, w7
	fmul	s1, s0, s1
	fcvtzs	w7, s1
	str	w7, [x4, x6]
	str	wzr, [x5, x6]
	add	x14, x14, #1
	ldrsw	x6, [x2, x15, lsl #2]
	cmp	x14, x6
	b.lt	LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=3
	ldr	w14, [x8, #40]
	b	LBB0_12
LBB0_18:
	ldp	x20, x19, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_apply_intensity_stereo
.subsections_via_symbols
