	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_device_run
_fimc_device_run:                       ## @fimc_device_run
	.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, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	testq	%rax, %rax
	je	LBB0_1
## %bb.15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_ST_M2M_PEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r14), %rsi
	callq	_set_bit
	leaq	12(%rbx), %r12
	leaq	8(%rbx), %r15
	movq	_FIMC_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_fimc_prepare_dma_offset
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_fimc_prepare_dma_offset
LBB0_3:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edi
	callq	_v4l2_m2m_next_src_buf
	movq	%rax, %r13
	leaq	4(%rax), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movq	%r12, %rcx
	callq	_fimc_prepare_addr
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	movl	4(%rbx), %edi
	callq	_v4l2_m2m_next_dst_buf
	movq	%rax, %r15
	leaq	4(%rax), %rsi
	movq	%rbx, %rdi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %rdx
	callq	_fimc_prepare_addr
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:
	movl	4(%r13), %eax
	movl	%eax, 4(%r15)
	movq	_V4L2_BUF_FLAG_TSTAMP_SRC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	(%r15), %ecx
	movl	%ecx, (%r15)
	movl	(%rax), %eax
	andl	(%r13), %eax
	orl	%ecx, %eax
	movl	%eax, (%r15)
	cmpq	%rbx, 16(%r14)
	je	LBB0_6
## %bb.7:
	movl	(%rbx), %eax
	movq	_FIMC_PARAMS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movq	%rbx, 16(%r14)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	testl	%eax, (%rcx)
	jne	LBB0_9
	jmp	LBB0_13
LBB0_6:
	movl	(%rbx), %eax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	_FIMC_PARAMS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
LBB0_9:
	movq	%rbx, %rdi
	callq	_fimc_set_yuv_order
	movq	%rbx, %rdi
	callq	_fimc_hw_set_input_path
	movq	%rbx, %rdi
	callq	_fimc_hw_set_in_dma
	movq	%rbx, %rdi
	callq	_fimc_set_scaler_info
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	movq	%rbx, %rdi
	callq	_fimc_hw_set_prescaler
	movq	%rbx, %rdi
	callq	_fimc_hw_set_mainscaler
	movq	%rbx, %rdi
	callq	_fimc_hw_set_target_format
	movq	%rbx, %rdi
	callq	_fimc_hw_set_rotation
	movq	%rbx, %rdi
	callq	_fimc_hw_set_effect
	movq	%rbx, %rdi
	callq	_fimc_hw_set_out_dma
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_fimc_hw_set_rgb_alpha
LBB0_12:
	movq	%rbx, %rdi
	callq	_fimc_hw_set_output_path
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_13:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_fimc_hw_set_input_addr
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$-1, %edx
	callq	_fimc_hw_set_output_addr
	movq	%rbx, %rdi
	callq	_fimc_activate_capture
	movq	_FIMC_CTX_M2M@GOTPCREL(%rip), %rax
	movq	_FIMC_CTX_CAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	andl	%ecx, (%rbx)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_fimc_hw_activate_input_dma
LBB0_14:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Null context\n"

	.comm	_ST_M2M_PEND,4,2                ## @ST_M2M_PEND
	.comm	_FIMC_PARAMS,4,2                ## @FIMC_PARAMS
	.comm	_V4L2_BUF_FLAG_TSTAMP_SRC_MASK,4,2 ## @V4L2_BUF_FLAG_TSTAMP_SRC_MASK
	.comm	_FIMC_CTX_M2M,4,2               ## @FIMC_CTX_M2M
	.comm	_FIMC_CTX_CAP,4,2               ## @FIMC_CTX_CAP
	.no_dead_strip	_fimc_device_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_device_run
