	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_csi_open
_sun4i_csi_open:                        ## @sun4i_csi_open
	.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	%rdi, %r15
	callq	_video_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mutex_lock_interruptible
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movl	4(%r14), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	%r14, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_v4l2_pipeline_pm_use
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	callq	_v4l2_fh_open
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_v4l2_pipeline_pm_use
	jmp	LBB0_7
LBB0_2:
	movl	%eax, %ebx
LBB0_7:
	movl	4(%r14), %edi
	callq	_pm_runtime_put
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sun4i_csi_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_csi_open
_sun4i_csi_open:                        ; @sun4i_csi_open
	.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, x0
	bl	_video_drvdata
	mov	x19, x0
	bl	_mutex_lock_interruptible
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_5
; %bb.2:
	add	x22, x19, #8
	mov	x0, x22
	mov	w1, #1
	bl	_v4l2_pipeline_pm_use
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.3:
	mov	x0, x21
	bl	_v4l2_fh_open
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.4:
	mov	x0, x22
	mov	w1, #0
	bl	_v4l2_pipeline_pm_use
	b	LBB0_6
LBB0_5:
	mov	x20, x0
LBB0_6:
	ldr	w0, [x19, #4]
	bl	_pm_runtime_put
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_8:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sun4i_csi_open
.subsections_via_symbols
