	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vivid_vbi_gen_wss_raw
LCPI0_0:
	.long	128                             ## 0x80
	.long	64                              ## 0x40
	.long	32                              ## 0x20
	.long	16                              ## 0x10
LCPI0_1:
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vivid_vbi_gen_wss_raw:                 ## @vivid_vbi_gen_wss_raw
	.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	$616, %rsp                      ## imm = 0x268
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-608(%rbp), %r12
	movl	$548, %esi                      ## imm = 0x224
	movq	%r12, %rdi
	callq	___bzero
	movq	%r12, %rdi
	movl	$521957831, %esi                ## imm = 0x1F1C71C7
	movl	$29, %edx
	callq	_wss_insert
	leaq	-492(%rbp), %rdi
	movl	$1981471, %esi                  ## imm = 0x1E3C1F
	movl	$24, %edx
	callq	_wss_insert
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %ebx
	shll	$8, %ebx
	orl	%ecx, %ebx
	leaq	-396(%rbp), %rdi
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [128,64,32,16]
	pand	%xmm0, %xmm1
	pand	LCPI0_1(%rip), %xmm0
	pxor	%xmm2, %xmm2
	pcmpeqd	%xmm2, %xmm0
	pcmpeqd	%xmm2, %xmm1
	packssdw	%xmm0, %xmm1
	packsswb	%xmm1, %xmm1
	pmovmskb	%xmm1, %r15d
	testb	$-128, %r15b
	movl	$7, %r12d
	movl	$56, %esi
	cmovnel	%r12d, %esi
	movl	$6, %edx
	callq	_wss_insert
	testb	$64, %r15b
	movl	$56, %esi
	cmovnel	%r12d, %esi
	leaq	-372(%rbp), %rdi
	movl	$6, %edx
	callq	_wss_insert
	testb	$32, %r15b
	movl	$56, %esi
	cmovnel	%r12d, %esi
	leaq	-348(%rbp), %rdi
	movl	$6, %edx
	callq	_wss_insert
	testb	$16, %r15b
	movl	$56, %esi
	cmovnel	%r12d, %esi
	leaq	-324(%rbp), %rdi
	movl	$6, %edx
	callq	_wss_insert
	testb	$8, %r15b
	movl	$56, %esi
	cmovnel	%r12d, %esi
	leaq	-300(%rbp), %rdi
	movl	$6, %edx
	callq	_wss_insert
	testb	$4, %r15b
	movl	$56, %esi
	cmovnel	%r12d, %esi
	leaq	-276(%rbp), %rdi
	movl	$6, %edx
	callq	_wss_insert
	testb	$2, %r15b
	movl	$56, %esi
	cmovnel	%r12d, %esi
	leaq	-252(%rbp), %rdi
	movl	$6, %edx
	callq	_wss_insert
	testb	$1, %r15b
	movl	$56, %esi
	cmovnel	%r12d, %esi
	leaq	-228(%rbp), %rdi
	movl	$6, %edx
	callq	_wss_insert
	leaq	-204(%rbp), %rdi
	testl	$256, %ebx                      ## imm = 0x100
	movl	$56, %esi
	cmovel	%r12d, %esi
	movl	$6, %edx
	callq	_wss_insert
	leaq	-180(%rbp), %rdi
	testl	$512, %ebx                      ## imm = 0x200
	movl	$56, %esi
	cmovel	%r12d, %esi
	movl	$6, %edx
	callq	_wss_insert
	leaq	-156(%rbp), %rdi
	testl	$1024, %ebx                     ## imm = 0x400
	movl	$56, %esi
	cmovel	%r12d, %esi
	movl	$6, %edx
	callq	_wss_insert
	leaq	-132(%rbp), %rdi
	testl	$2048, %ebx                     ## imm = 0x800
	movl	$56, %esi
	cmovel	%r12d, %esi
	movl	$6, %edx
	callq	_wss_insert
	leaq	-108(%rbp), %rdi
	testl	$4096, %ebx                     ## imm = 0x1000
	movl	$56, %esi
	cmovel	%r12d, %esi
	movl	$6, %edx
	callq	_wss_insert
	leaq	-84(%rbp), %rdi
	testl	$8192, %ebx                     ## imm = 0x2000
	movl	$56, %esi
	cmovel	%r12d, %esi
	movl	$6, %edx
	callq	_wss_insert
	leaq	112(%r13), %rax
	movq	%rax, -632(%rbp)                ## 8-byte Spill
	leaq	16(%r13), %rax
	movq	%rax, -640(%rbp)                ## 8-byte Spill
	xorl	%r11d, %r11d
	movl	%r14d, %r10d
	xorl	%edx, %edx
	movl	%r14d, -612(%rbp)               ## 4-byte Spill
	jmp	LBB0_3
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	$5, %r9d
	movl	%r9d, %edx
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	%r14d, %r10d
	cmpq	$548, %r11                      ## imm = 0x224
	je	LBB0_17
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	movq	%r11, %rax
	incq	%r11
	movl	%r11d, %ecx
	imull	%r14d, %ecx
	imulq	$1801439851, %rcx, %rdi         ## imm = 0x6B5FCA6B
	shrq	$53, %rdi
	cmpl	%edi, %edx
	jae	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	imull	%r14d, %ecx
	addl	%r14d, %ecx
	imulq	$1801439851, %rcx, %r15         ## imm = 0x6B5FCA6B
	shrq	$53, %r15
	movl	-608(%rbp,%rax,4), %ecx
	movslq	%edx, %rax
	movl	%edx, %r9d
	notl	%r9d
	addl	%r9d, %r15d
	cmpl	$7, %r15d
	jb	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, -616(%rbp)                ## 4-byte Spill
	movl	%r10d, %esi
	imulq	$1801439851, %rsi, %rbx         ## imm = 0x6B5FCA6B
	shrq	$53, %rbx
	incq	%r15
	movq	%r15, %rsi
	andq	$-8, %rsi
	leaq	3(%rax), %rdx
	movq	%rdx, -624(%rbp)                ## 8-byte Spill
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movq	%rsi, -648(%rbp)                ## 8-byte Spill
	addq	$-8, %rsi
	movq	%rsi, %r8
	shrq	$3, %r8
	incq	%r8
	cmpq	$24, %rsi
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
                                        ## implicit-def: $r9
	xorl	%r12d, %r12d
	testb	$3, %r8b
	jne	LBB0_11
	jmp	LBB0_14
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-632(%rbp), %rsi                ## 8-byte Reload
	leaq	(%rsi,%rax,4), %r14
	addl	%ebx, %r9d
	incq	%r9
	andq	$-8, %r9
	addq	$-8, %r9
	shrq	$3, %r9
	incq	%r9
	andq	$-4, %r9
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, -112(%r14)
	movdqu	%xmm0, -96(%r14)
	movdqu	%xmm0, -80(%r14)
	movdqu	%xmm0, -64(%r14)
	movdqu	%xmm0, -48(%r14)
	movdqu	%xmm0, -32(%r14)
	movdqu	%xmm0, -16(%r14)
	movdqu	%xmm0, (%r14)
	subq	$-128, %r14
	addq	$-32, %r12
	addq	$-4, %r9
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r9
	subq	%r12, %r9
	addq	$-5, %r9
	subq	%r12, -624(%rbp)                ## 8-byte Folded Spill
	negq	%r12
	movl	-612(%rbp), %r14d               ## 4-byte Reload
	testb	$3, %r8b
	je	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	%rax, %r12
	movq	-640(%rbp), %rsi                ## 8-byte Reload
	leaq	(%rsi,%r12,4), %rsi
	subl	-616(%rbp), %ebx                ## 4-byte Folded Reload
	andb	$24, %bl
	addb	$-8, %bl
	shrb	$3, %bl
	incb	%bl
	movzbl	%bl, %edx
	andl	$3, %edx
	shlq	$3, %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, -16(%rsi,%rbx,4)
	movdqu	%xmm0, (%rsi,%rbx,4)
	addq	$8, %rbx
	cmpq	%rbx, %rdx
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-624(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%rbx), %r9
	addq	$-8, %r9
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-648(%rbp), %rdx                ## 8-byte Reload
	cmpq	%rdx, %r15
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	%rdx, %rax
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, (%r13,%rax,4)
	incq	%rax
	cmpl	%eax, %edi
	ja	LBB0_16
