	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_pipeline_enable
_isp_pipeline_enable:                   ## @isp_pipeline_enable
	.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
	subq	$56, %rsp
	.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
	movq	8(%rdi), %rax
	movq	8(%rax), %r12
	addq	$20, %rdi
	leaq	40(%r12), %rsi
	callq	_media_entity_enum_intersects
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_ISP_PIPELINE_IDLE_INPUT@GOTPCREL(%rip), %rax
	movq	_ISP_PIPELINE_IDLE_OUTPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	$0, 4(%rbx)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r15
	leaq	32(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	24(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	16(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	leaq	8(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	movl	$0, %r13d
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r13d, %r13d
	testl	%eax, (%rdi)
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_media_entity_remote_pad
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	callq	_is_media_entity_v4l2_subdev
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_media_entity_to_v4l2_subdev
	movq	%rax, %r12
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_stream@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %ecx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r13d
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	jne	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_video@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_s_stream@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %ecx
	callq	_v4l2_subdev_call
	movl	(%rbx), %esi
	movl	(%r13), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %ecx
	callq	_v4l2_subdev_call
	movl	(%rbx), %esi
	movl	(%r13), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %ecx
	callq	_v4l2_subdev_call
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 4(%rax)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ISP_PIPELINE_IDLE_INPUT,4,2    ## @ISP_PIPELINE_IDLE_INPUT
	.comm	_ISP_PIPELINE_IDLE_OUTPUT,4,2   ## @ISP_PIPELINE_IDLE_OUTPUT
	.comm	_MEDIA_PAD_FL_SINK,4,2          ## @MEDIA_PAD_FL_SINK
	.comm	_video,4,2                      ## @video
	.comm	_s_stream,4,2                   ## @s_stream
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.no_dead_strip	_isp_pipeline_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isp_pipeline_enable
_isp_pipeline_enable:                   ; @isp_pipeline_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x26, [x8, #8]
	add	x0, x0, #20
	add	x1, x26, #40
	bl	_media_entity_enum_intersects
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_2:
	add	x21, x20, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _ISP_PIPELINE_IDLE_INPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISP_PIPELINE_IDLE_INPUT@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ISP_PIPELINE_IDLE_OUTPUT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ISP_PIPELINE_IDLE_OUTPUT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	str	wzr, [x20, #4]
	ldr	x24, [x20, #8]
	add	x27, x26, #32
	add	x9, x26, #24
	add	x8, x26, #16
	stp	x8, x9, [sp]                    ; 16-byte Folded Spill
Lloh9:
	adrp	x28, _MEDIA_PAD_FL_SINK@GOTPAGE
Lloh10:
	ldr	x28, [x28, _MEDIA_PAD_FL_SINK@GOTPAGEOFF]
Lloh11:
	adrp	x21, _video@GOTPAGE
Lloh12:
	ldr	x21, [x21, _video@GOTPAGEOFF]
	add	x23, x26, #8
Lloh13:
	adrp	x22, _s_stream@GOTPAGE
Lloh14:
	ldr	x22, [x22, _s_stream@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	ldr	w8, [x0]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_media_entity_remote_pad
	cbz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	ldr	x0, [x0, #8]
	bl	_is_media_entity_v4l2_subdev
	cbz	w0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [x24, #8]
	mov	x0, x24
	bl	_media_entity_to_v4l2_subdev
	mov	x25, x0
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x3, x19
	bl	_v4l2_subdev_call
	tbz	w0, #31, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh15:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x25, x27
	b.ne	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x21]
	ldr	w2, [x22]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, x19
	bl	_v4l2_subdev_call
	ldr	w1, [x21]
	ldr	w2, [x22]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x3, x19
	bl	_v4l2_subdev_call
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x23
	mov	x3, x19
	bl	_v4l2_subdev_call
	mov	w8, #1
	str	w8, [x20, #4]
	b	LBB0_3
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ISP_PIPELINE_IDLE_INPUT,4,2    ; @ISP_PIPELINE_IDLE_INPUT
	.comm	_ISP_PIPELINE_IDLE_OUTPUT,4,2   ; @ISP_PIPELINE_IDLE_OUTPUT
	.comm	_MEDIA_PAD_FL_SINK,4,2          ; @MEDIA_PAD_FL_SINK
	.comm	_video,4,2                      ; @video
	.comm	_s_stream,4,2                   ; @s_stream
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.no_dead_strip	_isp_pipeline_enable
.subsections_via_symbols