_fimc_device_run:                       ; @fimc_device_run
	.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	x19, x0
	cmp	x0, #0
	cset	w0, eq
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	cbz	x0, LBB0_2
; %bb.1:
	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_2:
	ldr	x20, [x19, #16]
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _ST_M2M_PEND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ST_M2M_PEND@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x20, #24
	bl	_set_bit
	add	x22, x19, #12
	add	x21, x19, #8
	ldr	w8, [x19]
Lloh5:
	adrp	x25, _FIMC_PARAMS@GOTPAGE
Lloh6:
	ldr	x25, [x25, _FIMC_PARAMS@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	bl	_fimc_prepare_dma_offset
	mov	x0, x19
	mov	x1, x21
	bl	_fimc_prepare_dma_offset
LBB0_4:
	ldr	w0, [x19, #4]
	bl	_v4l2_m2m_next_src_buf
	mov	x23, x0
	add	x1, x0, #4
	mov	x0, x19
	mov	x2, x22
	mov	x3, x22
	bl	_fimc_prepare_addr
	cbnz	w0, LBB0_15
; %bb.5:
	ldr	w0, [x19, #4]
	bl	_v4l2_m2m_next_dst_buf
	mov	x24, x0
	add	x1, x0, #4
	mov	x0, x19
	mov	x2, x21
	mov	x3, x21
	bl	_fimc_prepare_addr
	cbnz	w0, LBB0_15
; %bb.6:
Lloh7:
	adrp	x8, _V4L2_BUF_FLAG_TSTAMP_SRC_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_BUF_FLAG_TSTAMP_SRC_MASK@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	w10, [x24]
	bic	w9, w10, w9
	str	w9, [x24]
	ldp	w11, w10, [x23]
	ldr	w8, [x8]
	and	w8, w8, w11
	orr	w8, w8, w9
	stp	w8, w10, [x24]
	ldr	x8, [x20, #16]
	cmp	x8, x19
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x25]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	str	x19, [x20, #16]
	b	LBB0_9
LBB0_8:
	ldr	w8, [x19]
LBB0_9:
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.10:
	mov	x0, x19
	bl	_fimc_set_yuv_order
	mov	x0, x19
	bl	_fimc_hw_set_input_path
	mov	x0, x19
	bl	_fimc_hw_set_in_dma
	mov	x0, x19
	bl	_fimc_set_scaler_info
	cbnz	w0, LBB0_15
; %bb.11:
	mov	x0, x19
	bl	_fimc_hw_set_prescaler
	mov	x0, x19
	bl	_fimc_hw_set_mainscaler
	mov	x0, x19
	bl	_fimc_hw_set_target_format
	mov	x0, x19
	bl	_fimc_hw_set_rotation
	mov	x0, x19
	bl	_fimc_hw_set_effect
	mov	x0, x19
	bl	_fimc_hw_set_out_dma
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_fimc_hw_set_rgb_alpha
LBB0_13:
	mov	x0, x19
	bl	_fimc_hw_set_output_path
LBB0_14:
	mov	x0, x20
	mov	x1, x22
	bl	_fimc_hw_set_input_addr
	mov	x0, x20
	mov	x1, x21
	mov	w2, #-1
	bl	_fimc_hw_set_output_addr
	mov	x0, x19
	bl	_fimc_activate_capture
Lloh9:
	adrp	x8, _FIMC_CTX_M2M@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FIMC_CTX_M2M@GOTPAGEOFF]
Lloh11:
	adrp	x9, _FIMC_CTX_CAP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FIMC_CTX_CAP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	and	w8, w9, w8
	str	w8, [x19]
	mov	x0, x20
	mov	w1, #1
	bl	_fimc_hw_activate_input_dma
LBB0_15:
	mov	x0, x20
	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
	b	_spin_unlock_irqrestore
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Null context\n"

	.comm	_ST_M2M_PEND,4,2                ; @ST_M2M_PEND
	.comm	_FIMC_PARAMS,4,2                ; @FIMC_PARAMS
	.comm	_V4L2_BUF_FLAG_TSTAMP_SRC_MASK,4,2 ; @V4L2_BUF_FLAG_TSTAMP_SRC_MASK
	.comm	_FIMC_CTX_M2M,4,2               ; @FIMC_CTX_M2M
	.comm	_FIMC_CTX_CAP,4,2               ; @FIMC_CTX_CAP
	.no_dead_strip	_fimc_device_run
.subsections_via_symbols
