	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt819_probe
_bt819_probe:                           ## @bt819_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %r14
	addq	$48, %r14
	movq	_bt819_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	%rbx, %rdi
	movl	$23, %esi
	callq	_bt819_read
	movl	%eax, %ecx
	andb	$-16, %cl
	cmpb	$32, %cl
	je	LBB0_11
## %bb.6:
	cmpb	$112, %cl
	je	LBB0_7
## %bb.8:
	cmpb	$96, %cl
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdx
	movq	_V4L2_IDENT_BT817A@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	leaq	L_.str.2(%rip), %rdx
	movq	_V4L2_IDENT_BT815A@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str(%rip), %rdx
	movq	_V4L2_IDENT_BT819A@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	(%r15), %ecx
	addl	%ecx, %ecx
	movq	8(%r15), %rax
	movl	(%rax), %r8d
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l_info
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	$0, 32(%rbx)
	movabsq	$927712935937, %rax             ## imm = 0xD800000001
	movq	%rax, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movl	$254, 8(%rbx)
	movq	%r14, %rdi
	callq	_bt819_init
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_14
## %bb.13:
	movq	_debug@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.5(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	movl	%eax, %r8d
	callq	_v4l2_dbg
	jmp	LBB0_14
LBB0_10:
	movq	_debug@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.3(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	movl	%eax, %r8d
	callq	_v4l2_dbg
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bt819_ops,4,2                  ## @bt819_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bt819a"

	.comm	_V4L2_IDENT_BT819A,4,2          ## @V4L2_IDENT_BT819A
L_.str.1:                               ## @.str.1
	.asciz	"bt817a"

	.comm	_V4L2_IDENT_BT817A,4,2          ## @V4L2_IDENT_BT817A
L_.str.2:                               ## @.str.2
	.asciz	"bt815a"

	.comm	_V4L2_IDENT_BT815A,4,2          ## @V4L2_IDENT_BT815A
	.comm	_debug,4,2                      ## @debug
L_.str.3:                               ## @.str.3
	.asciz	"unknown chip version 0x%02x\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s found @ 0x%x (%s)\n"

	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
L_.str.5:                               ## @.str.5
	.asciz	"init status %d\n"

	.no_dead_strip	_bt819_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 bt819_probe
lCPI0_0:
	.long	1                               ; 0x1
	.long	216                             ; 0xd8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bt819_probe:                           ; @bt819_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_13
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	add	x19, x0, #48
Lloh6:
	adrp	x2, _bt819_ops@GOTPAGE
Lloh7:
	ldr	x2, [x2, _bt819_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_v4l2_i2c_subdev_init
	mov	x0, x21
	mov	w1, #23
	bl	_bt819_read
	and	w8, w0, #0xf0
	cmp	w8, #32
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #112
	b.eq	LBB0_8
; %bb.4:
	cmp	w8, #96
	b.ne	LBB0_12
; %bb.5:
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh10:
	adrp	x8, _V4L2_IDENT_BT817A@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_IDENT_BT817A@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
Lloh16:
	adrp	x8, _V4L2_IDENT_BT815A@GOTPAGE
Lloh17:
	ldr	x8, [x8, _V4L2_IDENT_BT815A@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
Lloh20:
	adrp	x8, _V4L2_IDENT_BT819A@GOTPAGE
Lloh21:
	ldr	x8, [x8, _V4L2_IDENT_BT819A@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x21, #44]
	ldr	w8, [x20]
	lsl	w3, w8, #1
	ldr	x8, [x20, #8]
	ldr	w4, [x8]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_v4l_info
Lloh24:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x21, #40]
	stp	xzr, xzr, [x21, #24]
Lloh27:
	adrp	x8, lCPI0_0@PAGE
Lloh28:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
	str	xzr, [x21, #16]
	mov	w8, #254
	str	w8, [x21, #8]
	mov	x0, x19
	bl	_bt819_init
	tbz	w0, #31, LBB0_11
; %bb.10:
	mov	x4, x0
Lloh29:
	adrp	x8, _debug@GOTPAGE
Lloh30:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x3, l_.str.5@PAGE
Lloh33:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
LBB0_11:
	mov	w0, #0
	b	LBB0_15
LBB0_12:
	mov	x4, x0
Lloh34:
	adrp	x8, _debug@GOTPAGE
Lloh35:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x3, l_.str.3@PAGE
Lloh38:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
LBB0_13:
Lloh39:
	adrp	x8, _ENODEV@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdr	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bt819_ops,4,2                  ; @bt819_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bt819a"

	.comm	_V4L2_IDENT_BT819A,4,2          ; @V4L2_IDENT_BT819A
l_.str.1:                               ; @.str.1
	.asciz	"bt817a"

	.comm	_V4L2_IDENT_BT817A,4,2          ; @V4L2_IDENT_BT817A
l_.str.2:                               ; @.str.2
	.asciz	"bt815a"

	.comm	_V4L2_IDENT_BT815A,4,2          ; @V4L2_IDENT_BT815A
	.comm	_debug,4,2                      ; @debug
l_.str.3:                               ; @.str.3
	.asciz	"unknown chip version 0x%02x\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s found @ 0x%x (%s)\n"

	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
l_.str.5:                               ; @.str.5
	.asciz	"init status %d\n"

	.no_dead_strip	_bt819_probe
.subsections_via_symbols
