	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_lite_open
_fimc_lite_open:                        ## @fimc_lite_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_video_drvdata
	movq	%rax, %rbx
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mutex_lock
	leaq	32(%rbx), %r15
	movq	%r15, %rdi
	callq	_atomic_read
	movq	_FIMC_IO_DMA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_ST_FLITE_IN_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_set_bit
	movq	8(%r14), %rdi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	callq	_v4l2_fh_open
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movq	%r12, %rdi
	callq	_v4l2_fh_is_singular_file
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movq	%r15, %rdi
	callq	_atomic_read
	movq	_FIMC_IO_DMA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.7:
	addq	$16, %rbx
	movq	(%rbx), %rdi
	callq	_mutex_lock
	movq	_open@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	_fimc_pipeline_call
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %r13d
	movq	(%rbx), %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_v4l2_fh_release
LBB0_10:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	_ST_FLITE_IN_USE@GOTPCREL(%rip), %rbx
	movq	8(%r14), %rdi
	callq	_pm_runtime_put_sync
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	jmp	LBB0_11
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_11
LBB0_3:
	movl	%eax, %r13d
LBB0_11:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	incl	24(%r14)
	movq	16(%r14), %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_fimc_lite_clear_event_counters
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_FIMC_IO_DMA,8,3                ## @FIMC_IO_DMA
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ST_FLITE_IN_USE,4,2            ## @ST_FLITE_IN_USE
	.comm	_open,4,2                       ## @open
	.no_dead_strip	_fimc_lite_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_lite_open
_fimc_lite_open:                        ; @fimc_lite_open
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	bl	_video_drvdata
	mov	x19, x0
	bl	_mutex_lock
	add	x23, x19, #32
	mov	x0, x23
	bl	_atomic_read
Lloh0:
	adrp	x25, _FIMC_IO_DMA@GOTPAGE
Lloh1:
	ldr	x25, [x25, _FIMC_IO_DMA@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.1:
Lloh2:
	adrp	x24, _ST_FLITE_IN_USE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ST_FLITE_IN_USE@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x21, x19, #4
	mov	x1, x21
	bl	_set_bit
	ldr	x0, [x19, #8]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_9
; %bb.2:
	mov	x0, x20
	bl	_v4l2_fh_open
	mov	x22, x0
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_v4l2_fh_is_singular_file
	cbz	w0, LBB0_10
; %bb.4:
	mov	x0, x23
	bl	_atomic_read
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.5:
	add	x23, x19, #16
	ldr	x0, [x23]
	bl	_mutex_lock
Lloh4:
	adrp	x8, _open@GOTPAGE
Lloh5:
	ldr	x8, [x8, _open@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x23
	mov	w3, #1
	bl	_fimc_pipeline_call
	mov	x22, x0
	cbz	w0, LBB0_11
; %bb.6:
	ldr	x0, [x23]
	bl	_mutex_unlock
	mov	x0, x20
	bl	_v4l2_fh_release
LBB0_7:
	ldr	x0, [x19, #8]
	bl	_pm_runtime_put_sync
	ldr	w0, [x24]
	mov	x1, x21
	bl	_clear_bit
	b	LBB0_10
LBB0_8:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_9:
	mov	x22, x0
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	ldr	x0, [x19, #16]
	bl	_mutex_unlock
	mov	x0, x19
	bl	_fimc_lite_clear_event_counters
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FIMC_IO_DMA,8,3                ; @FIMC_IO_DMA
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ST_FLITE_IN_USE,4,2            ; @ST_FLITE_IN_USE
	.comm	_open,4,2                       ; @open
	.no_dead_strip	_fimc_lite_open
.subsections_via_symbols
