	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvp5150_vdp_init
_tvp5150_vdp_init:                      ## @tvp5150_vdp_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_to_tvp5150
	movq	(%rax), %r14
	movq	_TVP5150_FULL_FIELD_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	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
	ja	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$255, %edx
	callq	_regmap_write
	incl	%ebx
	cmpl	(%r15), %ebx
	jbe	LBB0_8
LBB0_2:
	movq	_vbi_ram_default@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movl	$16, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$24, %r15
	cmpq	%rax, %r13
	movq	_vbi_ram_default@GOTPCREL(%rip), %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r12
	cmpl	$0, (%r12,%r15)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_TVP5150_CONF_RAM_ADDR_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-16(%r12,%r15), %edx
	sarl	$8, %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movq	_TVP5150_CONF_RAM_ADDR_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-16(%r12,%r15), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movq	_TVP5150_VDP_CONF_RAM_DATA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	-8(%r12,%r15), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movl	(%rbx), %esi
	movq	-8(%r12,%r15), %rax
	movl	4(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movl	(%rbx), %esi
	movq	-8(%r12,%r15), %rax
	movl	8(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movl	(%rbx), %esi
	movq	-8(%r12,%r15), %rax
	movl	12(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movl	(%rbx), %esi
	movq	-8(%r12,%r15), %rax
	movl	16(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movl	(%rbx), %esi
	movq	-8(%r12,%r15), %rax
	movl	20(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movl	(%rbx), %esi
	movq	-8(%r12,%r15), %rax
	movl	24(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movl	(%rbx), %esi
	movq	-8(%r12,%r15), %rax
	movl	28(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movl	(%rbx), %esi
	movq	-8(%r12,%r15), %rax
	movl	32(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movl	(%rbx), %esi
	movq	-8(%r12,%r15), %rax
	movl	36(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movl	(%rbx), %esi
	movq	-8(%r12,%r15), %rax
	movl	40(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movl	(%rbx), %esi
	movq	-8(%r12,%r15), %rax
	movl	44(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movl	(%rbx), %esi
	movq	-8(%r12,%r15), %rax
	movl	48(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movl	(%rbx), %esi
	movq	-8(%r12,%r15), %rax
	movl	52(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movl	(%rbx), %esi
	movq	-8(%r12,%r15), %rax
	movl	56(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movl	(%rbx), %esi
	movq	-8(%r12,%r15), %rax
	movl	60(%rax), %edx
	movq	%r14, %rdi
	callq	_regmap_write
	movq	_vbi_ram_default@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_vbi_ram_default,8,3            ## @vbi_ram_default
	.comm	_TVP5150_CONF_RAM_ADDR_HIGH,4,2 ## @TVP5150_CONF_RAM_ADDR_HIGH
	.comm	_TVP5150_CONF_RAM_ADDR_LOW,4,2  ## @TVP5150_CONF_RAM_ADDR_LOW
	.comm	_TVP5150_VDP_CONF_RAM_DATA,4,2  ## @TVP5150_VDP_CONF_RAM_DATA
	.no_dead_strip	_tvp5150_vdp_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvp5150_vdp_init
_tvp5150_vdp_init:                      ; @tvp5150_vdp_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_to_tvp5150
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _TVP5150_FULL_FIELD_ENA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TVP5150_FULL_FIELD_ENA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_regmap_write
Lloh3:
	adrp	x8, _TVP5150_LINE_MODE_INI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TVP5150_LINE_MODE_INI@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x21, _TVP5150_LINE_MODE_END@GOTPAGE
Lloh7:
	ldr	x21, [x21, _TVP5150_LINE_MODE_END@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	cmp	w20, w8
	b.hi	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #255
	bl	_regmap_write
	add	w20, w20, #1
	b	LBB0_1
LBB0_3:
Lloh8:
	adrp	x20, _vbi_ram_default@GOTPAGE
Lloh9:
	ldr	x20, [x20, _vbi_ram_default@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x21, #0
	mov	x22, #0
Lloh10:
	adrp	x23, _TVP5150_CONF_RAM_ADDR_HIGH@GOTPAGE
Lloh11:
	ldr	x23, [x23, _TVP5150_CONF_RAM_ADDR_HIGH@GOTPAGEOFF]
Lloh12:
	adrp	x24, _TVP5150_CONF_RAM_ADDR_LOW@GOTPAGE
Lloh13:
	ldr	x24, [x24, _TVP5150_CONF_RAM_ADDR_LOW@GOTPAGEOFF]
Lloh14:
	adrp	x25, _TVP5150_VDP_CONF_RAM_DATA@GOTPAGE
Lloh15:
	ldr	x25, [x25, _TVP5150_VDP_CONF_RAM_DATA@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	add	x21, x21, #24
	cmp	x22, w0, sxtw
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	add	x26, x0, x21
	ldr	w8, [x26, #16]
	cbz	w8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x23]
	ldr	w8, [x26]
	asr	w2, w8, #8
	mov	x0, x19
	bl	_regmap_write
	ldr	w1, [x24]
	ldr	w2, [x26]
	mov	x0, x19
	bl	_regmap_write
	ldr	w1, [x25]
	ldr	x8, [x26, #8]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_regmap_write
	ldr	w1, [x25]
	ldr	x8, [x26, #8]
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_regmap_write
	ldr	w1, [x25]
	ldr	x8, [x26, #8]
	ldr	w2, [x8, #8]
	mov	x0, x19
	bl	_regmap_write
	ldr	w1, [x25]
	ldr	x8, [x26, #8]
	ldr	w2, [x8, #12]
	mov	x0, x19
	bl	_regmap_write
	ldr	w1, [x25]
	ldr	x8, [x26, #8]
	ldr	w2, [x8, #16]
	mov	x0, x19
	bl	_regmap_write
	ldr	w1, [x25]
	ldr	x8, [x26, #8]
	ldr	w2, [x8, #20]
	mov	x0, x19
	bl	_regmap_write
	ldr	w1, [x25]
	ldr	x8, [x26, #8]
	ldr	w2, [x8, #24]
	mov	x0, x19
	bl	_regmap_write
	ldr	w1, [x25]
	ldr	x8, [x26, #8]
	ldr	w2, [x8, #28]
	mov	x0, x19
	bl	_regmap_write
	ldr	w1, [x25]
	ldr	x8, [x26, #8]
	ldr	w2, [x8, #32]
	mov	x0, x19
	bl	_regmap_write
	ldr	w1, [x25]
	ldr	x8, [x26, #8]
	ldr	w2, [x8, #36]
	mov	x0, x19
	bl	_regmap_write
	ldr	w1, [x25]
	ldr	x8, [x26, #8]
	ldr	w2, [x8, #40]
	mov	x0, x19
	bl	_regmap_write
	ldr	w1, [x25]
	ldr	x8, [x26, #8]
	ldr	w2, [x8, #44]
	mov	x0, x19
	bl	_regmap_write
	ldr	w1, [x25]
	ldr	x8, [x26, #8]
	ldr	w2, [x8, #48]
	mov	x0, x19
	bl	_regmap_write
	ldr	w1, [x25]
	ldr	x8, [x26, #8]
	ldr	w2, [x8, #52]
	mov	x0, x19
	bl	_regmap_write
	ldr	w1, [x25]
	ldr	x8, [x26, #8]
	ldr	w2, [x8, #56]
	mov	x0, x19
	bl	_regmap_write
	ldr	w1, [x25]
	ldr	x8, [x26, #8]
	ldr	w2, [x8, #60]
	mov	x0, x19
	bl	_regmap_write
	ldr	x0, [x20]
	b	LBB0_5
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_vbi_ram_default,8,3            ; @vbi_ram_default
	.comm	_TVP5150_CONF_RAM_ADDR_HIGH,4,2 ; @TVP5150_CONF_RAM_ADDR_HIGH
	.comm	_TVP5150_CONF_RAM_ADDR_LOW,4,2  ; @TVP5150_CONF_RAM_ADDR_LOW
	.comm	_TVP5150_VDP_CONF_RAM_DATA,4,2  ; @TVP5150_VDP_CONF_RAM_DATA
	.no_dead_strip	_tvp5150_vdp_init
.subsections_via_symbols
