	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function stv_init
LCPI0_0:
	.long	352                             ## 0x160
	.long	288                             ## 0x120
	.long	352                             ## 0x160
	.long	288                             ## 0x120
LCPI0_1:
	.long	320                             ## 0x140
	.long	240                             ## 0xf0
	.long	320                             ## 0x140
	.long	240                             ## 0xf0
LCPI0_2:
	.long	130                             ## 0x82
	.long	32767                           ## 0x7fff
	.long	32767                           ## 0x7fff
	.long	32767                           ## 0x7fff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_stv_init:                              ## @stv_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	$100, %edi
	callq	_udelay
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_stv_set_config
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	xorl	%edi, %edi
	movq	%r14, %rsi
	movl	$136, %edx
	movl	$22136, %ecx                    ## imm = 0x5678
	movq	%rbx, %r8
	movl	$2, %r9d
	callq	_stv_sndctrl
	cmpl	$2, %eax
	jne	LBB0_10
## %bb.5:
	cmpb	$86, (%rbx)
	jne	LBB0_7
## %bb.6:
	cmpb	$120, 1(%rbx)
	jne	LBB0_7
## %bb.11:
	movl	$2, %edi
	movq	%r14, %rsi
	movl	$6, %edx
	movl	$512, %ecx                      ## imm = 0x200
	movq	%rbx, %r8
	movl	$9, %r9d
	callq	_stv_sndctrl
	cmpl	$9, %eax
	jne	LBB0_10
## %bb.12:
	movl	$2, %edi
	movq	%r14, %rsi
	movl	$6, %edx
	movl	$512, %ecx                      ## imm = 0x200
	movq	%rbx, %r8
	movl	$34, %r9d
	callq	_stv_sndctrl
	testl	%eax, %eax
	jns	LBB0_16
## %bb.13:
	cmpb	$-96, 7(%rbx)
	jne	LBB0_16
## %bb.14:
	cmpb	$35, 8(%rbx)
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_67
LBB0_3:
	movq	%rbx, %rdi
	callq	_kfree
	leaq	L_.str.1(%rip), %rsi
LBB0_67:
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	jmp	LBB0_68
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	movl	$1, %edi
LBB0_9:
	xorl	%eax, %eax
	callq	_PDEBUG
