	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_vaapi_plain_pred_weight_table
_fill_vaapi_plain_pred_weight_table:    ## @fill_vaapi_plain_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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rdi
	movq	8(%rdi), %rax
	movslq	%esi, %rsi
	movb	(%rax,%rsi), %al
	movb	%al, (%rdx)
	movq	16(%rdi), %rax
	movb	(%rax,%rsi), %al
	movb	%al, (%r9)
	movq	(%rdi), %rax
	movl	(%rax,%rsi,4), %r15d
	testq	%r15, %r15
	je	LBB0_12
## %bb.1:
	movq	%rcx, %r10
	movq	24(%rbp), %r9
	movq	16(%rbp), %r11
	movq	8(%rdi), %r14
	movq	16(%rdi), %rbx
	addq	%r15, %r15
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	48(%rdi), %ecx
	movl	$1, %edx
	shll	%cl, %edx
	movw	%dx, 2(%r11,%rax,2)
	xorl	%ecx, %ecx
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movw	%cx, 2(%r9,%rax,2)
	addq	$2, %rax
	cmpq	%rax, %r15
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%r14,%rsi)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rdi), %rcx
	movq	(%rcx,%rax,4), %rcx
	movq	(%rcx,%rsi,8), %rcx
	movzwl	(%rcx), %edx
	movw	%dx, (%r10,%rax)
	movzwl	2(%rcx), %ecx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	32(%rdi), %ecx
	movl	$1, %edx
	shll	%cl, %edx
	movw	%dx, (%r10,%rax)
	xorl	%ecx, %ecx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movw	%cx, (%r8,%rax)
	cmpb	$0, (%rbx,%rsi)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rdi), %rcx
	movq	(%rcx,%rax,4), %rcx
	movq	(%rcx,%rsi,8), %rcx
	movq	(%rcx), %rcx
	movzwl	(%rcx), %edx
	movw	%dx, (%r11,%rax,2)
	movzwl	2(%rcx), %ecx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	48(%rdi), %ecx
	movl	$1, %edx
	shll	%cl, %edx
	movw	%dx, (%r11,%rax,2)
	xorl	%ecx, %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movw	%cx, (%r9,%rax,2)
	cmpb	$0, (%rbx,%rsi)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rdi), %rcx
	movq	(%rcx,%rax,4), %rcx
	movq	(%rcx,%rsi,8), %rcx
	movq	8(%rcx), %rcx
	movzwl	(%rcx), %edx
	movw	%dx, 2(%r11,%rax,2)
	movzwl	2(%rcx), %ecx
	jmp	LBB0_11
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fill_vaapi_plain_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_vaapi_plain_pred_weight_table
_fill_vaapi_plain_pred_weight_table:    ; @fill_vaapi_plain_pred_weight_table
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0]
	ldr	x10, [x8, #8]
	sxtw	x9, w1
	ldrb	w10, [x10, x9]
	strb	w10, [x2]
	ldr	x10, [x8, #16]
	ldrb	w10, [x10, x9]
	strb	w10, [x5]
	ldr	x10, [x8]
	ldr	w10, [x10, w1, sxtw #2]
	cbz	w10, LBB0_12
; %bb.1:
	mov	x11, #0
	ldp	x12, x13, [x8, #8]
	add	x14, x7, #2
	add	x15, x6, #2
	mov	w16, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x8, #48]
	lsl	w0, w16, w0
	strh	w0, [x15]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	strh	w17, [x14], #4
	add	x11, x11, #1
	add	x15, x15, #4
	cmp	x10, x11
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w17, [x12, x9]
	cbz	w17, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x17, [x8, #24]
	ldr	x17, [x17, x11, lsl #3]
	ldr	x17, [x17, x9, lsl #3]
	ldrh	w0, [x17]
	strh	w0, [x3, x11, lsl #1]
	ldrh	w17, [x17, #2]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x8, #32]
	lsl	w0, w16, w0
	strh	w0, [x3, x11, lsl #1]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	strh	w17, [x4, x11, lsl #1]
	ldrb	w17, [x13, x9]
	cbz	w17, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x17, [x8, #40]
	ldr	x17, [x17, x11, lsl #3]
	ldr	x17, [x17, x9, lsl #3]
	ldr	x17, [x17]
	ldrh	w0, [x17]
	sturh	w0, [x15, #-2]
	ldrh	w17, [x17, #2]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x8, #48]
	lsl	w0, w16, w0
	sturh	w0, [x15, #-2]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	sturh	w17, [x14, #-2]
	ldrb	w17, [x13, x9]
	cbz	w17, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x17, [x8, #40]
	ldr	x17, [x17, x11, lsl #3]
	ldr	x17, [x17, x9, lsl #3]
	ldr	x17, [x17, #8]
	ldrh	w0, [x17]
	strh	w0, [x15]
	ldrh	w17, [x17, #2]
	b	LBB0_3
LBB0_12:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fill_vaapi_plain_pred_weight_table
.subsections_via_symbols
