	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dnxhd_setup_threads_slices
_dnxhd_setup_threads_slices:            ## @dnxhd_setup_threads_slices
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$0, 24(%rdi)
	jle	LBB0_6
## %bb.1:
	movq	(%rdi), %r8
	movq	8(%rdi), %r10
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	$31, %eax
	sarl	$3, %eax
	andl	$-4, %eax
	movl	%eax, (%r10,%rdx,4)
	addl	%eax, %r9d
	incq	%rdx
	movslq	24(%rdi), %rax
	cmpq	%rax, %rdx
	jge	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%r9d, (%r8,%rdx,4)
	movl	$0, (%r10,%rdx,4)
	movl	28(%rdi), %esi
	movl	$0, %eax
	testl	%esi, %esi
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rdi), %r11
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imull	%edx, %esi
	addl	%ecx, %esi
	addl	(%r11,%rsi,8), %eax
	movl	%eax, (%r10,%rdx,4)
	incl	%ecx
	movl	28(%rdi), %esi
	cmpl	%esi, %ecx
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dnxhd_setup_threads_slices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dnxhd_setup_threads_slices
_dnxhd_setup_threads_slices:            ; @dnxhd_setup_threads_slices
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x8, #0
	mov	w9, #0
	ldp	x10, x11, [x0]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w12, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w12, w12, #31
	asr	w12, w12, #3
	and	w12, w12, #0xfffffffc
	str	w12, [x11, x8, lsl #2]
	add	w9, w12, w9
	add	x8, x8, #1
	ldrsw	x12, [x0, #24]
	cmp	x8, x12
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	lsl	x12, x8, #2
	str	w9, [x10, x12]
	str	wzr, [x11, x12]
	ldr	w15, [x0, #28]
	cmp	w15, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w12, #0
	mov	w13, #0
	ldr	x14, [x0, #16]
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	madd	w15, w8, w15, w13
	ldr	x15, [x14, w15, uxtw #3]
	add	w12, w12, w15
	str	w12, [x11, x8, lsl #2]
	add	w13, w13, #1
	ldr	w15, [x0, #28]
	cmp	w13, w15
	b.lt	LBB0_6
	b	LBB0_3
LBB0_7:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dnxhd_setup_threads_slices
.subsections_via_symbols
