	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpfe_initialize_device
_vpfe_initialize_device:                ## @vpfe_initialize_device
	.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
	movq	$0, 32(%rdi)
	movq	$0, (%rdi)
	movq	_vpfe_standards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_vpfe_config_image_format
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	_ccdc_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_ccdc_dev@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	8(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	(%r14), %rax
	movl	24(%rbx), %edi
	callq	*(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	$1, 8(%rbx)
LBB0_8:
	movq	16(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:
	movl	$-1, %edi
	callq	*%rcx
	jmp	LBB0_10
LBB0_2:
	addq	$28, %rbx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	addq	$28, %rbx
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	movq	%rbx, %rdi
	callq	_v4l2_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_10:
	movq	_ccdc_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vpfe_standards,8,3             ## @vpfe_standards
	.comm	_ccdc_lock,4,2                  ## @ccdc_lock
	.comm	_ccdc_dev,8,3                   ## @ccdc_dev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ccdc device not registered\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't lock ccdc module\n"

	.no_dead_strip	_vpfe_initialize_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpfe_initialize_device
_vpfe_initialize_device:                ; @vpfe_initialize_device
	.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
	str	xzr, [x0, #32]
	str	xzr, [x0]
Lloh0:
	adrp	x8, _vpfe_standards@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vpfe_standards@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_vpfe_config_image_format
	mov	x20, x0
	cbnz	w0, LBB0_11
; %bb.1:
Lloh3:
	adrp	x0, _ccdc_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _ccdc_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh5:
	adrp	x20, _ccdc_dev@GOTPAGE
Lloh6:
	ldr	x20, [x20, _ccdc_dev@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	w0, [x8, #8]
	bl	_try_module_get
	cbz	w0, LBB0_8
; %bb.3:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w0, [x19, #24]
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.6:
	mov	w0, #-1
	blr	x8
	b	LBB0_10
LBB0_7:
	add	x0, x19, #28
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
	add	x0, x19, #28
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	bl	_v4l2_err
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
Lloh14:
	adrp	x0, _ccdc_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _ccdc_lock@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_11:
	mov	x0, x20
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_vpfe_standards,8,3             ; @vpfe_standards
	.comm	_ccdc_lock,4,2                  ; @ccdc_lock
	.comm	_ccdc_dev,8,3                   ; @ccdc_dev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ccdc device not registered\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't lock ccdc module\n"

	.no_dead_strip	_vpfe_initialize_device
.subsections_via_symbols
