	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvp7002_probe
_tvp7002_probe:                         ## @tvp7002_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_tvp7002_get_pdata
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r15
	movq	(%rbx), %rdi
	movq	_I2C_FUNC_SMBUS_READ_BYTE@GOTPCREL(%rip), %rax
	movq	_I2C_FUNC_SMBUS_WRITE_BYTE_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_13
## %bb.2:
	leaq	12(%rbx), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	%rax, %r14
	movq	%r15, 40(%rax)
	movq	_tvp7002_timings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r14)
	movq	_tvp7002_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_i2c_subdev_init
	movl	8(%rbx), %edx
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_v4l_info
	movq	_TVP7002_CHIP_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	callq	_tvp7002_read
	testl	%eax, %eax
	js	LBB0_17
## %bb.4:
	movl	-36(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_v4l2_info
	cmpl	$2, -36(%rbp)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_v4l2_info
LBB0_6:
	movq	_tvp7002_init_default@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tvp7002_write_inittab
	testl	%eax, %eax
	js	LBB0_17
## %bb.7:
	movq	40(%r14), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	shll	$5, %ecx
	shll	$2, %edx
	orl	%ecx, %edx
	orl	$32, %edx
	movq	_TVP7002_SYNC_CTL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tvp7002_write
	testl	%eax, %eax
	js	LBB0_17
## %bb.8:
	movq	40(%r14), %rax
	movl	8(%rax), %ecx
	movl	12(%rax), %edx
	shll	$2, %ecx
	addl	%edx, %edx
	orl	%ecx, %edx
	orl	16(%rax), %edx
	orl	$1, %edx
	movq	_TVP7002_MISC_CTL_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tvp7002_write
	testl	%eax, %eax
	js	LBB0_17
## %bb.9:
	movq	32(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_tvp7002_s_dv_timings
	movq	%r14, %r15
	addq	$24, %r15
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_tvp7002_ctrl_ops@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%r15, 8(%r14)
	movl	24(%r14), %r12d
	testl	%r12d, %r12d
	jne	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_setup
	movq	%r14, %rdi
	callq	_v4l2_async_register_subdev
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_16
LBB0_11:
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_free
	movl	%r12d, %ebx
	jmp	LBB0_16
LBB0_12:
	addq	$12, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_17:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_15:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No platform data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I2C_FUNC_SMBUS_READ_BYTE,4,2   ## @I2C_FUNC_SMBUS_READ_BYTE
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE_DATA,4,2 ## @I2C_FUNC_SMBUS_WRITE_BYTE_DATA
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tvp7002_timings,8,3            ## @tvp7002_timings
	.comm	_tvp7002_ops,4,2                ## @tvp7002_ops
L_.str.1:                               ## @.str.1
	.asciz	"tvp7002 found @ 0x%02x (%s)\n"

	.comm	_TVP7002_CHIP_REV,4,2           ## @TVP7002_CHIP_REV
L_.str.2:                               ## @.str.2
	.asciz	"Rev. %02x detected.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unknown revision detected.\n"

	.comm	_tvp7002_init_default,4,2       ## @tvp7002_init_default
	.comm	_TVP7002_SYNC_CTL_1,4,2         ## @TVP7002_SYNC_CTL_1
	.comm	_TVP7002_MISC_CTL_3,4,2         ## @TVP7002_MISC_CTL_3
	.comm	_tvp7002_ctrl_ops,4,2           ## @tvp7002_ctrl_ops
	.comm	_V4L2_CID_GAIN,4,2              ## @V4L2_CID_GAIN
	.comm	_MEDIA_ENT_F_ATV_DECODER,4,2    ## @MEDIA_ENT_F_ATV_DECODER
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ## @MEDIA_PAD_FL_SOURCE
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.no_dead_strip	_tvp7002_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvp7002_probe
_tvp7002_probe:                         ; @tvp7002_probe
	.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	x20, x0
	bl	_tvp7002_get_pdata
	cbz	x0, LBB0_12
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_READ_BYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_READ_BYTE@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I2C_FUNC_SMBUS_WRITE_BYTE_DATA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_WRITE_BYTE_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_i2c_check_functionality
	cbz	w0, LBB0_13
; %bb.2:
	add	x0, x20, #12
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_15
; %bb.3:
	mov	x19, x0
Lloh9:
	adrp	x8, _tvp7002_timings@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tvp7002_timings@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	x8, x21, [x0, #32]
Lloh12:
	adrp	x2, _tvp7002_ops@GOTPAGE
Lloh13:
	ldr	x2, [x2, _tvp7002_ops@GOTPAGEOFF]
	mov	x1, x20
	bl	_v4l2_i2c_subdev_init
	ldr	w2, [x20, #8]
	ldr	x8, [x20]
	ldr	w3, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_v4l_info
Lloh16:
	adrp	x8, _TVP7002_CHIP_REV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TVP7002_CHIP_REV@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x2, sp, #20
	mov	x0, x19
	bl	_tvp7002_read
	tbnz	w0, #31, LBB0_14
; %bb.4:
	ldr	w8, [sp, #20]
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
	ldr	w8, [sp, #20]
	cmp	w8, #2
	b.eq	LBB0_6
; %bb.5:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
LBB0_6:
Lloh23:
	adrp	x8, _tvp7002_init_default@GOTPAGE
Lloh24:
	ldr	x8, [x8, _tvp7002_init_default@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tvp7002_write_inittab
	tbnz	w0, #31, LBB0_14
; %bb.7:
	ldr	x8, [x19, #40]
	ldp	w9, w8, [x8]
	lsl	w9, w9, #5
	orr	w8, w9, w8, lsl #2
	orr	w2, w8, #0x20
Lloh26:
	adrp	x8, _TVP7002_SYNC_CTL_1@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TVP7002_SYNC_CTL_1@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tvp7002_write
	tbnz	w0, #31, LBB0_14
; %bb.8:
	ldr	x8, [x19, #40]
	ldp	w9, w10, [x8, #8]
	lsl	w9, w9, #2
	ldr	w8, [x8, #16]
	orr	w9, w9, w10, lsl #1
	orr	w8, w9, w8
	orr	w2, w8, #0x1
Lloh29:
	adrp	x8, _TVP7002_MISC_CTL_3@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TVP7002_MISC_CTL_3@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tvp7002_write
	tbnz	w0, #31, LBB0_14
; %bb.9:
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x1, sp, #24
	mov	x0, x19
	bl	_tvp7002_s_dv_timings
	add	x21, x19, #24
	mov	x0, x21
	mov	w1, #1
	bl	_v4l2_ctrl_handler_init
Lloh32:
	adrp	x8, _V4L2_CID_GAIN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _V4L2_CID_GAIN@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x1, _tvp7002_ctrl_ops@GOTPAGE
Lloh36:
	ldr	x1, [x1, _tvp7002_ctrl_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x21, [x19, #8]
	ldr	w20, [x19, #24]
	cbnz	w20, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_v4l2_ctrl_handler_setup
	mov	x0, x19
	bl	_v4l2_async_register_subdev
	mov	x20, x0
	cbz	w0, LBB0_17
LBB0_11:
	mov	x0, x21
	bl	_v4l2_ctrl_handler_free
	b	LBB0_17
LBB0_12:
	add	x0, x20, #12
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh39:
	adrp	x8, _EINVAL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
Lloh41:
	adrp	x8, _EIO@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
	mov	x20, x0
	b	LBB0_17
LBB0_15:
Lloh43:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_17:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No platform data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I2C_FUNC_SMBUS_READ_BYTE,4,2   ; @I2C_FUNC_SMBUS_READ_BYTE
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE_DATA,4,2 ; @I2C_FUNC_SMBUS_WRITE_BYTE_DATA
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tvp7002_timings,8,3            ; @tvp7002_timings
	.comm	_tvp7002_ops,4,2                ; @tvp7002_ops
l_.str.1:                               ; @.str.1
	.asciz	"tvp7002 found @ 0x%02x (%s)\n"

	.comm	_TVP7002_CHIP_REV,4,2           ; @TVP7002_CHIP_REV
l_.str.2:                               ; @.str.2
	.asciz	"Rev. %02x detected.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unknown revision detected.\n"

	.comm	_tvp7002_init_default,4,2       ; @tvp7002_init_default
	.comm	_TVP7002_SYNC_CTL_1,4,2         ; @TVP7002_SYNC_CTL_1
	.comm	_TVP7002_MISC_CTL_3,4,2         ; @TVP7002_MISC_CTL_3
	.comm	_tvp7002_ctrl_ops,4,2           ; @tvp7002_ctrl_ops
	.comm	_V4L2_CID_GAIN,4,2              ; @V4L2_CID_GAIN
	.comm	_MEDIA_ENT_F_ATV_DECODER,4,2    ; @MEDIA_ENT_F_ATV_DECODER
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ; @MEDIA_PAD_FL_SOURCE
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.no_dead_strip	_tvp7002_probe
.subsections_via_symbols