LBB0_10:
	xorl	%edi, %edi
	movq	%r14, %rsi
	movl	$128, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movl	$2, %r9d
	callq	_stv_sndctrl
	movzbl	(%rbx), %edx
	movzbl	1(%rbx), %ecx
	leaq	L_.str.15(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	%rbx, %rdi
	callq	_kfree
LBB0_68:
	movl	$-1, %eax
LBB0_69:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%edi, %edi
	movq	%r14, %rsi
	movl	$138, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movl	$2, %r9d
	callq	_stv_sndctrl
	cmpl	$2, %eax
	jne	LBB0_10
## %bb.17:
	xorl	%edi, %edi
	movq	%r14, %rsi
	movl	$139, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movl	$36, %r9d
	callq	_stv_sndctrl
	cmpl	$36, %eax
	jne	LBB0_10
## %bb.18:
	xorl	%edi, %edi
	movq	%r14, %rsi
	movl	$133, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movl	$16, %r9d
	callq	_stv_sndctrl
	cmpl	$16, %eax
	jne	LBB0_10
## %bb.19:
	movzbl	7(%rbx), %eax
	movb	%al, (%r14)
	movq	$0, 4(%r14)
	movl	$0, 12(%r14)
	testb	$1, %al
	je	LBB0_21
## %bb.20:
	movl	$1, 4(%r14)
LBB0_21:
	testb	$2, %al
	je	LBB0_23
## %bb.22:
	movl	$1, 8(%r14)
LBB0_23:
	xorl	%ecx, %ecx
	testb	$8, %al
	je	LBB0_25
## %bb.24:
	movl	$1, 12(%r14)
	movl	$1, %ecx
LBB0_25:
	testl	%eax, %eax
	je	LBB0_26
## %bb.28:
	testb	$1, %al
	je	LBB0_30
## %bb.29:
	leaq	L_.str.5(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	movl	12(%r14), %ecx
LBB0_30:
	testl	%ecx, %ecx
	je	LBB0_32
## %bb.31:
	leaq	L_.str.6(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
LBB0_32:
	movzbl	(%rbx), %edx
	movzbl	1(%rbx), %ecx
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	movzbl	2(%rbx), %edx
	movzbl	3(%rbx), %ecx
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	movzbl	4(%rbx), %eax
	shll	$4, %eax
	movzbl	5(%rbx), %edx
	shrl	$4, %edx
	orl	%eax, %edx
	leaq	L_.str.9(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_stv_set_config
	testl	%eax, %eax
	js	LBB0_10
## %bb.33:
	xorl	%edi, %edi
	movq	%r14, %rsi
	movl	$133, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movl	$16, %r9d
	callq	_stv_sndctrl
	cmpl	$16, %eax
	jne	LBB0_10
## %bb.34:
	xorl	%edi, %edi
	movq	%r14, %rsi
	movl	$141, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movl	$8, %r9d
	callq	_stv_sndctrl
	cmpl	$8, %eax
	jne	LBB0_10
## %bb.35:
	movzbl	3(%rbx), %edx
	leaq	L_.str.10(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	xorl	%edi, %edi
	movq	%r14, %rsi
	movl	$135, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movl	$8, %r9d
	callq	_stv_sndctrl
	cmpl	$8, %eax
	jne	LBB0_10
## %bb.36:
	movb	(%rbx), %al
	movb	%al, 16(%r14)
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	cmpl	$0, 4(%r14)
	jne	LBB0_38
## %bb.37:
	movb	$3, %r15b
	cmpl	$0, 12(%r14)
	je	LBB0_39
LBB0_38:
	movb	%r15b, (%rbx)
LBB0_39:
	movl	$3, %edi
	movq	%r14, %rsi
	movl	$7, %edx
	movl	$256, %ecx                      ## imm = 0x100
	movq	%rbx, %r8
	movl	$8, %r9d
	callq	_stv_sndctrl
	cmpl	$8, %eax
	jne	LBB0_40
## %bb.41:
	movb	$-16, (%rbx)
	xorl	%edi, %edi
	movq	%r14, %rsi
	movl	$135, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movl	$8, %r9d
	callq	_stv_sndctrl
	cmpl	$1, 4(%r14)
	jne	LBB0_43
## %bb.42:
	cmpb	$0, (%rbx)
	jne	LBB0_45
LBB0_43:
	cmpl	$1, 12(%r14)
	movb	(%rbx), %al
	jne	LBB0_46
## %bb.44:
	cmpb	$3, %al
	je	LBB0_49
LBB0_45:
	leaq	L_.str.12(%rip), %rsi
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_26:
	leaq	L_.str.4(%rip), %rsi
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_40:
	leaq	L_.str.11(%rip), %rsi
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_46:
	testb	%al, %al
	jne	LBB0_48
## %bb.47:
	movl	$0, 20(%r14)
	leaq	L_.str.13(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	movb	(%rbx), %al
LBB0_48:
	cmpb	$3, %al
	jne	LBB0_50
LBB0_49:
	movl	$768, 20(%r14)                  ## imm = 0x300
	leaq	L_.str.14(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
LBB0_50:
	xorl	%edi, %edi
	movq	%r14, %rsi
	movl	$143, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movl	$16, %r9d
	callq	_stv_sndctrl
	cmpl	$16, %eax
	jne	LBB0_10
## %bb.51:
	movzbl	(%rbx), %eax
	shll	$24, %eax
	movzbl	1(%rbx), %ecx
	shlq	$16, %rcx
	cltq
	orq	%rcx, %rax
	movzbl	2(%rbx), %r15d
	shlq	$8, %r15
	orq	%rax, %r15
	movzbl	3(%rbx), %r12d
	movb	5(%rbx), %al
	movb	%al, 24(%r14)
	movb	7(%rbx), %al
	movb	%al, 25(%r14)
	movb	12(%rbx), %al
	movb	%al, 26(%r14)
	movq	%rbx, %rdi
	callq	_kfree
	cmpl	$1, 4(%r14)
	jne	LBB0_53
## %bb.52:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [352,288,352,288]
	movups	%xmm0, 28(%r14)
LBB0_53:
	orq	%r12, %r15
	cmpl	$1, 12(%r14)
	jne	LBB0_55
## %bb.54:
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [320,240,320,240]
	movups	%xmm0, 28(%r14)
LBB0_55:
	movq	%r15, 48(%r14)
	leaq	(%r15,%r15,2), %rax
	movq	%rax, 56(%r14)
	movzbl	24(%r14), %edx
	movzbl	25(%r14), %ecx
	leaq	L_.str.16(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	movl	36(%r14), %edx
	movl	40(%r14), %ecx
	movq	48(%r14), %r8
	leaq	L_.str.17(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	xorps	%xmm0, %xmm0
	movups	%xmm0, 112(%r14)
	movups	%xmm0, 128(%r14)
	movq	$0, 144(%r14)
	movups	%xmm0, 96(%r14)
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [130,32767,32767,32767]
	movups	%xmm0, 64(%r14)
	movl	$32767, 80(%r14)                ## imm = 0x7FFF
	movq	_STV_VIDEO_PALETTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r14)
	movl	$24, 84(%r14)
	movq	_swapRGB_on@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_swapRGB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edx
	orl	%ecx, %edx
	jne	LBB0_57
## %bb.56:
	leaq	L_.str.18(%rip), %rsi
	jmp	LBB0_64
LBB0_57:
	testl	%eax, %eax
	jne	LBB0_60
## %bb.58:
	cmpl	$1, %ecx
	jne	LBB0_60
## %bb.59:
	leaq	L_.str.19(%rip), %rsi
	jmp	LBB0_64
LBB0_60:
	cmpl	$1, %eax
	je	LBB0_61
## %bb.62:
	cmpl	$-1, %eax
	jne	LBB0_65
## %bb.63:
	leaq	L_.str.21(%rip), %rsi
	jmp	LBB0_64
LBB0_61:
	leaq	L_.str.20(%rip), %rsi
LBB0_64:
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
LBB0_65:
	movq	%r14, %rdi
	callq	_stv_set_video_mode
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jns	LBB0_69
## %bb.66:
	leaq	L_.str.22(%rip), %rsi
	jmp	LBB0_67
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STV(e): Out of (small buf) memory"

L_.str.1:                               ## @.str.1
	.asciz	"STV(e): set config 1,0,0 failed"

L_.str.2:                               ## @.str.2
	.asciz	"STV(e): camera ping failed!!"

L_.str.3:                               ## @.str.3
	.asciz	"STV(e): Could not get descriptor 0200."

L_.str.4:                               ## @.str.4
	.asciz	"STV(e): There are NO supported STV680 modes!!"

L_.str.5:                               ## @.str.5
	.asciz	"STV(i): CIF is supported"

L_.str.6:                               ## @.str.6
	.asciz	"STV(i): QVGA is supported"

L_.str.7:                               ## @.str.7
	.asciz	"STV(i): Firmware rev is %i.%i"

L_.str.8:                               ## @.str.8
	.asciz	"STV(i): ASIC rev is %i.%i"

L_.str.9:                               ## @.str.9
	.asciz	"STV(i): Sensor ID is %i"

L_.str.10:                              ## @.str.10
	.asciz	"STV(i): Camera has %i pictures."

L_.str.11:                              ## @.str.11
	.asciz	"STV(i): Set_Camera_Mode failed"

L_.str.12:                              ## @.str.12
	.asciz	"STV(e): Error setting camera video mode!"

L_.str.13:                              ## @.str.13
	.asciz	"STV(i): Video Mode set to CIF"

L_.str.14:                              ## @.str.14
	.asciz	"STV(i): Video Mode set to QVGA"

L_.str.15:                              ## @.str.15
	.asciz	"STV(i): last error: %i,  command = 0x%x"

L_.str.16:                              ## @.str.16
	.asciz	"STV(i): cwidth = %i, cheight = %i"

L_.str.17:                              ## @.str.17
	.asciz	"STV(i): width = %i, height = %i, rawbufsize = %li"

	.comm	_STV_VIDEO_PALETTE,4,2          ## @STV_VIDEO_PALETTE
	.comm	_swapRGB_on,4,2                 ## @swapRGB_on
	.comm	_swapRGB,4,2                    ## @swapRGB
L_.str.18:                              ## @.str.18
	.asciz	"STV(i): swapRGB is (auto) OFF"

L_.str.19:                              ## @.str.19
	.asciz	"STV(i): swapRGB is (auto) ON"

L_.str.20:                              ## @.str.20
	.asciz	"STV(i): swapRGB is (forced) ON"

L_.str.21:                              ## @.str.21
	.asciz	"STV(i): swapRGB is (forced) OFF"

L_.str.22:                              ## @.str.22
	.asciz	"STV(e): Could not set video mode in stv_init"

	.no_dead_strip	_stv_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function stv_init
lCPI0_0:
	.long	352                             ; 0x160
	.long	288                             ; 0x120
	.long	352                             ; 0x160
	.long	288                             ; 0x120
lCPI0_1:
	.long	320                             ; 0x140
	.long	240                             ; 0xf0
	.long	320                             ; 0x140
	.long	240                             ; 0xf0
lCPI0_2:
	.long	130                             ; 0x82
	.long	32767                           ; 0x7fff
	.long	32767                           ; 0x7fff
	.long	32767                           ; 0x7fff
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_3:
	.long	32767                           ; 0x7fff
	.long	24                              ; 0x18
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_stv_init:                              ; @stv_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	mov	w0, #100
	bl	_udelay
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	mov	w3, #0
	bl	_stv_set_config
	tbnz	w0, #31, LBB0_11
; %bb.2:
	mov	w0, #0
	mov	x1, x19
	mov	w2, #136
	mov	w3, #22136
	mov	x4, x20
	mov	w5, #2
	bl	_stv_sndctrl
	cmp	w0, #2
	b.ne	LBB0_17
; %bb.3:
	ldrb	w8, [x20]
	cmp	w8, #86
	b.ne	LBB0_14
; %bb.4:
	ldrb	w8, [x20, #1]
	cmp	w8, #120
	b.ne	LBB0_14
; %bb.5:
	mov	w0, #2
	mov	x1, x19
	mov	w2, #6
	mov	w3, #512
	mov	x4, x20
	mov	w5, #9
	bl	_stv_sndctrl
	cmp	w0, #9
	b.ne	LBB0_17
; %bb.6:
	mov	w0, #2
	mov	x1, x19
	mov	w2, #6
	mov	w3, #512
	mov	x4, x20
	mov	w5, #34
	bl	_stv_sndctrl
	tbz	w0, #31, LBB0_20
; %bb.7:
	ldrb	w8, [x20, #7]
	cmp	w8, #160
	b.ne	LBB0_20
; %bb.8:
	ldrb	w8, [x20, #8]
	cmp	w8, #35
	b.ne	LBB0_20
; %bb.9:
Lloh3:
	adrp	x1, l_.str.3@PAGE
Lloh4:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_10:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_11:
	mov	x0, x20
	bl	_kfree
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	mov	w0, #0
LBB0_13:
	bl	_PDEBUG
	b	LBB0_18
LBB0_14:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_15:
	mov	w0, #1
LBB0_16:
	bl	_PDEBUG
LBB0_17:
	mov	w0, #0
	mov	x1, x19
	mov	w2, #128
	mov	w3, #0
	mov	x4, x20
	mov	w5, #2
	bl	_stv_sndctrl
	ldrb	w8, [x20]
	ldrb	w9, [x20, #1]
	stp	x8, x9, [sp]
Lloh11:
	adrp	x1, l_.str.15@PAGE
Lloh12:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	w0, #1
	bl	_PDEBUG
	mov	x0, x20
	bl	_kfree
LBB0_18:
	mov	w0, #-1
LBB0_19:
	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
	add	sp, sp, #80
	ret
LBB0_20:
	mov	w0, #0
	mov	x1, x19
	mov	w2, #138
	mov	w3, #0
	mov	x4, x20
	mov	w5, #2
	bl	_stv_sndctrl
	cmp	w0, #2
	b.ne	LBB0_17
; %bb.21:
	mov	w0, #0
	mov	x1, x19
	mov	w2, #139
	mov	w3, #0
	mov	x4, x20
	mov	w5, #36
	bl	_stv_sndctrl
	cmp	w0, #36
	b.ne	LBB0_17
; %bb.22:
	mov	w0, #0
	mov	x1, x19
	mov	w2, #133
	mov	w3, #0
	mov	x4, x20
	mov	w5, #16
	bl	_stv_sndctrl
	cmp	w0, #16
	b.ne	LBB0_17
; %bb.23:
	ldrb	w8, [x20, #7]
	strb	w8, [x19]
	str	xzr, [x19, #8]
	str	wzr, [x19, #4]
	tbnz	w8, #0, LBB0_27
; %bb.24:
	tbnz	w8, #1, LBB0_28
LBB0_25:
	tbnz	w8, #3, LBB0_29
LBB0_26:
	mov	w9, #0
	b	LBB0_30
LBB0_27:
	mov	w9, #1
	str	w9, [x19, #4]
	tbz	w8, #1, LBB0_25
LBB0_28:
	mov	w9, #1
	str	w9, [x19, #8]
	tbz	w8, #3, LBB0_26
LBB0_29:
	mov	w9, #1
	str	w9, [x19, #12]
LBB0_30:
	cbz	w8, LBB0_49
; %bb.31:
	tbz	w8, #0, LBB0_33
; %bb.32:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #0
	bl	_PDEBUG
	ldr	w9, [x19, #12]
LBB0_33:
	cbz	w9, LBB0_35
; %bb.34:
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #0
	bl	_PDEBUG
LBB0_35:
	ldrb	w8, [x20]
	ldrb	w9, [x20, #1]
	stp	x8, x9, [sp]
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	bl	_PDEBUG
	ldrb	w8, [x20, #2]
	ldrb	w9, [x20, #3]
	stp	x8, x9, [sp]
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	bl	_PDEBUG
	ldrb	w8, [x20, #4]
	ldrb	w9, [x20, #5]
	lsr	w9, w9, #4
	bfi	w9, w8, #4, #8
	str	x9, [sp]
Lloh21:
	adrp	x1, l_.str.9@PAGE
Lloh22:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #1
	bl	_PDEBUG
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	mov	w3, #1
	bl	_stv_set_config
	tbnz	w0, #31, LBB0_17
; %bb.36:
	mov	w0, #0
	mov	x1, x19
	mov	w2, #133
	mov	w3, #0
	mov	x4, x20
	mov	w5, #16
	bl	_stv_sndctrl
	cmp	w0, #16
	b.ne	LBB0_17
; %bb.37:
	mov	w0, #0
	mov	x1, x19
	mov	w2, #141
	mov	w3, #0
	mov	x4, x20
	mov	w5, #8
	bl	_stv_sndctrl
	cmp	w0, #8
	b.ne	LBB0_17
; %bb.38:
	ldrb	w8, [x20, #3]
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.10@PAGE
Lloh24:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w0, #0
	bl	_PDEBUG
	mov	w0, #0
	mov	x1, x19
	mov	w2, #135
	mov	w3, #0
	mov	x4, x20
	mov	w5, #8
	bl	_stv_sndctrl
	cmp	w0, #8
	b.ne	LBB0_17
; %bb.39:
	ldrb	w8, [x20]
	strb	w8, [x19, #16]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	w8, #0
	ldr	w9, [x19, #4]
	cbnz	w9, LBB0_42
; %bb.40:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_43
; %bb.41:
	mov	w8, #3
LBB0_42:
	strb	w8, [x20]
LBB0_43:
	mov	w0, #3
	mov	x1, x19
	mov	w2, #7
	mov	w3, #256
	mov	x4, x20
	mov	w5, #8
	bl	_stv_sndctrl
	cmp	w0, #8
	b.ne	LBB0_51
; %bb.44:
	mov	w8, #240
	strb	w8, [x20]
	mov	w0, #0
	mov	x1, x19
	mov	w2, #135
	mov	w3, #0
	mov	x4, x20
	mov	w5, #8
	bl	_stv_sndctrl
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.ne	LBB0_46
; %bb.45:
	ldrb	w8, [x20]
	cbnz	w8, LBB0_48
LBB0_46:
	ldr	w9, [x19, #12]
	ldrb	w8, [x20]
	cmp	w9, #1
	b.ne	LBB0_52
; %bb.47:
	cmp	w8, #3
	b.eq	LBB0_55
LBB0_48:
Lloh25:
	adrp	x1, l_.str.12@PAGE
Lloh26:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_50
LBB0_49:
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_50:
	mov	w0, #0
	b	LBB0_16
LBB0_51:
Lloh29:
	adrp	x1, l_.str.11@PAGE
Lloh30:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_50
LBB0_52:
	cbnz	w8, LBB0_54
; %bb.53:
	str	wzr, [x19, #20]
Lloh31:
	adrp	x1, l_.str.13@PAGE
Lloh32:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	w0, #0
	bl	_PDEBUG
	ldrb	w8, [x20]
LBB0_54:
	cmp	w8, #3
	b.ne	LBB0_56
LBB0_55:
	mov	w8, #768
	str	w8, [x19, #20]
Lloh33:
	adrp	x1, l_.str.14@PAGE
Lloh34:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	w0, #0
	bl	_PDEBUG
LBB0_56:
	mov	w0, #0
	mov	x1, x19
	mov	w2, #143
	mov	w3, #0
	mov	x4, x20
	mov	w5, #16
	bl	_stv_sndctrl
	cmp	w0, #16
	b.ne	LBB0_17
; %bb.57:
	ldrb	w8, [x20]
	lsl	w8, w8, #24
	ldrb	w9, [x20, #1]
	sxtw	x8, w8
	bfi	x8, x9, #16, #8
	ldrb	w9, [x20, #2]
	bfi	x8, x9, #8, #8
	ldrb	w9, [x20, #3]
	orr	x21, x8, x9
	ldrb	w8, [x20, #5]
	strb	w8, [x19, #24]
	ldrb	w8, [x20, #7]
	strb	w8, [x19, #25]
	ldrb	w8, [x20, #12]
	strb	w8, [x19, #26]
	mov	x0, x20
	bl	_kfree
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.ne	LBB0_59
; %bb.58:
Lloh35:
	adrp	x8, lCPI0_0@PAGE
Lloh36:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x19, #28]
LBB0_59:
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.ne	LBB0_61
; %bb.60:
Lloh37:
	adrp	x8, lCPI0_1@PAGE
Lloh38:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	stur	q0, [x19, #28]
LBB0_61:
	add	x8, x21, x21, lsl #1
	stp	x21, x8, [x19, #48]
	ldrb	w8, [x19, #24]
	ldrb	w9, [x19, #25]
	stp	x8, x9, [sp]
Lloh39:
	adrp	x1, l_.str.16@PAGE
Lloh40:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	w0, #2
	bl	_PDEBUG
	ldr	x8, [x19, #48]
	ldp	w9, w10, [x19, #36]
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
Lloh41:
	adrp	x1, l_.str.17@PAGE
Lloh42:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	w0, #1
	bl	_PDEBUG
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #112]
	str	xzr, [x19, #144]
	stp	xzr, xzr, [x19, #96]
Lloh43:
	adrp	x8, lCPI0_2@PAGE
Lloh44:
	ldr	q0, [x8, lCPI0_2@PAGEOFF]
	str	q0, [x19, #64]
Lloh45:
	adrp	x8, _STV_VIDEO_PALETTE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _STV_VIDEO_PALETTE@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	str	w8, [x19, #88]
Lloh48:
	adrp	x8, lCPI0_3@PAGE
Lloh49:
	ldr	d0, [x8, lCPI0_3@PAGEOFF]
Lloh50:
	adrp	x8, _swapRGB_on@GOTPAGE
Lloh51:
	ldr	x8, [x8, _swapRGB_on@GOTPAGEOFF]
	str	d0, [x19, #80]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	adrp	x9, _swapRGB@GOTPAGE
Lloh54:
	ldr	x9, [x9, _swapRGB@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	orr	w10, w8, w9
	cbnz	w10, LBB0_63
; %bb.62:
Lloh56:
	adrp	x1, l_.str.18@PAGE
Lloh57:
	add	x1, x1, l_.str.18@PAGEOFF
	b	LBB0_70
LBB0_63:
	cbnz	w8, LBB0_66
; %bb.64:
	cmp	w9, #1
	b.ne	LBB0_66
; %bb.65:
Lloh58:
	adrp	x1, l_.str.19@PAGE
Lloh59:
	add	x1, x1, l_.str.19@PAGEOFF
	b	LBB0_70
LBB0_66:
	cmp	w8, #1
	b.eq	LBB0_69
; %bb.67:
	cmn	w8, #1
	b.ne	LBB0_71
; %bb.68:
Lloh60:
	adrp	x1, l_.str.21@PAGE
Lloh61:
	add	x1, x1, l_.str.21@PAGEOFF
	b	LBB0_70
LBB0_69:
Lloh62:
	adrp	x1, l_.str.20@PAGE
Lloh63:
	add	x1, x1, l_.str.20@PAGEOFF
LBB0_70:
	mov	w0, #1
	bl	_PDEBUG
LBB0_71:
	mov	x0, x19
	bl	_stv_set_video_mode
	tbnz	x0, #63, LBB0_73
; %bb.72:
	mov	w0, #0
	b	LBB0_19
LBB0_73:
Lloh64:
	adrp	x1, l_.str.22@PAGE
Lloh65:
	add	x1, x1, l_.str.22@PAGEOFF
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdr	Lloh35, Lloh36
	.loh AdrpLdr	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdrp	Lloh48, Lloh50
	.loh AdrpLdr	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdrp	Lloh43, Lloh45
	.loh AdrpLdr	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STV(e): Out of (small buf) memory"

l_.str.1:                               ; @.str.1
	.asciz	"STV(e): set config 1,0,0 failed"

l_.str.2:                               ; @.str.2
	.asciz	"STV(e): camera ping failed!!"

l_.str.3:                               ; @.str.3
	.asciz	"STV(e): Could not get descriptor 0200."

l_.str.4:                               ; @.str.4
	.asciz	"STV(e): There are NO supported STV680 modes!!"

l_.str.5:                               ; @.str.5
	.asciz	"STV(i): CIF is supported"

l_.str.6:                               ; @.str.6
	.asciz	"STV(i): QVGA is supported"

l_.str.7:                               ; @.str.7
	.asciz	"STV(i): Firmware rev is %i.%i"

l_.str.8:                               ; @.str.8
	.asciz	"STV(i): ASIC rev is %i.%i"

l_.str.9:                               ; @.str.9
	.asciz	"STV(i): Sensor ID is %i"

l_.str.10:                              ; @.str.10
	.asciz	"STV(i): Camera has %i pictures."

l_.str.11:                              ; @.str.11
	.asciz	"STV(i): Set_Camera_Mode failed"

l_.str.12:                              ; @.str.12
	.asciz	"STV(e): Error setting camera video mode!"

l_.str.13:                              ; @.str.13
	.asciz	"STV(i): Video Mode set to CIF"

l_.str.14:                              ; @.str.14
	.asciz	"STV(i): Video Mode set to QVGA"

l_.str.15:                              ; @.str.15
	.asciz	"STV(i): last error: %i,  command = 0x%x"

l_.str.16:                              ; @.str.16
	.asciz	"STV(i): cwidth = %i, cheight = %i"

l_.str.17:                              ; @.str.17
	.asciz	"STV(i): width = %i, height = %i, rawbufsize = %li"

	.comm	_STV_VIDEO_PALETTE,4,2          ; @STV_VIDEO_PALETTE
	.comm	_swapRGB_on,4,2                 ; @swapRGB_on
	.comm	_swapRGB,4,2                    ; @swapRGB
l_.str.18:                              ; @.str.18
	.asciz	"STV(i): swapRGB is (auto) OFF"

l_.str.19:                              ; @.str.19
	.asciz	"STV(i): swapRGB is (auto) ON"

l_.str.20:                              ; @.str.20
	.asciz	"STV(i): swapRGB is (forced) ON"

l_.str.21:                              ; @.str.21
	.asciz	"STV(i): swapRGB is (forced) OFF"

l_.str.22:                              ; @.str.22
	.asciz	"STV(e): Could not set video mode in stv_init"

	.no_dead_strip	_stv_init
.subsections_via_symbols
