	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvp5150_s_sliced_fmt
_tvp5150_s_sliced_fmt:                  ## @tvp5150_s_sliced_fmt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_to_tvp5150
	movq	%rax, %r14
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.1:
	movq	8(%r12), %rdx
	movq	(%rdx), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdx), %rax
	movq	$0, (%rax,%rbx,8)
	movq	(%rcx,%rbx,8), %rsi
	movq	%r15, %rdi
	movl	$240, %edx
	movl	%ebx, %ecx
	movl	$3, %r8d
	callq	_tvp5150_set_vbi
	movq	8(%r12), %rdx
	movq	(%rdx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	$24, %rbx
	jne	LBB0_2
## %bb.3:
	movl	(%r14), %edi
	movq	_TVP5150_FIFO_OUT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_regmap_write
	jmp	LBB0_6
LBB0_4:
	movl	(%r14), %edi
	movq	_TVP5150_FIFO_OUT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	(%r14), %edi
	movq	_TVP5150_FULL_FIELD_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movq	_TVP5150_LINE_MODE_INI@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_TVP5150_LINE_MODE_END@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ebx
	jg	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	%ebx, %esi
	movl	$255, %edx
	callq	_regmap_write
	leal	1(%rbx), %eax
	cmpl	(%r15), %ebx
	movl	%eax, %ebx
	jl	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TVP5150_FIFO_OUT_CTRL,4,2      ## @TVP5150_FIFO_OUT_CTRL
	.comm	_TVP5150_FULL_FIELD_ENA,4,2     ## @TVP5150_FULL_FIELD_ENA
	.comm	_TVP5150_LINE_MODE_INI,4,2      ## @TVP5150_LINE_MODE_INI
	.comm	_TVP5150_LINE_MODE_END,4,2      ## @TVP5150_LINE_MODE_END
	.no_dead_strip	_tvp5150_s_sliced_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvp5150_s_sliced_fmt
_tvp5150_s_sliced_fmt:                  ; @tvp5150_s_sliced_fmt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_to_tvp5150
	mov	x19, x0
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x22, #0
	ldr	x9, [x20, #8]
	ldr	x8, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x9, #8]
	lsl	x23, x22, #3
	str	xzr, [x9, x23]
	ldr	x1, [x8, x23]
	mov	x0, x21
	mov	w2, #240
	mov	x3, x22
	mov	w4, #3
	bl	_tvp5150_set_vbi
	ldr	x9, [x20, #8]
	ldr	x8, [x9]
	str	x0, [x8, x23]
	add	x22, x22, #1
	cmp	x22, #24
	b.ne	LBB0_2
; %bb.3:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _TVP5150_FIFO_OUT_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TVP5150_FIFO_OUT_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_regmap_write
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _TVP5150_FIFO_OUT_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TVP5150_FIFO_OUT_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_regmap_write
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _TVP5150_FULL_FIELD_ENA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TVP5150_FULL_FIELD_ENA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_regmap_write
Lloh9:
	adrp	x8, _TVP5150_LINE_MODE_INI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TVP5150_LINE_MODE_INI@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
Lloh12:
	adrp	x21, _TVP5150_LINE_MODE_END@GOTPAGE
Lloh13:
	ldr	x21, [x21, _TVP5150_LINE_MODE_END@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w20, w8
	b.gt	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x20
	mov	w2, #255
	bl	_regmap_write
	add	w8, w20, #1
	ldr	w9, [x21]
	cmp	w20, w9
	mov	x20, x8
	b.lt	LBB0_5
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TVP5150_FIFO_OUT_CTRL,4,2      ; @TVP5150_FIFO_OUT_CTRL
	.comm	_TVP5150_FULL_FIELD_ENA,4,2     ; @TVP5150_FULL_FIELD_ENA
	.comm	_TVP5150_LINE_MODE_INI,4,2      ; @TVP5150_LINE_MODE_INI
	.comm	_TVP5150_LINE_MODE_END,4,2      ; @TVP5150_LINE_MODE_END
	.no_dead_strip	_tvp5150_s_sliced_fmt
.subsections_via_symbols
