	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_start
_sd_start:                              ## @sd_start
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_R0C_AD_WIDTHL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$232, %edx
	callq	_reg_w1
	movq	_R0D_AD_WIDTHH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_reg_w1
	movq	_R28_QUANT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$144, %edx
	callq	_reg_w1
	movq	16(%rbx), %rax
	movslq	8(%rbx), %rcx
	xorl	%edx, %edx
	cmpq	$0, (%rax,%rcx,8)
	sete	%dl
	movq	_R29_LINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$6, %edx
	addl	$65, %edx
	movq	%rbx, %rdi
	callq	_reg_w1
	movq	_R2C_POLARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_reg_w1
	movq	_R2D_POINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$20, %edx
	callq	_reg_w1
	movq	_R2E_POINTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_reg_w1
	movq	_R2F_POINTB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$18, %edx
	callq	_reg_w1
	movq	_R30_POINTBH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_reg_w1
	movq	%rbx, %rdi
	callq	_tv_8532_setReg
	movq	_R31_UPD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_reg_w1
	movl	$200, %edi
	callq	_msleep
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_reg_w1
	movq	$0, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R0C_AD_WIDTHL,4,2              ## @R0C_AD_WIDTHL
	.comm	_R0D_AD_WIDTHH,4,2              ## @R0D_AD_WIDTHH
	.comm	_R28_QUANT,4,2                  ## @R28_QUANT
	.comm	_R29_LINE,4,2                   ## @R29_LINE
	.comm	_R2C_POLARITY,4,2               ## @R2C_POLARITY
	.comm	_R2D_POINT,4,2                  ## @R2D_POINT
	.comm	_R2E_POINTH,4,2                 ## @R2E_POINTH
	.comm	_R2F_POINTB,4,2                 ## @R2F_POINTB
	.comm	_R30_POINTBH,4,2                ## @R30_POINTBH
	.comm	_R31_UPD,4,2                    ## @R31_UPD
	.no_dead_strip	_sd_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_start
_sd_start:                              ; @sd_start
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _R0C_AD_WIDTHL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R0C_AD_WIDTHL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #232
	bl	_reg_w1
Lloh3:
	adrp	x8, _R0D_AD_WIDTHH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R0D_AD_WIDTHH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3
	bl	_reg_w1
Lloh6:
	adrp	x8, _R28_QUANT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R28_QUANT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #144
	bl	_reg_w1
	ldp	x9, x8, [x19, #8]
	sbfiz	x9, x9, #3, #32
	ldr	x8, [x8, x9]
Lloh9:
	adrp	x9, _R29_LINE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _R29_LINE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	cmp	x8, #0
	mov	w8, #65
	mov	w9, #129
	csel	w2, w9, w8, eq
	mov	x0, x19
	bl	_reg_w1
Lloh12:
	adrp	x8, _R2C_POLARITY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _R2C_POLARITY@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16
	bl	_reg_w1
Lloh15:
	adrp	x8, _R2D_POINT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _R2D_POINT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #20
	bl	_reg_w1
Lloh18:
	adrp	x8, _R2E_POINTH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _R2E_POINTH@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_reg_w1
Lloh21:
	adrp	x8, _R2F_POINTB@GOTPAGE
Lloh22:
	ldr	x8, [x8, _R2F_POINTB@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #18
	bl	_reg_w1
Lloh24:
	adrp	x8, _R30_POINTBH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _R30_POINTBH@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_reg_w1
	mov	x0, x19
	bl	_tv_8532_setReg
Lloh27:
	adrp	x20, _R31_UPD@GOTPAGE
Lloh28:
	ldr	x20, [x20, _R31_UPD@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_reg_w1
	mov	w0, #200
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_reg_w1
	str	xzr, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_R0C_AD_WIDTHL,4,2              ; @R0C_AD_WIDTHL
	.comm	_R0D_AD_WIDTHH,4,2              ; @R0D_AD_WIDTHH
	.comm	_R28_QUANT,4,2                  ; @R28_QUANT
	.comm	_R29_LINE,4,2                   ; @R29_LINE
	.comm	_R2C_POLARITY,4,2               ; @R2C_POLARITY
	.comm	_R2D_POINT,4,2                  ; @R2D_POINT
	.comm	_R2E_POINTH,4,2                 ; @R2E_POINTH
	.comm	_R2F_POINTB,4,2                 ; @R2F_POINTB
	.comm	_R30_POINTBH,4,2                ; @R30_POINTBH
	.comm	_R31_UPD,4,2                    ; @R31_UPD
	.no_dead_strip	_sd_start
.subsections_via_symbols
