	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt856_probe
_bt856_probe:                           ## @bt856_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, %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:
	movl	(%rbx), %edx
	addl	%edx, %edx
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_v4l_info
	leaq	4(%rbx), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%rax, %rdi
	addq	$4, %rdi
	movq	_bt856_ops@GOTPCREL(%rip), %rdx
	movq	%rbx, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	movl	$220, %esi
	movl	$24, %edx
	callq	_bt856_write
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	$218, %esi
	xorl	%edx, %edx
	callq	_bt856_write
	movq	%r15, %rdi
	movl	$222, %esi
	xorl	%edx, %edx
	callq	_bt856_write
	movq	%r15, %rdi
	movl	$220, %esi
	movl	$3, %edx
	movl	$1, %ecx
	callq	_bt856_setbit
	movq	%r15, %rdi
	movl	$220, %esi
	movl	$4, %edx
	movl	$1, %ecx
	callq	_bt856_setbit
	movl	(%rbx), %eax
	xorl	%ecx, %ecx
	andl	(%r15), %eax
	sete	%cl
	movq	%r15, %rdi
	movl	$220, %esi
	movl	$2, %edx
	callq	_bt856_setbit
	movq	%r15, %rdi
	movl	$220, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_bt856_setbit
	movq	%r15, %rdi
	movl	$222, %esi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_bt856_setbit
	movq	%r15, %rdi
	movl	$222, %esi
	movl	$3, %edx
	movl	$1, %ecx
	callq	_bt856_setbit
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_bt856_dump
	jmp	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chip found @ 0x%x (%s)\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bt856_ops,4,2                  ## @bt856_ops
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_debug,8,3                      ## @debug
	.no_dead_strip	_bt856_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt856_probe
_bt856_probe:                           ; @bt856_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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_5
; %bb.1:
	ldr	w8, [x20]
	lsl	w2, w8, #1
	ldr	x8, [x20, #8]
	ldr	w3, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_v4l_info
	add	x0, x20, #4
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	add	x0, x0, #4
Lloh8:
	adrp	x2, _bt856_ops@GOTPAGE
Lloh9:
	ldr	x2, [x2, _bt856_ops@GOTPAGEOFF]
	mov	x1, x20
	bl	_v4l2_i2c_subdev_init
Lloh10:
	adrp	x20, _V4L2_STD_NTSC@GOTPAGE
Lloh11:
	ldr	x20, [x20, _V4L2_STD_NTSC@GOTPAGEOFF]
	ldr	w8, [x20]
	str	w8, [x19]
	mov	x0, x19
	mov	w1, #220
	mov	w2, #24
	bl	_bt856_write
	mov	x0, x19
	mov	w1, #218
	mov	w2, #0
	bl	_bt856_write
	mov	x0, x19
	mov	w1, #222
	mov	w2, #0
	bl	_bt856_write
	mov	x0, x19
	mov	w1, #220
	mov	w2, #3
	mov	w3, #1
	bl	_bt856_setbit
	mov	x0, x19
	mov	w1, #220
	mov	w2, #4
	mov	w3, #1
	bl	_bt856_setbit
	ldr	w8, [x19]
	ldr	w9, [x20]
	tst	w9, w8
	cset	w3, eq
	mov	x0, x19
	mov	w1, #220
	mov	w2, #2
	bl	_bt856_setbit
	mov	x0, x19
	mov	w1, #220
	mov	w2, #1
	mov	w3, #1
	bl	_bt856_setbit
	mov	x0, x19
	mov	w1, #222
	mov	w2, #4
	mov	w3, #0
	bl	_bt856_setbit
	mov	x0, x19
	mov	w1, #222
	mov	w2, #3
	mov	w3, #1
	bl	_bt856_setbit
Lloh12:
	adrp	x8, _debug@GOTPAGE
Lloh13:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_bt856_dump
LBB0_4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chip found @ 0x%x (%s)\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bt856_ops,4,2                  ; @bt856_ops
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_debug,8,3                      ; @debug
	.no_dead_strip	_bt856_probe
.subsections_via_symbols
