	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c_camif_video_s_ctrl
_s3c_camif_video_s_ctrl:                ## @s3c_camif_video_s_ctrl
	.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	16(%rdi), %r15
	movq	16(%r15), %r14
	movl	12(%r15), %esi
	movl	4(%rdi), %ecx
	movl	8(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_4
## %bb.2:
	movl	4(%rbx), %eax
	movl	%eax, 8(%r15)
	jmp	LBB0_4
LBB0_3:
	movl	4(%rbx), %eax
	movl	%eax, 4(%r15)
LBB0_4:
	movq	_ST_VP_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[vp%d] ctrl: %s, value: %d\n"

	.comm	_ST_VP_CONFIG,4,2               ## @ST_VP_CONFIG
	.no_dead_strip	_s3c_camif_video_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c_camif_video_s_ctrl
_s3c_camif_video_s_ctrl:                ; @s3c_camif_video_s_ctrl
	.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	x20, x0
	ldr	x21, [x0, #16]
	ldr	x19, [x21, #16]
	ldr	w1, [x21, #12]
	ldp	w3, w2, [x0, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x20, #4]
	str	w8, [x21, #8]
	b	LBB0_4
LBB0_3:
	ldr	w8, [x20, #4]
	str	w8, [x21, #4]
LBB0_4:
Lloh2:
	adrp	x8, _ST_VP_CONFIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ST_VP_CONFIG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[vp%d] ctrl: %s, value: %d\n"

	.comm	_ST_VP_CONFIG,4,2               ; @ST_VP_CONFIG
	.no_dead_strip	_s3c_camif_video_s_ctrl
.subsections_via_symbols
