	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tv_8532WriteEEprom
_tv_8532WriteEEprom:                    ## @tv_8532WriteEEprom
	.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
	movq	%rdi, %r14
	movq	_R01_TIMING_CONTROL_LOW@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_CMD_EEprom_Open@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_reg_w1
	movq	_eeprom_data@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movq	_R06_WTRAM_DATA_H@GOTPCREL(%rip), %r15
	movq	_R08_RAM_WRITE_ACTION@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_R03_TABLE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_reg_w1
	movq	_R04_WTRAM_DATA_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	8(%rax), %edx
	movq	%r14, %rdi
	callq	_reg_w1
	movq	_R05_WTRAM_DATA_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	4(%rax), %edx
	movq	%r14, %rdi
	callq	_reg_w1
	movl	(%r15), %esi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_reg_w1
	movl	(%r13), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_reg_w1
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.3:
	movq	_R01_TIMING_CONTROL_LOW@GOTPCREL(%rip), %r15
LBB0_4:
	movq	_R07_TABLE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_reg_w1
	movl	(%r15), %esi
	movq	_CMD_EEprom_Close@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reg_w1                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_R01_TIMING_CONTROL_LOW,4,2     ## @R01_TIMING_CONTROL_LOW
	.comm	_CMD_EEprom_Open,4,2            ## @CMD_EEprom_Open
	.comm	_eeprom_data,8,3                ## @eeprom_data
	.comm	_R03_TABLE_ADDR,4,2             ## @R03_TABLE_ADDR
	.comm	_R04_WTRAM_DATA_L,4,2           ## @R04_WTRAM_DATA_L
	.comm	_R05_WTRAM_DATA_M,4,2           ## @R05_WTRAM_DATA_M
	.comm	_R06_WTRAM_DATA_H,4,2           ## @R06_WTRAM_DATA_H
	.comm	_R08_RAM_WRITE_ACTION,4,2       ## @R08_RAM_WRITE_ACTION
	.comm	_R07_TABLE_LEN,4,2              ## @R07_TABLE_LEN
	.comm	_CMD_EEprom_Close,4,2           ## @CMD_EEprom_Close
	.no_dead_strip	_tv_8532WriteEEprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tv_8532WriteEEprom
_tv_8532WriteEEprom:                    ; @tv_8532WriteEEprom
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _R01_TIMING_CONTROL_LOW@GOTPAGE
Lloh1:
	ldr	x21, [x21, _R01_TIMING_CONTROL_LOW@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _CMD_EEprom_Open@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_EEprom_Open@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_reg_w1
Lloh5:
	adrp	x22, _eeprom_data@GOTPAGE
Lloh6:
	ldr	x22, [x22, _eeprom_data@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
Lloh7:
	adrp	x23, _R03_TABLE_ADDR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _R03_TABLE_ADDR@GOTPAGEOFF]
Lloh9:
	adrp	x24, _R04_WTRAM_DATA_L@GOTPAGE
Lloh10:
	ldr	x24, [x24, _R04_WTRAM_DATA_L@GOTPAGEOFF]
Lloh11:
	adrp	x25, _R05_WTRAM_DATA_M@GOTPAGE
Lloh12:
	ldr	x25, [x25, _R05_WTRAM_DATA_M@GOTPAGEOFF]
Lloh13:
	adrp	x26, _R06_WTRAM_DATA_H@GOTPAGE
Lloh14:
	ldr	x26, [x26, _R06_WTRAM_DATA_H@GOTPAGEOFF]
Lloh15:
	adrp	x27, _R08_RAM_WRITE_ACTION@GOTPAGE
Lloh16:
	ldr	x27, [x27, _R08_RAM_WRITE_ACTION@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	bl	_reg_w1
	ldr	w1, [x24]
	ldr	x8, [x22]
	lsl	x28, x20, #3
	ldr	x8, [x8, x28]
	ldr	w2, [x8, #8]
	mov	x0, x19
	bl	_reg_w1
	ldr	w1, [x25]
	ldr	x8, [x22]
	ldr	x8, [x8, x28]
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_reg_w1
	ldr	w1, [x26]
	ldr	x8, [x22]
	ldr	x8, [x8, x28]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_reg_w1
	ldr	w1, [x27]
	mov	x0, x19
	mov	w2, #0
	bl	_reg_w1
	add	x20, x20, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x20, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
Lloh17:
	adrp	x8, _R07_TABLE_LEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _R07_TABLE_LEN@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_reg_w1
	ldr	w1, [x21]
Lloh20:
	adrp	x8, _CMD_EEprom_Close@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CMD_EEprom_Close@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	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
	b	_reg_w1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_R01_TIMING_CONTROL_LOW,4,2     ; @R01_TIMING_CONTROL_LOW
	.comm	_CMD_EEprom_Open,4,2            ; @CMD_EEprom_Open
	.comm	_eeprom_data,8,3                ; @eeprom_data
	.comm	_R03_TABLE_ADDR,4,2             ; @R03_TABLE_ADDR
	.comm	_R04_WTRAM_DATA_L,4,2           ; @R04_WTRAM_DATA_L
	.comm	_R05_WTRAM_DATA_M,4,2           ; @R05_WTRAM_DATA_M
	.comm	_R06_WTRAM_DATA_H,4,2           ; @R06_WTRAM_DATA_H
	.comm	_R08_RAM_WRITE_ACTION,4,2       ; @R08_RAM_WRITE_ACTION
	.comm	_R07_TABLE_LEN,4,2              ; @R07_TABLE_LEN
	.comm	_CMD_EEprom_Close,4,2           ; @CMD_EEprom_Close
	.no_dead_strip	_tv_8532WriteEEprom
.subsections_via_symbols
