	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7842_sdp_log_status
_adv7842_sdp_log_status:                ## @adv7842_sdp_log_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, %r12
	movl	$90, %esi
	callq	_sdp_read
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_no_power
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %r15
	leaq	L_.str.1(%rip), %r13
	movq	%r13, %rdx
	cmoveq	%r15, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_v4l2_info
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_io_read
	movl	%eax, %ebx
	andl	$15, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_io_read
	andl	$63, %eax
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_v4l2_info
	movq	%r12, %rdi
	movl	$86, %esi
	callq	_sdp_read
	testb	$1, %al
	cmoveq	%r13, %r15
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_v4l2_info
	testb	$1, %r14b
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.6(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_v4l2_info
	testb	$1, %r14b
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	$82, %esi
	callq	_sdp_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$15, %eax
	leaq	_reltable.adv7842_sdp_log_status(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdx
	addq	%rcx, %rdx
	leaq	L_.str.24(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_v4l2_info
	movq	%r12, %rdi
	movl	$89, %esi
	callq	_sdp_read
	testb	$8, %al
	leaq	L_.str.26(%rip), %rax
	leaq	L_.str.25(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.5(%rip), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_v4l2_info
	movq	%r12, %rdi
	movl	$87, %esi
	callq	_sdp_read
	testb	$8, %al
	leaq	L_.str.28(%rip), %rax
	leaq	L_.str.27(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_v4l2_info
	movq	%r12, %rdi
	movl	$18, %esi
	callq	_sdp_read
	testb	$8, %al
	leaq	L_.str.31(%rip), %rax
	leaq	L_.str.30(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.29(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_v4l2_info
	movq	%r12, %rdi
	movl	$224, %esi
	callq	_sdp_io_read
	testb	$64, %al
	leaq	L_.str.34(%rip), %rax
	leaq	L_.str.33(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.32(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_v4l2_info
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Chip powered %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"off"

L_.str.2:                               ## @.str.2
	.asciz	"on"

L_.str.3:                               ## @.str.3
	.asciz	"Prim-mode = 0x%x, video std = 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"SDP: free run: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"SDP: %s\n"

L_.str.6:                               ## @.str.6
	.asciz	"valid SD/PR signal detected"

L_.str.7:                               ## @.str.7
	.asciz	"invalid/no signal"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.adv7842_sdp_log_status
_reltable.adv7842_sdp_log_status:
	.long	L_.str.8-_reltable.adv7842_sdp_log_status
	.long	L_.str.9-_reltable.adv7842_sdp_log_status
	.long	L_.str.10-_reltable.adv7842_sdp_log_status
	.long	L_.str.11-_reltable.adv7842_sdp_log_status
	.long	L_.str.12-_reltable.adv7842_sdp_log_status
	.long	L_.str.13-_reltable.adv7842_sdp_log_status
	.long	L_.str.14-_reltable.adv7842_sdp_log_status
	.long	L_.str.15-_reltable.adv7842_sdp_log_status
	.long	L_.str.16-_reltable.adv7842_sdp_log_status
	.long	L_.str.17-_reltable.adv7842_sdp_log_status
	.long	L_.str.18-_reltable.adv7842_sdp_log_status
	.long	L_.str.19-_reltable.adv7842_sdp_log_status
	.long	L_.str.20-_reltable.adv7842_sdp_log_status
	.long	L_.str.21-_reltable.adv7842_sdp_log_status
	.long	L_.str.22-_reltable.adv7842_sdp_log_status
	.long	L_.str.23-_reltable.adv7842_sdp_log_status

	.section	__TEXT,__cstring,cstring_literals
L_.str.8:                               ## @.str.8
	.asciz	"NTSC-M/J"

L_.str.9:                               ## @.str.9
	.asciz	"1?"

L_.str.10:                              ## @.str.10
	.asciz	"NTSC-443"

L_.str.11:                              ## @.str.11
	.asciz	"60HzSECAM"

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

L_.str.13:                              ## @.str.13
	.asciz	"5?"

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

L_.str.15:                              ## @.str.15
	.asciz	"7?"

L_.str.16:                              ## @.str.16
	.asciz	"8?"

L_.str.17:                              ## @.str.17
	.asciz	"9?"

L_.str.18:                              ## @.str.18
	.asciz	"a?"

L_.str.19:                              ## @.str.19
	.asciz	"b?"

L_.str.20:                              ## @.str.20
	.asciz	"PAL-CombN"

L_.str.21:                              ## @.str.21
	.asciz	"d?"

L_.str.22:                              ## @.str.22
	.asciz	"PAL-BGHID"

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

L_.str.24:                              ## @.str.24
	.asciz	"SDP: standard %s\n"

L_.str.25:                              ## @.str.25
	.asciz	"50Hz"

L_.str.26:                              ## @.str.26
	.asciz	"60Hz"

L_.str.27:                              ## @.str.27
	.asciz	"Interlaced"

L_.str.28:                              ## @.str.28
	.asciz	"Progressive"

L_.str.29:                              ## @.str.29
	.asciz	"SDP: deinterlacer %s\n"

L_.str.30:                              ## @.str.30
	.asciz	"enabled"

L_.str.31:                              ## @.str.31
	.asciz	"disabled"

L_.str.32:                              ## @.str.32
	.asciz	"SDP: csc %s mode\n"

L_.str.33:                              ## @.str.33
	.asciz	"auto"

L_.str.34:                              ## @.str.34
	.asciz	"manual"

	.no_dead_strip	_adv7842_sdp_log_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7842_sdp_log_status
_adv7842_sdp_log_status:                ; @adv7842_sdp_log_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
	mov	w1, #90
	bl	_sdp_read
	mov	x20, x0
	mov	x0, x19
	bl	_no_power
Lloh0:
	adrp	x21, l_.str.1@PAGE
Lloh1:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh2:
	adrp	x22, l_.str.2@PAGE
Lloh3:
	add	x22, x22, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x8, x22, x21, eq
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
	mov	x0, x19
	mov	w1, #1
	bl	_io_read
	and	w23, w0, #0xf
	mov	x0, x19
	mov	w1, #0
	bl	_io_read
	and	w8, w0, #0x3f
	stp	x23, x8, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
	mov	x0, x19
	mov	w1, #86
	bl	_sdp_read
	tst	w0, #0x1
	csel	x8, x21, x22, eq
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
Lloh10:
	adrp	x8, l_.str.6@PAGE
Lloh11:
	add	x8, x8, l_.str.6@PAGEOFF
Lloh12:
	adrp	x9, l_.str.7@PAGE
Lloh13:
	add	x9, x9, l_.str.7@PAGEOFF
	tst	w20, #0x1
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
	tbz	w20, #0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #82
	bl	_sdp_read
	and	w8, w0, #0xf
Lloh16:
	adrp	x9, _adv7842_sdp_log_status.sdp_std_txt@PAGE
Lloh17:
	add	x9, x9, _adv7842_sdp_log_status.sdp_std_txt@PAGEOFF
	ldr	x8, [x9, w8, uxtw #3]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.24@PAGE
Lloh19:
	add	x1, x1, l_.str.24@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
	mov	x0, x19
	mov	w1, #89
	bl	_sdp_read
Lloh20:
	adrp	x8, l_.str.25@PAGE
Lloh21:
	add	x8, x8, l_.str.25@PAGEOFF
Lloh22:
	adrp	x9, l_.str.26@PAGE
Lloh23:
	add	x9, x9, l_.str.26@PAGEOFF
	tst	w0, #0x8
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh24:
	adrp	x20, l_.str.5@PAGE
Lloh25:
	add	x20, x20, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_v4l2_info
	mov	x0, x19
	mov	w1, #87
	bl	_sdp_read
Lloh26:
	adrp	x8, l_.str.27@PAGE
Lloh27:
	add	x8, x8, l_.str.27@PAGEOFF
Lloh28:
	adrp	x9, l_.str.28@PAGE
Lloh29:
	add	x9, x9, l_.str.28@PAGEOFF
	tst	w0, #0x8
	csel	x8, x9, x8, eq
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x20
	bl	_v4l2_info
	mov	x0, x19
	mov	w1, #18
	bl	_sdp_read
Lloh30:
	adrp	x8, l_.str.30@PAGE
Lloh31:
	add	x8, x8, l_.str.30@PAGEOFF
Lloh32:
	adrp	x9, l_.str.31@PAGE
Lloh33:
	add	x9, x9, l_.str.31@PAGEOFF
	tst	w0, #0x8
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh34:
	adrp	x1, l_.str.29@PAGE
Lloh35:
	add	x1, x1, l_.str.29@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
	mov	x0, x19
	mov	w1, #224
	bl	_sdp_io_read
Lloh36:
	adrp	x8, l_.str.33@PAGE
Lloh37:
	add	x8, x8, l_.str.33@PAGEOFF
Lloh38:
	adrp	x9, l_.str.34@PAGE
Lloh39:
	add	x9, x9, l_.str.34@PAGEOFF
	tst	w0, #0x40
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh40:
	adrp	x1, l_.str.32@PAGE
Lloh41:
	add	x1, x1, l_.str.32@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
LBB0_2:
	mov	w0, #0
	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	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Chip powered %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"off"

l_.str.2:                               ; @.str.2
	.asciz	"on"

l_.str.3:                               ; @.str.3
	.asciz	"Prim-mode = 0x%x, video std = 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"SDP: free run: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"SDP: %s\n"

l_.str.6:                               ; @.str.6
	.asciz	"valid SD/PR signal detected"

l_.str.7:                               ; @.str.7
	.asciz	"invalid/no signal"

	.section	__DATA,__const
	.p2align	3                               ; @adv7842_sdp_log_status.sdp_std_txt
_adv7842_sdp_log_status.sdp_std_txt:
	.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
	.quad	l_.str.16
	.quad	l_.str.17
	.quad	l_.str.18
	.quad	l_.str.19
	.quad	l_.str.20
	.quad	l_.str.21
	.quad	l_.str.22
	.quad	l_.str.23

	.section	__TEXT,__cstring,cstring_literals
l_.str.8:                               ; @.str.8
	.asciz	"NTSC-M/J"

l_.str.9:                               ; @.str.9
	.asciz	"1?"

l_.str.10:                              ; @.str.10
	.asciz	"NTSC-443"

l_.str.11:                              ; @.str.11
	.asciz	"60HzSECAM"

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

l_.str.13:                              ; @.str.13
	.asciz	"5?"

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

l_.str.15:                              ; @.str.15
	.asciz	"7?"

l_.str.16:                              ; @.str.16
	.asciz	"8?"

l_.str.17:                              ; @.str.17
	.asciz	"9?"

l_.str.18:                              ; @.str.18
	.asciz	"a?"

l_.str.19:                              ; @.str.19
	.asciz	"b?"

l_.str.20:                              ; @.str.20
	.asciz	"PAL-CombN"

l_.str.21:                              ; @.str.21
	.asciz	"d?"

l_.str.22:                              ; @.str.22
	.asciz	"PAL-BGHID"

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

l_.str.24:                              ; @.str.24
	.asciz	"SDP: standard %s\n"

l_.str.25:                              ; @.str.25
	.asciz	"50Hz"

l_.str.26:                              ; @.str.26
	.asciz	"60Hz"

l_.str.27:                              ; @.str.27
	.asciz	"Interlaced"

l_.str.28:                              ; @.str.28
	.asciz	"Progressive"

l_.str.29:                              ; @.str.29
	.asciz	"SDP: deinterlacer %s\n"

l_.str.30:                              ; @.str.30
	.asciz	"enabled"

l_.str.31:                              ; @.str.31
	.asciz	"disabled"

l_.str.32:                              ; @.str.32
	.asciz	"SDP: csc %s mode\n"

l_.str.33:                              ; @.str.33
	.asciz	"auto"

l_.str.34:                              ; @.str.34
	.asciz	"manual"

	.no_dead_strip	_adv7842_sdp_log_status
.subsections_via_symbols
