	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvp5150_g_sliced_vbi_cap
_tvp5150_g_sliced_vbi_cap:              ## @tvp5150_g_sliced_vbi_cap
	.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	%rsi, %r15
	movl	(%rdi), %edi
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movl	$1, %esi
	callq	_dev_dbg_lvl
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_vbi_ram_default@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	%ecx, (%r15)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	(%r14), %rdi
	leaq	(%rbx,%rbx,2), %rsi
	movl	8(%rdi,%rsi,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%rdi,%rsi,4), %rax
	cmpl	4(%rdi,%rsi,4), %eax
	jg	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rdx
	movq	(%rdx), %rdx
	orl	%ecx, (%rdx,%rax,4)
	leaq	(%rdi,%rsi,4), %rcx
	addq	$8, %rcx
	cmpl	-4(%rcx), %eax
	jge	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx), %esi
	orl	%esi, 4(%rdx,%rax,4)
	incq	%rax
	movslq	-4(%rcx), %rsi
	cmpq	%rsi, %rax
	jl	LBB0_5
	jmp	LBB0_6
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"g_sliced_vbi_cap\n"

	.comm	_vbi_ram_default,8,3            ## @vbi_ram_default
	.no_dead_strip	_tvp5150_g_sliced_vbi_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvp5150_g_sliced_vbi_cap
_tvp5150_g_sliced_vbi_cap:              ; @tvp5150_g_sliced_vbi_cap
	.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, x1
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dev_dbg_lvl
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh5:
	adrp	x20, _vbi_ram_default@GOTPAGE
Lloh6:
	ldr	x20, [x20, _vbi_ram_default@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x21, #0
	mov	w22, #12
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	orr	w8, w8, w11
	str	w8, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x0, [x20]
	madd	x8, x21, x22, x0
	ldr	w11, [x8, #8]!
	cbz	w11, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mul	x10, x21, x22
	add	x9, x0, x10
	ldrsw	x10, [x0, x10]
	ldr	w12, [x9, #4]!
	cmp	w10, w12
	b.gt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x19, #8]
	ldr	x12, [x12]
	lsl	x13, x10, #2
	ldr	w14, [x12, x13]
	orr	w11, w14, w11
	str	w11, [x12, x13]
	ldr	w11, [x9]
	cmp	w10, w11
	b.ge	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x11, x12, #4
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x12, x10, #2
	add	x13, x10, #1
	ldr	w10, [x8]
	ldr	w14, [x11, x12]
	orr	w10, w14, w10
	str	w10, [x11, x12]
	ldrsw	x12, [x9]
	mov	x10, x13
	cmp	x13, x12
	b.lt	LBB0_9
	b	LBB0_2
LBB0_10:
	mov	w0, #0
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"g_sliced_vbi_cap\n"

	.comm	_vbi_ram_default,8,3            ; @vbi_ram_default
	.no_dead_strip	_tvp5150_g_sliced_vbi_cap
.subsections_via_symbols
