	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function log_video_status
_log_video_status:                      ## @log_video_status
	.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, %r13
	callq	_i2c_get_clientdata
	movl	%eax, %edi
	callq	_to_state
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_cx25840_read
	movl	%eax, %r12d
	movq	%r13, %rdi
	movl	$1037, %esi                     ## imm = 0x40D
	callq	_cx25840_read
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	$1038, %esi                     ## imm = 0x40E
	callq	_cx25840_read
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r15d
	testb	$32, %al
	leaq	L_.str.18(%rip), %rax
	leaq	L_.str.17(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.16(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_v4l_info
	andl	$15, %ebx
	leaq	_log_video_status.fmt_strs(%rip), %r14
	movq	(%r14,%rbx,8), %rdx
	leaq	L_.str.19(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_v4l_info
	andl	$15, %r12d
	je	LBB0_1
## %bb.2:
	movl	%r12d, %eax
	movq	(%r14,%rax,8), %rdx
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.21(%rip), %rdx
LBB0_3:
	leaq	L_.str.20(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_v4l_info
	movq	_CX25840_COMPOSITE1@GOTPCREL(%rip), %rax
	movl	%r15d, %edx
	subl	(%rax), %edx
	jl	LBB0_6
## %bb.4:
	movq	_CX25840_COMPOSITE8@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jg	LBB0_6
## %bb.5:
	incl	%edx
	leaq	L_.str.22(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_v4l_info
	jmp	LBB0_7
LBB0_6:
	movl	%r15d, %edx
	shrl	$4, %edx
	andl	$15, %edx
	shrl	$8, %r15d
	andl	$15, %r15d
	leaq	L_.str.23(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_v4l_info
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	leaq	L_.str.24(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @log_video_status.fmt_strs
_log_video_status.fmt_strs:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	L_.str.3
	.quad	L_.str.4
	.quad	L_.str.5
	.quad	L_.str.6
	.quad	L_.str.7
	.quad	L_.str.8
	.quad	L_.str.9
	.quad	L_.str.10
	.quad	L_.str.11
	.quad	L_.str.12
	.quad	L_.str.13
	.quad	L_.str.14
	.quad	L_.str.15

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x0"

L_.str.1:                               ## @.str.1
	.asciz	"NTSC-M"

L_.str.2:                               ## @.str.2
	.asciz	"NTSC-J"

L_.str.3:                               ## @.str.3
	.asciz	"NTSC-4.43"

L_.str.4:                               ## @.str.4
	.asciz	"PAL-BDGHI"

L_.str.5:                               ## @.str.5
	.asciz	"PAL-M"

L_.str.6:                               ## @.str.6
	.asciz	"PAL-N"

L_.str.7:                               ## @.str.7
	.asciz	"PAL-Nc"

L_.str.8:                               ## @.str.8
	.asciz	"PAL-60"

L_.str.9:                               ## @.str.9
	.asciz	"0x9"

L_.str.10:                              ## @.str.10
	.asciz	"0xA"

L_.str.11:                              ## @.str.11
	.asciz	"0xB"

L_.str.12:                              ## @.str.12
	.asciz	"SECAM"

L_.str.13:                              ## @.str.13
	.asciz	"0xD"

L_.str.14:                              ## @.str.14
	.asciz	"0xE"

L_.str.15:                              ## @.str.15
	.asciz	"0xF"

L_.str.16:                              ## @.str.16
	.asciz	"Video signal:              %spresent\n"

L_.str.17:                              ## @.str.17
	.space	1

L_.str.18:                              ## @.str.18
	.asciz	"not "

L_.str.19:                              ## @.str.19
	.asciz	"Detected format:           %s\n"

L_.str.20:                              ## @.str.20
	.asciz	"Specified standard:        %s\n"

L_.str.21:                              ## @.str.21
	.asciz	"automatic detection"

	.comm	_CX25840_COMPOSITE1,4,2         ## @CX25840_COMPOSITE1
	.comm	_CX25840_COMPOSITE8,4,2         ## @CX25840_COMPOSITE8
L_.str.22:                              ## @.str.22
	.asciz	"Specified video input:     Composite %d\n"

L_.str.23:                              ## @.str.23
	.asciz	"Specified video input:     S-Video (Luma In%d, Chroma In%d)\n"

L_.str.24:                              ## @.str.24
	.asciz	"Specified audioclock freq: %d Hz\n"

	.no_dead_strip	_log_video_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function log_video_status
_log_video_status:                      ; @log_video_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_i2c_get_clientdata
	bl	_to_state
	mov	x20, x0
	mov	x0, x19
	mov	w1, #1024
	bl	_cx25840_read
	and	w23, w0, #0xf
	mov	x0, x19
	mov	w1, #1037
	bl	_cx25840_read
	mov	x21, x0
	mov	x0, x19
	mov	w1, #1038
	bl	_cx25840_read
	ldr	w22, [x20]
Lloh0:
	adrp	x8, l_.str.17@PAGE
Lloh1:
	add	x8, x8, l_.str.17@PAGEOFF
Lloh2:
	adrp	x9, l_.str.18@PAGE
Lloh3:
	add	x9, x9, l_.str.18@PAGEOFF
	tst	w0, #0x20
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.16@PAGE
Lloh5:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	x0, x19
	bl	_v4l_info
	and	w8, w21, #0xf
Lloh6:
	adrp	x21, _log_video_status.fmt_strs@PAGE
Lloh7:
	add	x21, x21, _log_video_status.fmt_strs@PAGEOFF
	ldr	x8, [x21, w8, uxtw #3]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.19@PAGE
Lloh9:
	add	x1, x1, l_.str.19@PAGEOFF
	mov	x0, x19
	bl	_v4l_info
	cbz	w23, LBB0_2
; %bb.1:
	ldr	x8, [x21, w23, uxtw #3]
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, l_.str.21@PAGE
Lloh11:
	add	x8, x8, l_.str.21@PAGEOFF
LBB0_3:
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.20@PAGE
Lloh13:
	add	x1, x1, l_.str.20@PAGEOFF
	mov	x0, x19
	bl	_v4l_info
Lloh14:
	adrp	x8, _CX25840_COMPOSITE1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CX25840_COMPOSITE1@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _CX25840_COMPOSITE8@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CX25840_COMPOSITE8@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	subs	w8, w22, w8
	ccmp	w22, w9, #0, ge
	b.le	LBB0_5
; %bb.4:
	ubfx	w8, w22, #4, #4
	ubfx	w9, w22, #8, #4
	stp	x8, x9, [sp]
Lloh20:
	adrp	x1, l_.str.23@PAGE
Lloh21:
	add	x1, x1, l_.str.23@PAGEOFF
	b	LBB0_6
LBB0_5:
	add	w8, w8, #1
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.22@PAGE
Lloh23:
	add	x1, x1, l_.str.22@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_v4l_info
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.24@PAGE
Lloh25:
	add	x1, x1, l_.str.24@PAGEOFF
	mov	x0, x19
	bl	_v4l_info
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @log_video_status.fmt_strs
_log_video_status.fmt_strs:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7
	.quad	l_.str.8
	.quad	l_.str.9
	.quad	l_.str.10
	.quad	l_.str.11
	.quad	l_.str.12
	.quad	l_.str.13
	.quad	l_.str.14
	.quad	l_.str.15

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x0"

l_.str.1:                               ; @.str.1
	.asciz	"NTSC-M"

l_.str.2:                               ; @.str.2
	.asciz	"NTSC-J"

l_.str.3:                               ; @.str.3
	.asciz	"NTSC-4.43"

l_.str.4:                               ; @.str.4
	.asciz	"PAL-BDGHI"

l_.str.5:                               ; @.str.5
	.asciz	"PAL-M"

l_.str.6:                               ; @.str.6
	.asciz	"PAL-N"

l_.str.7:                               ; @.str.7
	.asciz	"PAL-Nc"

l_.str.8:                               ; @.str.8
	.asciz	"PAL-60"

l_.str.9:                               ; @.str.9
	.asciz	"0x9"

l_.str.10:                              ; @.str.10
	.asciz	"0xA"

l_.str.11:                              ; @.str.11
	.asciz	"0xB"

l_.str.12:                              ; @.str.12
	.asciz	"SECAM"

l_.str.13:                              ; @.str.13
	.asciz	"0xD"

l_.str.14:                              ; @.str.14
	.asciz	"0xE"

l_.str.15:                              ; @.str.15
	.asciz	"0xF"

l_.str.16:                              ; @.str.16
	.asciz	"Video signal:              %spresent\n"

l_.str.17:                              ; @.str.17
	.space	1

l_.str.18:                              ; @.str.18
	.asciz	"not "

l_.str.19:                              ; @.str.19
	.asciz	"Detected format:           %s\n"

l_.str.20:                              ; @.str.20
	.asciz	"Specified standard:        %s\n"

l_.str.21:                              ; @.str.21
	.asciz	"automatic detection"

	.comm	_CX25840_COMPOSITE1,4,2         ; @CX25840_COMPOSITE1
	.comm	_CX25840_COMPOSITE8,4,2         ; @CX25840_COMPOSITE8
l_.str.22:                              ; @.str.22
	.asciz	"Specified video input:     Composite %d\n"

l_.str.23:                              ; @.str.23
	.asciz	"Specified video input:     S-Video (Luma In%d, Chroma In%d)\n"

l_.str.24:                              ; @.str.24
	.asciz	"Specified audioclock freq: %d Hz\n"

	.no_dead_strip	_log_video_status
.subsections_via_symbols
