	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_pipeline_try_format
_fimc_pipeline_try_format:              ## @fimc_pipeline_try_format
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -96(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movl	16(%r12), %edi
	callq	_to_fimc_pipeline
	movq	(%rax), %rax
	movq	_IDX_SENSOR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	sete	%al
	testq	%r13, %r13
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_27:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%r14, -144(%rbp)                ## 8-byte Spill
	leaq	-72(%rbp), %r12
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movups	(%r13), %xmm0
	movups	%xmm0, -72(%rbp)
	movq	16(%r13), %rax
	movq	%rax, -56(%rbp)
	cmpl	$0, -96(%rbp)                   ## 4-byte Folded Reload
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	jne	LBB0_3
## %bb.4:
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	%rbx, %rdi
	callq	_fimc_pipeline_get_head
	movq	%rax, %r15
	movq	-72(%rbp), %rsi
	testq	%rsi, %rsi
	cmovneq	%r12, %rsi
	movq	_FMT_FLAGS_CAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	$1, %ecx
	callq	_fimc_find_format
	testq	%rax, %rax
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	je	LBB0_1
## %bb.6:
	movq	%rax, %rdi
	movq	%r13, %rcx
	leaq	16(%r13), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	8(%r13), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	$2, %esi
	movq	_set_fmt@GOTPCREL(%rip), %r14
                                        ## implicit-def: $r12
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	(%rdi), %rax
	movq	%rax, (%rcx)
	movq	%rax, -72(%rbp)
	cmpq	%rdx, %r15
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_media_entity_to_v4l2_subdev
	movq	%rax, %rbx
	movq	$0, -88(%rbp)
	movl	(%r14), %edx
	movq	%rax, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	leaq	-88(%rbp), %r8
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	jne	LBB0_27
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	8(%r15), %rax
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	(%r15), %rax
	decq	%rax
	movq	%rax, -88(%rbp)
	movq	(%r13), %rax
	movq	%rax, -72(%rbp)
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	leaq	-88(%rbp), %r8
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	jne	LBB0_27
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	8(%r15), %rax
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-88(%rbp), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_media_entity_remote_pad
	testq	%rax, %rax
	je	LBB0_1
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%rax, %r12
	movq	(%rax), %r15
	cmpq	-104(%rbp), %r15                ## 8-byte Folded Reload
	jne	LBB0_9
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %rax
	cmpq	(%r13), %rax
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	jne	LBB0_22
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%rdi), %eax
	movl	%eax, -44(%rbp)
	movl	-56(%rbp), %eax
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movl	%eax, (%rbx)
	movq	-64(%rbp), %rax
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	%rax, (%r14)
	movq	_FIMC_SD_PAD_SINK_CAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-144(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	leaq	-44(%rbp), %r8
	callq	_fimc_capture_try_format
	movq	_FIMC_SD_PAD_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	leaq	-44(%rbp), %r8
	callq	_fimc_capture_try_format
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, -72(%rbp)
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-56(%rbp), %ecx
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	cmpl	(%rdx), %ecx
	jne	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rcx
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	cmpq	(%rdx), %rcx
	movq	_set_fmt@GOTPCREL(%rip), %r14
	jne	LBB0_22
	jmp	LBB0_23
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_set_fmt@GOTPCREL(%rip), %r14
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %rsi
	testq	%rsi, %rsi
	leaq	-72(%rbp), %rax
	cmovneq	%rax, %rsi
	movq	_FMT_FLAGS_CAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leal	1(%rcx), %ebx
	xorl	%edi, %edi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_fimc_find_format
	movq	%rax, %rdi
	movl	%ebx, %esi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	%rdx, %r15
	testq	%rax, %rax
	movq	%r13, %rcx
	jne	LBB0_7
	jmp	LBB0_1
LBB0_23:
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.24:
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	%rax, (%rcx)
LBB0_26:
	leaq	-72(%rbp), %rcx
	movq	16(%rcx), %rax
	movq	%rax, 16(%r13)
	movups	(%rcx), %xmm0
	movups	%xmm0, (%r13)
	xorl	%eax, %eax
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_IDX_SENSOR,8,3                 ## @IDX_SENSOR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ## @V4L2_SUBDEV_FORMAT_TRY
	.comm	_FMT_FLAGS_CAM,4,2              ## @FMT_FLAGS_CAM
	.comm	_set_fmt,4,2                    ## @set_fmt
	.comm	_MEDIA_PAD_FL_SINK,4,2          ## @MEDIA_PAD_FL_SINK
	.comm	_FIMC_SD_PAD_SINK_CAM,4,2       ## @FIMC_SD_PAD_SINK_CAM
	.comm	_FIMC_SD_PAD_SOURCE,4,2         ## @FIMC_SD_PAD_SOURCE
	.no_dead_strip	_fimc_pipeline_try_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_pipeline_try_format
_fimc_pipeline_try_format:              ; @fimc_pipeline_try_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x22, x3
	mov	x24, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0]
	ldr	w0, [x20, #16]
	bl	_to_fimc_pipeline
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IDX_SENSOR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IDX_SENSOR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x23, [x8, x9, lsl #3]
	cmp	x19, #0
	ccmp	x23, #0, #4, ne
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_3
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_3:
	str	x24, [sp]                       ; 8-byte Folded Spill
	add	x8, sp, #40
	add	x24, x8, #16
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	q0, [x19]
	stur	q0, [sp, #56]
	ldr	x8, [x19, #16]
	str	x8, [sp, #72]
Lloh6:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh8:
	adrp	x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [sp, #48]
	mov	x0, x23
	bl	_fimc_pipeline_get_head
	mov	x27, x0
	ldr	x8, [sp, #56]
	cmp	x8, #0
	str	x24, [sp, #16]                  ; 8-byte Folded Spill
	csel	x1, xzr, x24, eq
Lloh10:
	adrp	x8, _FMT_FLAGS_CAM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FMT_FLAGS_CAM@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, #0
	mov	w3, #1
	bl	_fimc_find_format
	cbz	x0, LBB0_1
; %bb.4:
	mov	x26, x0
	add	x8, x19, #16
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	add	x8, x19, #8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	w24, #2
Lloh13:
	adrp	x23, _set_fmt@GOTPAGE
Lloh14:
	ldr	x23, [x23, _set_fmt@GOTPAGEOFF]
                                        ; implicit-def: $x25
Lloh15:
	adrp	x22, _MEDIA_PAD_FL_SINK@GOTPAGE
Lloh16:
	ldr	x22, [x22, _MEDIA_PAD_FL_SINK@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #56]
	cmp	x8, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	csel	x1, xzr, x8, eq
Lloh17:
	adrp	x8, _FMT_FLAGS_CAM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FMT_FLAGS_CAM@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	w27, w24, #1
	mov	x0, #0
	mov	x3, x24
	bl	_fimc_find_format
	mov	x26, x0
	mov	x24, x27
	mov	x27, x20
	cbz	x0, LBB0_1
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x26]
	str	x8, [x19]
	str	x8, [sp, #56]
	cmp	x27, x20
	b.eq	LBB0_14
LBB0_7:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x27
	bl	_media_entity_to_v4l2_subdev
	mov	x28, x0
	str	xzr, [sp, #40]
	ldr	w2, [x23]
	add	x4, sp, #40
	mov	x1, x25
	mov	x3, #0
	bl	_v4l2_subdev_call
	cbnz	w0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x27, #8]
	ldr	w9, [x8]
	ldr	w10, [x22]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x27]
	sub	x8, x8, #1
	ldr	x9, [x19]
	str	x8, [sp, #40]
	str	x9, [sp, #56]
	ldr	w2, [x23]
	add	x4, sp, #40
	mov	x0, x28
	mov	x1, x25
	mov	x3, #0
	bl	_v4l2_subdev_call
	cbnz	w0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x27, #8]
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x9, [sp, #40]
	add	x0, x8, x9, lsl #2
	bl	_media_entity_remote_pad
	cbz	x0, LBB0_1
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	x25, x0
	ldr	x27, [x0]
	cmp	x27, x20
	b.ne	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #56]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x26, #8]
	str	w8, [sp, #36]
	ldr	w8, [sp, #72]
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	str	w8, [x26]
	ldr	x8, [sp, #64]
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
	str	x8, [x27]
Lloh20:
	adrp	x8, _FIMC_SD_PAD_SINK_CAM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FIMC_SD_PAD_SINK_CAM@GOTPAGEOFF]
Lloh22:
	ldr	w5, [x8]
	add	x4, sp, #36
	mov	x0, x21
	mov	x1, x26
	mov	x2, x27
	mov	x3, #0
	bl	_fimc_capture_try_format
Lloh23:
	adrp	x8, _FIMC_SD_PAD_SOURCE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FIMC_SD_PAD_SOURCE@GOTPAGEOFF]
Lloh25:
	ldr	w5, [x8]
	add	x4, sp, #36
	mov	x0, x21
	mov	x1, x26
	mov	x2, x27
	mov	x3, #0
	bl	_fimc_capture_try_format
	cbz	x0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x0]
	cbz	x8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	str	x8, [sp, #56]
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #72]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #64]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.19:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cbz	x8, LBB0_22
; %bb.20:
	cbz	x0, LBB0_22
; %bb.21:
	str	x0, [x8]
LBB0_22:
	mov	w0, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	q0, [x8]
	str	q0, [x19]
	ldr	x8, [x8, #16]
	str	x8, [x19, #16]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_IDX_SENSOR,8,3                 ; @IDX_SENSOR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ; @V4L2_SUBDEV_FORMAT_TRY
	.comm	_FMT_FLAGS_CAM,4,2              ; @FMT_FLAGS_CAM
	.comm	_set_fmt,4,2                    ; @set_fmt
	.comm	_MEDIA_PAD_FL_SINK,4,2          ; @MEDIA_PAD_FL_SINK
	.comm	_FIMC_SD_PAD_SINK_CAM,4,2       ; @FIMC_SD_PAD_SINK_CAM
	.comm	_FIMC_SD_PAD_SOURCE,4,2         ; @FIMC_SD_PAD_SOURCE
	.no_dead_strip	_fimc_pipeline_try_format
.subsections_via_symbols