## %bb.1:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %edx
	jmp	LBB0_2
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.18:
	addq	$616, %rsp                      ## imm = 0x268
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vivid_vbi_gen_wss_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vivid_vbi_gen_wss_raw
_vivid_vbi_gen_wss_raw:                 ; @vivid_vbi_gen_wss_raw
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #560
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	w22, #19264
	movk	w22, #76, lsl #16
	add	x23, sp, #4
	add	x0, sp, #4
	mov	w1, #548
	bl	_bzero
	add	x0, sp, #4
	mov	w1, #29127
	movk	w1, #7964, lsl #16
	mov	w2, #29
	bl	_wss_insert
	add	x0, x23, #116
	mov	w1, #15391
	movk	w1, #30, lsl #16
	mov	w2, #24
	bl	_wss_insert
	ldr	x8, [x21]
	ldp	w26, w9, [x8]
	orr	w21, w26, w9, lsl #8
	add	x0, x23, #212
	tst	w26, #0x1
	mov	w24, #56
	mov	w25, #7
	csel	w1, w25, w24, eq
	mov	w2, #6
	bl	_wss_insert
	add	x0, x23, #236
	tst	w26, #0x2
	csel	w1, w25, w24, eq
	mov	w2, #6
	bl	_wss_insert
	add	x0, x23, #260
	tst	w26, #0x4
	csel	w1, w25, w24, eq
	mov	w2, #6
	bl	_wss_insert
	add	x0, x23, #284
	tst	w26, #0x8
	csel	w1, w25, w24, eq
	mov	w2, #6
	bl	_wss_insert
	add	x0, x23, #308
	tst	w26, #0x10
	csel	w1, w25, w24, eq
	mov	w2, #6
	bl	_wss_insert
	add	x0, x23, #332
	tst	w26, #0x20
	csel	w1, w25, w24, eq
	mov	w2, #6
	bl	_wss_insert
	add	x0, x23, #356
	tst	w26, #0x40
	csel	w1, w25, w24, eq
	mov	w2, #6
	bl	_wss_insert
	add	x0, x23, #380
	tst	w26, #0x80
	csel	w1, w25, w24, eq
	mov	w2, #6
	bl	_wss_insert
	add	x0, x23, #404
	tst	w21, #0x100
	csel	w1, w25, w24, eq
	mov	w2, #6
	bl	_wss_insert
	add	x0, x23, #428
	tst	w21, #0x200
	csel	w1, w25, w24, eq
	mov	w2, #6
	bl	_wss_insert
	add	x0, x23, #452
	tst	w21, #0x400
	csel	w1, w25, w24, eq
	mov	w2, #6
	bl	_wss_insert
	add	x0, x23, #476
	tst	w21, #0x800
	csel	w1, w25, w24, eq
	mov	w2, #6
	bl	_wss_insert
	add	x0, x23, #500
	tst	w21, #0x1000
	csel	w1, w25, w24, eq
	mov	w2, #6
	bl	_wss_insert
	add	x0, x23, #524
	tst	w21, #0x2000
	csel	w1, w25, w24, eq
	mov	w2, #6
	bl	_wss_insert
	mov	x13, #0
	mov	w10, #0
	add	x8, x20, #32
	mov	x9, x19
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w9, w9, w19
	mov	x13, x11
	cmp	x11, #548
	b.eq	LBB0_9
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_7 Depth 2
	add	x11, x13, #1
	mul	w12, w11, w19
	udiv	w12, w12, w22
	cmp	w10, w12
	b.hs	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	madd	w14, w13, w19, w19
	ldr	w13, [x23, x13, lsl #2]
	udiv	w14, w14, w22
	sxtw	x0, w10
	mvn	w17, w10
	add	w15, w14, w17
	mov	x14, x0
	cmp	w15, #15
	b.lo	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	udiv	w1, w9, w22
	add	x15, x15, #1
	and	x16, x15, #0x1fffffff0
	add	x14, x16, x0
	dup.4s	v0, w13
	add	w17, w17, w1
	add	x17, x17, #1
	and	x17, x17, #0x1fffffff0
	add	x0, x8, x0, lsl #2
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q0, q0, [x0, #-32]
	add	w10, w10, #16
	stp	q0, q0, [x0], #64
	subs	x17, x17, #16
	b.ne	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x15, x16
	b.eq	LBB0_1
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w13, [x20, x14, lsl #2]
	add	x14, x14, #1
	cmp	w12, w14
	b.hi	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x10, x14
	b	LBB0_1
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	add	sp, sp, #560
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vivid_vbi_gen_wss_raw
.subsections_via_symbols
