	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __fimc_md_modify_pipeline
___fimc_md_modify_pipeline:             ## @__fimc_md_modify_pipeline
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_media_entity_to_video_device
	xorl	%r12d, %r12d
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	%rax, %rdi
	callq	_vdev_to_exynos_video_entity
	movq	%rax, %r13
	movl	(%rax), %edi
	callq	_to_fimc_pipeline
	movq	%rax, %r15
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.7:
	movl	(%r13), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	___fimc_pipeline_open
	jmp	LBB0_4
LBB0_2:
	movq	(%r15), %rax
	movq	_IDX_SENSOR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_6
## %bb.3:
	movl	(%r13), %edi
	callq	___fimc_pipeline_close
LBB0_4:
	movl	%eax, %r12d
	orl	%eax, %r14d
	jne	LBB0_6
## %bb.5:
	movq	(%r15), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDX_SENSOR,8,3                 ## @IDX_SENSOR
	.no_dead_strip	___fimc_md_modify_pipeline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __fimc_md_modify_pipeline
___fimc_md_modify_pipeline:             ; @__fimc_md_modify_pipeline
	.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	x19, x1
	mov	x21, x0
	bl	_media_entity_to_video_device
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.1:
	bl	_vdev_to_exynos_video_entity
	mov	x22, x0
	ldr	w0, [x0]
	bl	_to_fimc_pipeline
	mov	x20, x0
	cbz	w19, LBB0_3
; %bb.2:
	ldr	w0, [x22]
	mov	x1, x21
	mov	w2, #1
	bl	___fimc_pipeline_open
	b	LBB0_5
LBB0_3:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _IDX_SENSOR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IDX_SENSOR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	w0, [x22]
	bl	___fimc_pipeline_close
LBB0_5:
	mov	x21, x0
	orr	w8, w0, w19
	cbnz	w8, LBB0_8
; %bb.6:
	ldr	x0, [x20]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	b	LBB0_8
LBB0_7:
	mov	w21, #0
LBB0_8:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IDX_SENSOR,8,3                 ; @IDX_SENSOR
	.no_dead_strip	___fimc_md_modify_pipeline
.subsections_via_symbols
