	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function tvp5150_probe
LCPI0_0:
	.long	1                               ## 0x1
	.long	128                             ## 0x80
	.long	128                             ## 0x80
	.long	128                             ## 0x80
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_tvp5150_probe:                         ## @tvp5150_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, %rbx
	movq	8(%rdi), %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_1
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %r13
	addq	$32, %r13
	movq	_tvp5150_ops@GOTPCREL(%rip), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_i2c_subdev_init
	movl	(%rbx), %edx
	addl	%edx, %edx
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_v4l_info
	movq	_TVP5150_MSB_DEV_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_tvp5150_read
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_TVP5150_LSB_DEV_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_tvp5150_read
	movl	%eax, %r12d
	movq	_TVP5150_ROM_MAJOR_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_tvp5150_read
	movl	%eax, %ebx
	movq	_TVP5150_ROM_MINOR_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_tvp5150_read
	movl	%eax, %r15d
	cmpl	$4, %ebx
	jne	LBB0_8
## %bb.6:
	testl	%r15d, %r15d
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_v4l2_info
	movq	_TVP5150_REV_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_tvp5150_write
	jmp	LBB0_13
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_8:
	cmpl	$3, %ebx
	je	LBB0_10
## %bb.9:
	cmpl	$33, %r15d
	je	LBB0_10
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_v4l2_info
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
LBB0_12:
	callq	_v4l2_info
LBB0_13:
	movq	_V4L2_STD_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_TVP5150_COMPOSITE1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	$0, 16(%r14)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,128,128,128]
	movups	%xmm0, (%r14)
	movq	_debug@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	$2, (%rax)
	jl	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	callq	_tvp5150_log_status
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_tvp5150_ops,4,2                ## @tvp5150_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chip found @ 0x%02x (%s)\n"

	.comm	_TVP5150_MSB_DEV_ID,4,2         ## @TVP5150_MSB_DEV_ID
	.comm	_TVP5150_LSB_DEV_ID,4,2         ## @TVP5150_LSB_DEV_ID
	.comm	_TVP5150_ROM_MAJOR_VER,4,2      ## @TVP5150_ROM_MAJOR_VER
	.comm	_TVP5150_ROM_MINOR_VER,4,2      ## @TVP5150_ROM_MINOR_VER
L_.str.1:                               ## @.str.1
	.asciz	"tvp%02x%02xam1 detected.\n"

	.comm	_TVP5150_REV_SELECT,4,2         ## @TVP5150_REV_SELECT
L_.str.2:                               ## @.str.2
	.asciz	"tvp%02x%02xa detected.\n"

L_.str.3:                               ## @.str.3
	.asciz	"*** unknown tvp%02x%02x chip detected.\n"

L_.str.4:                               ## @.str.4
	.asciz	"*** Rom ver is %d.%d\n"

	.comm	_V4L2_STD_ALL,4,2               ## @V4L2_STD_ALL
	.comm	_TVP5150_COMPOSITE1,4,2         ## @TVP5150_COMPOSITE1
	.comm	_debug,4,2                      ## @debug
	.no_dead_strip	_tvp5150_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function tvp5150_probe
lCPI0_0:
	.long	1                               ; 0x1
	.long	128                             ; 0x80
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_tvp5150_probe:                         ; @tvp5150_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_READ_BYTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_READ_BYTE@GOTPAGEOFF]
	ldr	x0, [x0, #8]
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_6
; %bb.1:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	add	x19, x0, #32
Lloh9:
	adrp	x2, _tvp5150_ops@GOTPAGE
Lloh10:
	ldr	x2, [x2, _tvp5150_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	bl	_v4l2_i2c_subdev_init
	ldr	w8, [x21]
	lsl	w2, w8, #1
	ldr	x8, [x21, #8]
	ldr	w3, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_v4l_info
Lloh13:
	adrp	x8, _TVP5150_MSB_DEV_ID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TVP5150_MSB_DEV_ID@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tvp5150_read
	mov	x21, x0
Lloh16:
	adrp	x8, _TVP5150_LSB_DEV_ID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TVP5150_LSB_DEV_ID@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tvp5150_read
	mov	x22, x0
Lloh19:
	adrp	x8, _TVP5150_ROM_MAJOR_VER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TVP5150_ROM_MAJOR_VER@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tvp5150_read
	mov	x23, x0
Lloh22:
	adrp	x8, _TVP5150_ROM_MINOR_VER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TVP5150_ROM_MINOR_VER@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tvp5150_read
	cmp	w23, #4
	ccmp	w0, #0, #0, eq
	b.eq	LBB0_9
; %bb.3:
	cmp	w23, #3
	b.eq	LBB0_10
; %bb.4:
	mov	x24, x0
	cmp	w0, #33
	b.eq	LBB0_10
; %bb.5:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_v4l2_info
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	mov	x3, x24
	b	LBB0_11
LBB0_6:
Lloh29:
	adrp	x8, _EIO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_9:
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_v4l2_info
Lloh35:
	adrp	x8, _TVP5150_REV_SELECT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TVP5150_REV_SELECT@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_tvp5150_write
	b	LBB0_12
LBB0_10:
Lloh38:
	adrp	x1, l_.str.2@PAGE
Lloh39:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
LBB0_11:
	bl	_v4l2_info
LBB0_12:
Lloh40:
	adrp	x8, _V4L2_STD_ALL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _V4L2_STD_ALL@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _TVP5150_COMPOSITE1@GOTPAGE
Lloh44:
	ldr	x9, [x9, _TVP5150_COMPOSITE1@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
Lloh46:
	adrp	x8, lCPI0_0@PAGE
Lloh47:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
	mov	x8, #549755814016
	stp	x8, xzr, [x20, #8]
Lloh48:
	adrp	x8, _debug@GOTPAGE
Lloh49:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_tvp5150_log_status
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdr	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.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	_tvp5150_ops,4,2                ; @tvp5150_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chip found @ 0x%02x (%s)\n"

	.comm	_TVP5150_MSB_DEV_ID,4,2         ; @TVP5150_MSB_DEV_ID
	.comm	_TVP5150_LSB_DEV_ID,4,2         ; @TVP5150_LSB_DEV_ID
	.comm	_TVP5150_ROM_MAJOR_VER,4,2      ; @TVP5150_ROM_MAJOR_VER
	.comm	_TVP5150_ROM_MINOR_VER,4,2      ; @TVP5150_ROM_MINOR_VER
l_.str.1:                               ; @.str.1
	.asciz	"tvp%02x%02xam1 detected.\n"

	.comm	_TVP5150_REV_SELECT,4,2         ; @TVP5150_REV_SELECT
l_.str.2:                               ; @.str.2
	.asciz	"tvp%02x%02xa detected.\n"

l_.str.3:                               ; @.str.3
	.asciz	"*** unknown tvp%02x%02x chip detected.\n"

l_.str.4:                               ; @.str.4
	.asciz	"*** Rom ver is %d.%d\n"

	.comm	_V4L2_STD_ALL,4,2               ; @V4L2_STD_ALL
	.comm	_TVP5150_COMPOSITE1,4,2         ; @TVP5150_COMPOSITE1
	.comm	_debug,4,2                      ; @debug
	.no_dead_strip	_tvp5150_probe
.subsections_via_symbols
