	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_pred_weight_table
_fill_pred_weight_table:                ## @fill_pred_weight_table
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	64(%rdx), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	32(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	56(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	24(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	48(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	16(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	40(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	8(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	$0, (%r14)
	movq	(%rbx), %rax
	movq	_HEVC_SLICE_I@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.1:
	movq	_HEVC_SLICE_P@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	8(%r15), %rcx
	cmpl	$0, 4(%rcx)
	je	LBB0_14
LBB0_3:
	movq	_HEVC_SLICE_B@GOTPCREL(%rip), %r8
	cmpq	(%r8), %rax
	jne	LBB0_5
## %bb.4:
	movq	8(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_14
LBB0_5:
	movl	8(%rbx), %ecx
	movl	%ecx, 4(%r14)
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movl	12(%rbx), %eax
	subl	%ecx, %eax
	movl	%eax, (%r14)
LBB0_7:
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movslq	%eax, %r10
	negq	%r10
	xorl	%esi, %esi
	movq	_L0@GOTPCREL(%rip), %r9
	shlq	$3, %r10
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rcx
	movq	(%r9), %rdx
	movslq	(%rcx,%rdx,4), %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	80(%rbx), %rcx
	movq	(%rcx,%rsi,8), %rcx
	addq	%r10, %rcx
	movq	64(%r14), %rdx
	movq	%rcx, (%rdx,%rsi,8)
	movq	72(%rbx), %rcx
	movq	(%rcx,%rsi,8), %rcx
	movq	56(%r14), %rdx
	movq	%rcx, (%rdx,%rsi,8)
	movq	64(%rbx), %rdx
	movzbl	12(%rbx), %ecx
	movl	$1, %edi
	shll	%cl, %edi
	movq	(%rdx,%rsi,8), %rcx
	movq	(%rcx), %rdx
	movslq	%edi, %rdi
	subq	%rdi, %rdx
	movq	48(%r14), %rax
	movq	(%rax,%rsi,8), %rax
	movq	%rdx, (%rax)
	movq	8(%rcx), %rcx
	subq	%rdi, %rcx
	movq	%rcx, 8(%rax)
	movq	56(%rbx), %rax
	movq	(%rax,%rsi,8), %rax
	movq	(%rax), %rcx
	movq	40(%r14), %rdx
	movq	(%rdx,%rsi,8), %rdx
	movq	%rcx, (%rdx)
	movq	8(%rax), %rax
	movq	%rax, 8(%rdx)
	incq	%rsi
	cmpq	$15, %rsi
	jne	LBB0_8
LBB0_10:
	movq	(%rbx), %rax
	cmpq	(%r8), %rax
	jne	LBB0_14
## %bb.11:
	xorl	%edx, %edx
	movq	_L1@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	(%r8), %rcx
	movslq	(%rax,%rcx,4), %rax
	cmpq	%rax, %rdx
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	48(%rbx), %rax
	movq	(%rax,%rdx,8), %rax
	addq	%r10, %rax
	movq	32(%r14), %rcx
	movq	%rax, (%rcx,%rdx,8)
	movq	40(%rbx), %rax
	movq	(%rax,%rdx,8), %rax
	movq	24(%r14), %rcx
	movq	%rax, (%rcx,%rdx,8)
	movq	32(%rbx), %rax
	movzbl	12(%rbx), %ecx
	movl	$1, %edi
	shll	%cl, %edi
	movq	(%rax,%rdx,8), %rax
	movq	(%rax), %rcx
	movslq	%edi, %rdi
	subq	%rdi, %rcx
	movq	16(%r14), %rsi
	movq	(%rsi,%rdx,8), %rsi
	movq	%rcx, (%rsi)
	movq	8(%rax), %rax
	subq	%rdi, %rax
	movq	%rax, 8(%rsi)
	movq	24(%rbx), %rax
	movq	(%rax,%rdx,8), %rax
	movq	(%rax), %rcx
	movq	8(%r14), %rsi
	movq	(%rsi,%rdx,8), %rsi
	movq	%rcx, (%rsi)
	movq	8(%rax), %rax
	movq	%rax, 8(%rsi)
	incq	%rdx
	cmpq	$15, %rdx
	jne	LBB0_12
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEVC_SLICE_I,8,3               ## @HEVC_SLICE_I
	.comm	_HEVC_SLICE_P,8,3               ## @HEVC_SLICE_P
	.comm	_HEVC_SLICE_B,8,3               ## @HEVC_SLICE_B
	.comm	_L0,8,3                         ## @L0
	.comm	_L1,8,3                         ## @L1
	.no_dead_strip	_fill_pred_weight_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_pred_weight_table
_fill_pred_weight_table:                ; @fill_pred_weight_table
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x2, #64]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [x19, #32]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [x19, #56]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [x19, #24]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [x19, #48]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [x19, #40]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	xzr, [x19]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _HEVC_SLICE_I@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HEVC_SLICE_I@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.1:
Lloh3:
	adrp	x9, _HEVC_SLICE_P@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HEVC_SLICE_P@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x9, [x21, #8]
	ldr	w9, [x9, #4]
	cbz	w9, LBB0_14
LBB0_3:
Lloh6:
	adrp	x9, _HEVC_SLICE_B@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HEVC_SLICE_B@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	x8, x10
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_14
LBB0_5:
	ldr	w8, [x20, #8]
	str	w8, [x19, #4]
	ldr	x10, [x21]
	ldr	x10, [x10]
	cbz	x10, LBB0_7
; %bb.6:
	ldr	w10, [x20, #12]
	sub	w10, w10, w8
	str	w10, [x19]
LBB0_7:
	mov	x10, #0
	mov	w11, #1
	lsl	w8, w11, w8
	sub	x8, x10, w8, sxtw
Lloh8:
	adrp	x12, _L0@GOTPAGE
Lloh9:
	ldr	x12, [x12, _L0@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x20, #16]
	ldr	x14, [x12]
	ldrsw	x13, [x13, x14, lsl #2]
	cmp	x10, x13
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x13, [x20, #80]
	lsl	x14, x10, #3
	ldr	x13, [x13, x14]
	add	x13, x13, x8, lsl #3
	ldr	x15, [x19, #64]
	str	x13, [x15, x14]
	ldr	x13, [x20, #72]
	ldr	x13, [x13, x14]
	ldr	x15, [x19, #56]
	str	x13, [x15, x14]
	ldp	x15, x13, [x20, #56]
	ldr	x13, [x13, x14]
	ldr	x16, [x13]
	ldr	w17, [x20, #12]
	lsl	w17, w11, w17
	sxtw	x17, w17
	sub	x16, x16, x17
	ldp	x1, x0, [x19, #40]
	ldr	x0, [x0, x14]
	str	x16, [x0]
	ldr	x13, [x13, #8]
	sub	x13, x13, x17
	str	x13, [x0, #8]
	ldr	x13, [x15, x14]
	ldr	x14, [x1, x14]
	ldr	x15, [x13]
	str	x15, [x14]
	ldr	x13, [x13, #8]
	str	x13, [x14, #8]
	add	x10, x10, #1
	cmp	x10, #15
	b.ne	LBB0_8
LBB0_10:
	ldr	x10, [x20]
	ldr	x9, [x9]
	cmp	x10, x9
	b.ne	LBB0_14
; %bb.11:
	mov	x9, #0
Lloh10:
	adrp	x10, _L1@GOTPAGE
Lloh11:
	ldr	x10, [x10, _L1@GOTPAGEOFF]
	mov	w11, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x20, #16]
	ldr	x13, [x10]
	ldrsw	x12, [x12, x13, lsl #2]
	cmp	x9, x12
	b.ge	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x12, [x20, #48]
	lsl	x13, x9, #3
	ldr	x12, [x12, x13]
	add	x12, x12, x8, lsl #3
	ldr	x14, [x19, #32]
	str	x12, [x14, x13]
	ldr	x12, [x20, #40]
	ldr	x12, [x12, x13]
	ldr	x14, [x19, #24]
	str	x12, [x14, x13]
	ldp	x14, x12, [x20, #24]
	ldr	x12, [x12, x13]
	ldr	x15, [x12]
	ldr	w16, [x20, #12]
	lsl	w16, w11, w16
	sxtw	x16, w16
	sub	x15, x15, x16
	ldp	x0, x17, [x19, #8]
	ldr	x17, [x17, x13]
	str	x15, [x17]
	ldr	x12, [x12, #8]
	sub	x12, x12, x16
	str	x12, [x17, #8]
	ldr	x12, [x14, x13]
	ldr	x13, [x0, x13]
	ldr	x14, [x12]
	str	x14, [x13]
	ldr	x12, [x12, #8]
	str	x12, [x13, #8]
	add	x9, x9, #1
	cmp	x9, #15
	b.ne	LBB0_12
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HEVC_SLICE_I,8,3               ; @HEVC_SLICE_I
	.comm	_HEVC_SLICE_P,8,3               ; @HEVC_SLICE_P
	.comm	_HEVC_SLICE_B,8,3               ; @HEVC_SLICE_B
	.comm	_L0,8,3                         ; @L0
	.comm	_L1,8,3                         ; @L1
	.no_dead_strip	_fill_pred_weight_table
.subsections_via_symbols
