	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ovcamchip_probe
_ovcamchip_probe:                       ## @ovcamchip_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	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$8, %rdi
	movq	_ovcamchip_ops@GOTPCREL(%rip), %rdx
	movq	%r15, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	%r15, %rdi
	callq	_ovcamchip_detect
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	_chip_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edx
	movl	(%r15), %ecx
	addl	%ecx, %ecx
	movq	8(%r15), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l_info
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_PDEBUG
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_PDEBUG
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ovcamchip_ops,4,2              ## @ovcamchip_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s found @ 0x%02x (%s)\n"

	.comm	_chip_names,8,3                 ## @chip_names
L_.str.1:                               ## @.str.1
	.asciz	"Camera chip detection complete"

L_.str.2:                               ## @.str.2
	.asciz	"returning %d"

	.no_dead_strip	_ovcamchip_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ovcamchip_probe
_ovcamchip_probe:                       ; @ovcamchip_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	add	x0, x0, #8
Lloh3:
	adrp	x2, _ovcamchip_ops@GOTPAGE
Lloh4:
	ldr	x2, [x2, _ovcamchip_ops@GOTPAGEOFF]
	mov	x1, x20
	bl	_v4l2_i2c_subdev_init
	mov	x0, x20
	bl	_ovcamchip_detect
	mov	x19, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _chip_names@GOTPAGE
Lloh6:
	ldr	x8, [x8, _chip_names@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x21]
	ldr	w2, [x8, x9, lsl #2]
	ldr	w8, [x20]
	lsl	w3, w8, #1
	ldr	x8, [x20, #8]
	ldr	w4, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_v4l_info
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_kfree
LBB0_5:
	str	x19, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	w0, #1
	bl	_PDEBUG
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ovcamchip_ops,4,2              ; @ovcamchip_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s found @ 0x%02x (%s)\n"

	.comm	_chip_names,8,3                 ; @chip_names
l_.str.1:                               ; @.str.1
	.asciz	"Camera chip detection complete"

l_.str.2:                               ; @.str.2
	.asciz	"returning %d"

	.no_dead_strip	_ovcamchip_probe
.subsections_via_symbols
