	.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	%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
	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:
	leaq	16(%rbx), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %r14
	leaq	24(%rax), %r15
	movq	_bt819_ops@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	%r12, %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
	jmp	LBB0_12
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str(%rip), %rdx
LBB0_12:
	movl	(%rbx), %ecx
	addl	%ecx, %ecx
	movq	8(%rbx), %rax
	movl	(%rax), %r8d
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_v4l_info
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	$0, 8(%r14)
	movl	$1, (%r14)
	movq	%r15, %rdi
	callq	_bt819_init
	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	%r15, %rdx
	movl	%eax, %r8d
	callq	_v4l2_dbg
LBB0_14:
	addq	$4, %r12
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_bt819_ctrl_ops@GOTPCREL(%rip), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$-128, %ecx
	movl	$127, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$216, (%rsp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movl	$511, %r8d                      ## imm = 0x1FF
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_SATURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$254, (%rsp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movl	$511, %r8d                      ## imm = 0x1FF
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_HUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$-128, %ecx
	movl	$127, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%r12, 24(%r14)
	movl	4(%r14), %ebx
	movq	%r12, %rdi
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.15:
	callq	_v4l2_ctrl_handler_free
	jmp	LBB0_17
LBB0_16:
	callq	_v4l2_ctrl_handler_setup
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_10:
	movq	_debug@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.3(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	movl	%eax, %r8d
	callq	_v4l2_dbg
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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"

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

L_.str.2:                               ## @.str.2
	.asciz	"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"

	.comm	_bt819_ctrl_ops,4,2             ## @bt819_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ## @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_CONTRAST,4,2          ## @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_SATURATION,4,2        ## @V4L2_CID_SATURATION
	.comm	_V4L2_CID_HUE,4,2               ## @V4L2_CID_HUE
	.no_dead_strip	_bt819_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt819_probe
_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	x21, 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_15
; %bb.1:
	add	x0, x21, #16
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	add	x20, x0, #24
Lloh6:
	adrp	x2, _bt819_ops@GOTPAGE
Lloh7:
	ldr	x2, [x2, _bt819_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	bl	_v4l2_i2c_subdev_init
	mov	x0, x19
	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_14
; %bb.5:
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_16
LBB0_7:
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
LBB0_9:
	ldr	w8, [x21]
	lsl	w3, w8, #1
	ldr	x8, [x21, #8]
	ldr	w4, [x8]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_v4l_info
Lloh18:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	str	xzr, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_bt819_init
	tbz	w0, #31, LBB0_11
; %bb.10:
	mov	x4, x0
Lloh21:
	adrp	x8, _debug@GOTPAGE
Lloh22:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x3, l_.str.5@PAGE
Lloh25:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_v4l2_dbg
LBB0_11:
	add	x20, x19, #4
	mov	x0, x20
	mov	w1, #4
	bl	_v4l2_ctrl_handler_init
Lloh26:
	adrp	x8, _V4L2_CID_BRIGHTNESS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _V4L2_CID_BRIGHTNESS@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x21, _bt819_ctrl_ops@GOTPAGE
Lloh30:
	ldr	x21, [x21, _bt819_ctrl_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #-128
	mov	w4, #127
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh31:
	adrp	x8, _V4L2_CID_CONTRAST@GOTPAGE
Lloh32:
	ldr	x8, [x8, _V4L2_CID_CONTRAST@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	w4, #511
	mov	w5, #1
	mov	w6, #216
	bl	_v4l2_ctrl_new_std
Lloh34:
	adrp	x8, _V4L2_CID_SATURATION@GOTPAGE
Lloh35:
	ldr	x8, [x8, _V4L2_CID_SATURATION@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	w4, #511
	mov	w5, #1
	mov	w6, #254
	bl	_v4l2_ctrl_new_std
Lloh37:
	adrp	x8, _V4L2_CID_HUE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _V4L2_CID_HUE@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #-128
	mov	w4, #127
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x20, [x19, #24]
	ldr	w19, [x19, #4]
	cbz	w19, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_v4l2_ctrl_handler_free
	b	LBB0_17
LBB0_13:
	mov	x0, x20
	bl	_v4l2_ctrl_handler_setup
	b	LBB0_17
LBB0_14:
	mov	x4, x0
Lloh40:
	adrp	x8, _debug@GOTPAGE
Lloh41:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x3, l_.str.3@PAGE
Lloh44:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_v4l2_dbg
LBB0_15:
Lloh45:
	adrp	x8, _ENODEV@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_17:
	mov	x0, x19
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh45, Lloh46
	.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"

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

l_.str.2:                               ; @.str.2
	.asciz	"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"

	.comm	_bt819_ctrl_ops,4,2             ; @bt819_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ; @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_CONTRAST,4,2          ; @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_SATURATION,4,2        ; @V4L2_CID_SATURATION
	.comm	_V4L2_CID_HUE,4,2               ; @V4L2_CID_HUE
	.no_dead_strip	_bt819_probe
.subsections_via_symbols
