	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv680_set_pict
_stv680_set_pict:                       ## @stv680_set_pict
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movq	_STV_VIDEO_PALETTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	8(%rsi), %rcx
	cmpq	%rcx, (%rdi)
	je	LBB0_4
## %bb.3:
	movl	$1, 8(%rdi)
	movq	%rcx, (%rdi)
LBB0_4:
	movl	32(%rsi), %ecx
	movl	%ecx, 40(%rdi)
	movq	%rax, 16(%rdi)
	movups	16(%rsi), %xmm0
	movups	%xmm0, 24(%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_PDEBUG
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STV_VIDEO_PALETTE,8,3          ## @STV_VIDEO_PALETTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STV(e): Palette set error in _set_pic"

	.no_dead_strip	_stv680_set_pict
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv680_set_pict
_stv680_set_pict:                       ; @stv680_set_pict
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x9, [x1]
Lloh0:
	adrp	x8, _STV_VIDEO_PALETTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STV_VIDEO_PALETTE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	x10, [x0]
	ldr	x8, [x1, #8]
	cmp	x10, x8
	b.eq	LBB0_3
; %bb.2:
	mov	w10, #1
	str	w10, [x0, #8]
	str	x8, [x0]
LBB0_3:
	mov	w8, #0
	ldr	w10, [x1, #32]
	str	w10, [x0, #40]
	str	x9, [x0, #16]
	ldr	q0, [x1, #16]
	stur	q0, [x0, #24]
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_PDEBUG
	mov	w8, #1
LBB0_5:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_STV_VIDEO_PALETTE,8,3          ; @STV_VIDEO_PALETTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STV(e): Palette set error in _set_pic"

	.no_dead_strip	_stv680_set_pict
.subsections_via_symbols
