	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpfe_param_handler
_vpfe_param_handler:                    ## @vpfe_param_handler
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
	callq	_video_drvdata
	movq	%rax, %rbx
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	4(%rbx), %r14
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_v4l2_dbg
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l2_err
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_12
LBB0_2:
	movq	%rbx, %rdi
	callq	_mutex_lock_interruptible
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	cltq
	jmp	LBB0_12
LBB0_4:
	cmpl	$128, %r12d
	jne	LBB0_10
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l2_warn
	movq	_ccdc_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
LBB0_9:
	movq	%r14, %rdi
	callq	_v4l2_err
	jmp	LBB0_11
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movslq	%r15d, %rax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	callq	_vpfe_get_ccdc_image_format
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jns	LBB0_11
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpfe_param_handler\n"

L_.str.1:                               ## @.str.1
	.asciz	"device already started\n"

	.comm	_EBUSY,8,3                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"VPFE_CMD_S_CCDC_RAW_PARAMS: experimental ioctl\n"

	.comm	_ccdc_dev,8,3                   ## @ccdc_dev
L_.str.3:                               ## @.str.3
	.asciz	"Error in setting parameters in CCDC\n"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid image format at CCDC\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vpfe_param_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpfe_param_handler
_vpfe_param_handler:                    ; @vpfe_param_handler
	.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, x3
	mov	x22, x2
	bl	_video_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x20, x0, #4
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_v4l2_dbg
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_9
LBB0_2:
	mov	x0, x19
	bl	_mutex_lock_interruptible
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_4
; %bb.3:
	sxtw	x0, w0
	b	LBB0_9
LBB0_4:
	cmp	w22, #128
	b.ne	LBB0_7
; %bb.5:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_v4l2_warn
Lloh12:
	adrp	x8, _ccdc_dev@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ccdc_dev@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_10
; %bb.6:
	mov	x21, x0
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
	b	LBB0_8
LBB0_7:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	sxtw	x0, w21
LBB0_9:
	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
LBB0_10:
	add	x1, x19, #8
	mov	x0, x19
	bl	_vpfe_get_ccdc_image_format
	tbnz	w0, #31, LBB0_12
; %bb.11:
	mov	w21, #0
	b	LBB0_8
LBB0_12:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
	mov	w21, #0
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpfe_param_handler\n"

l_.str.1:                               ; @.str.1
	.asciz	"device already started\n"

	.comm	_EBUSY,8,3                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"VPFE_CMD_S_CCDC_RAW_PARAMS: experimental ioctl\n"

	.comm	_ccdc_dev,8,3                   ; @ccdc_dev
l_.str.3:                               ; @.str.3
	.asciz	"Error in setting parameters in CCDC\n"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid image format at CCDC\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vpfe_param_handler
.subsections_via_symbols
