	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0288_init
_stv0288_init:                          ## @stv0288_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	%r14, %rdi
	movl	$65, %esi
	movl	$4, %edx
	callq	_stv0288_writeregI
	movl	$50, %edi
	callq	_msleep
	movq	(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movl	(%rax), %esi
	movl	4(%rax), %edx
	cmpl	$255, %esi
	jne	LBB0_7
## %bb.6:
	cmpl	$255, %edx
	je	LBB0_10
LBB0_7:
	movl	$12, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_stv0288_writeregI
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	-4(%rax,%rbx), %esi
	movl	(%rax,%rbx), %edx
	addq	$8, %rbx
	cmpl	$255, %esi
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$255, %edx
	jne	LBB0_8
	jmp	LBB0_10
LBB0_1:
	movl	$4, %ebx
	movq	_stv0288_inittab@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax,%rbx), %edx
	movq	%r14, %rdi
	callq	_stv0288_writeregI
	addq	$8, %rbx
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	-4(%rax,%rbx), %esi
	cmpl	$255, %esi
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$255, (%rax,%rbx)
	jne	LBB0_4
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stv0288: init chip\n"

	.comm	_stv0288_inittab,8,3            ## @stv0288_inittab
	.no_dead_strip	_stv0288_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0288_init
_stv0288_init:                          ; @stv0288_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	mov	x0, x19
	mov	w1, #65
	mov	w2, #4
	bl	_stv0288_writeregI
	mov	w0, #50
	bl	_msleep
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.1:
	ldp	w1, w2, [x8]
	cmp	w1, #255
	b.ne	LBB0_3
; %bb.2:
	cmp	w2, #255
	b.eq	LBB0_10
LBB0_3:
	mov	x20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_stv0288_writeregI
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x8, x8, x20
	ldp	w1, w2, [x8, #8]
	add	x20, x20, #8
	cmp	w1, #255
	b.ne	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w2, #255
	b.ne	LBB0_4
	b	LBB0_10
LBB0_6:
	mov	x20, #0
Lloh2:
	adrp	x21, _stv0288_inittab@GOTPAGE
Lloh3:
	ldr	x21, [x21, _stv0288_inittab@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, x20
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_stv0288_writeregI
	add	x20, x20, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w1, [x8, x20]
	cmp	w1, #255
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x8, x20
	ldr	w9, [x9, #4]
	cmp	w9, #255
	b.ne	LBB0_7
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stv0288: init chip\n"

	.comm	_stv0288_inittab,8,3            ; @stv0288_inittab
	.no_dead_strip	_stv0288_init
.subsections_via_symbols
