	.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	%rdi, %r14
	cmpq	$0, (%rsi)
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r15
	movq	8(%rsi), %rdx
	movq	(%rdx), %rcx
	xorl	%ebx, %ebx
	movq	_vbi_ram_default@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdx), %rax
	movq	$0, (%rax,%rbx,8)
	movl	(%r12), %esi
	movq	(%rcx,%rbx,8), %rdx
	movq	%r14, %rdi
	movl	$240, %ecx
	movl	%ebx, %r8d
	movl	$3, %r9d
	callq	_tvp5150_set_vbi
	movq	8(%r15), %rdx
	movq	(%rdx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	$24, %rbx
	jne	LBB0_2
## %bb.3:
	movq	_TVP5150_FIFO_OUT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_tvp5150_write
	jmp	LBB0_6
LBB0_4:
	movq	_TVP5150_FIFO_OUT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_tvp5150_write
	movq	_TVP5150_FULL_FIELD_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_tvp5150_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
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$255, %edx
	callq	_tvp5150_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	_vbi_ram_default,4,2            ## @vbi_ram_default
	.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	x19, x0
	ldr	x8, [x1]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x21, #0
	ldr	x9, [x1, #8]
	ldr	x8, [x9]
Lloh0:
	adrp	x22, _vbi_ram_default@GOTPAGE
Lloh1:
	ldr	x22, [x22, _vbi_ram_default@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x9, #8]
	lsl	x23, x21, #3
	str	xzr, [x9, x23]
	ldr	w1, [x22]
	ldr	x2, [x8, x23]
	mov	x0, x19
	mov	w3, #240
	mov	x4, x21
	mov	w5, #3
	bl	_tvp5150_set_vbi
	ldr	x9, [x20, #8]
	ldr	x8, [x9]
	str	x0, [x8, x23]
	add	x21, x21, #1
	cmp	x21, #24
	b.ne	LBB0_2
; %bb.3:
Lloh2:
	adrp	x8, _TVP5150_FIFO_OUT_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TVP5150_FIFO_OUT_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_tvp5150_write
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _TVP5150_FIFO_OUT_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TVP5150_FIFO_OUT_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_tvp5150_write
Lloh8:
	adrp	x8, _TVP5150_FULL_FIELD_ENA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TVP5150_FULL_FIELD_ENA@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_tvp5150_write
Lloh11:
	adrp	x8, _TVP5150_LINE_MODE_INI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TVP5150_LINE_MODE_INI@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
Lloh14:
	adrp	x21, _TVP5150_LINE_MODE_END@GOTPAGE
Lloh15:
	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
	mov	x0, x19
	mov	x1, x20
	mov	w2, #255
	bl	_tvp5150_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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_vbi_ram_default,4,2            ; @vbi_ram_default
	.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
