	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw9910_video_probe
_tw9910_video_probe:                    ## @tw9910_video_probe
	.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, %r15
	callq	_to_tw9910
	movq	%rax, %rbx
	movq	24(%rax), %rax
	movl	(%rax), %eax
	cmpl	$8, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$16, %eax
	jne	LBB0_2
LBB0_3:
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_tw9910_s_power
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	movq	_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_GET_REV
	movl	%eax, (%rbx)
	movl	%r13d, %edi
	callq	_GET_ID
	movl	(%rbx), %ecx
	cmpl	$11, %eax
	jne	LBB0_6
## %bb.5:
	cmpl	$2, %ecx
	jge	LBB0_6
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	$11, %edx
	callq	_dev_info
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_tw9910_ntsc_scales@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_tw9910_s_power
LBB0_9:
	movl	%r12d, %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	"bus width error\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ID,4,2                         ## @ID
L_.str.1:                               ## @.str.1
	.asciz	"Product ID error %x:%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"tw9910 Product ID %0x:%0x\n"

	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_tw9910_ntsc_scales,8,3         ## @tw9910_ntsc_scales
	.no_dead_strip	_tw9910_video_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw9910_video_probe
_tw9910_video_probe:                    ; @tw9910_video_probe
	.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	x21, x0
	bl	_to_tw9910
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
	cmp	w8, #8
	ccmp	w8, #16, #4, ne
	b.ne	LBB0_4
; %bb.1:
	mov	x22, x0
	add	x19, x0, #4
	mov	x0, x19
	mov	w1, #1
	bl	_tw9910_s_power
	mov	x20, x0
	tbnz	w0, #31, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	mov	x23, x0
	bl	_GET_REV
	str	w0, [x22]
	mov	x0, x23
	bl	_GET_ID
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w3, [x22]
	cmp	w0, #11
	ccmp	w3, #2, #0, eq
	b.lt	LBB0_5
; %bb.3:
	stp	x0, x3, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	w2, #11
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_dev_info
Lloh15:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x22, #16]
Lloh18:
	adrp	x8, _tw9910_ntsc_scales@GOTPAGE
Lloh19:
	ldr	x8, [x8, _tw9910_ntsc_scales@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x22, #8]
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_tw9910_s_power
LBB0_7:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bus width error\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ID,4,2                         ; @ID
l_.str.1:                               ; @.str.1
	.asciz	"Product ID error %x:%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"tw9910 Product ID %0x:%0x\n"

	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_tw9910_ntsc_scales,8,3         ; @tw9910_ntsc_scales
	.no_dead_strip	_tw9910_video_probe
.subsections_via_symbols
