	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks0127_probe
_ks0127_probe:                          ## @ks0127_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	movq	_I2C_KS0127_ADDON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	sarl	%eax
	cmpl	%eax, %ecx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	addl	%ecx, %ecx
	movq	8(%rdi), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	callq	_v4l_info
	leaq	4(%rbx), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_ks0127_ops@GOTPCREL(%rip), %rdx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_i2c_subdev_init
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_init_reg_defaults
	movq	_KS_CMDA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$44, %edx
	callq	_ks0127_write
	movl	$10, %edi
	callq	_mdelay
	movq	%r14, %rdi
	callq	_ks0127_init
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s chip found @ 0x%x (%s)\n"

	.comm	_I2C_KS0127_ADDON,4,2           ## @I2C_KS0127_ADDON
L_.str.1:                               ## @.str.1
	.asciz	"addon"

L_.str.2:                               ## @.str.2
	.asciz	"on-board"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ks0127_ops,4,2                 ## @ks0127_ops
	.comm	_KS_CMDA,4,2                    ## @KS_CMDA
	.no_dead_strip	_ks0127_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks0127_probe
_ks0127_probe:                          ; @ks0127_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	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _I2C_KS0127_ADDON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2C_KS0127_ADDON@GOTPAGEOFF]
Lloh2:
	adrp	x10, l_.str.2@PAGE
Lloh3:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh4:
	adrp	x11, l_.str.1@PAGE
Lloh5:
	add	x11, x11, l_.str.1@PAGEOFF
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9, asr #1
	csel	x2, x11, x10, eq
	lsl	w3, w8, #1
	ldr	x8, [x0, #8]
	ldr	w4, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l_info
	add	x0, x19, #4
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_devm_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh12:
	adrp	x2, _ks0127_ops@GOTPAGE
Lloh13:
	ldr	x2, [x2, _ks0127_ops@GOTPAGEOFF]
	mov	x1, x19
	bl	_v4l2_i2c_subdev_init
	bl	_init_reg_defaults
Lloh14:
	adrp	x8, _KS_CMDA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KS_CMDA@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #44
	bl	_ks0127_write
	mov	w0, #10
	bl	_mdelay
	mov	x0, x20
	bl	_ks0127_init
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s chip found @ 0x%x (%s)\n"

	.comm	_I2C_KS0127_ADDON,4,2           ; @I2C_KS0127_ADDON
l_.str.1:                               ; @.str.1
	.asciz	"addon"

l_.str.2:                               ; @.str.2
	.asciz	"on-board"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ks0127_ops,4,2                 ; @ks0127_ops
	.comm	_KS_CMDA,4,2                    ; @KS_CMDA
	.no_dead_strip	_ks0127_probe
.subsections_via_symbols
