	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_video_check_external_subdevs
_isp_video_check_external_subdevs:      ## @isp_video_check_external_subdevs
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r12
	leaq	32(%r12), %rax
	movq	%rax, -80(%rbp)
	leaq	24(%r12), %rax
	movq	%rax, -72(%rbp)
	leaq	16(%r12), %rax
	movq	%rax, -64(%rbp)
	movq	%r12, -56(%rbp)
	xorl	%ebx, %ebx
	cmpq	$0, 24(%rsi)
	jne	LBB0_12
## %bb.1:
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %r13
	xorl	%r15d, %r15d
	leaq	-80(%rbp), %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %r15
	jae	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp,%r15,8), %rsi
	movq	%r13, %rdi
	callq	_media_entity_enum_test
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp,%r15,8), %rax
	movq	(%rax), %rdi
	callq	_media_entity_remote_pad
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	%rax, %r14
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.7:
	movq	-80(%rbp,%r15,8), %r15
	movq	%rbx, %rdi
	callq	_is_media_entity_v4l2_subdev
	testl	%eax, %eax
	je	LBB0_18
## %bb.8:
	movq	%rbx, %rdi
	callq	_media_entity_to_v4l2_subdev
	movq	%r15, %rdi
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, 8(%r15)
	movl	(%r14), %eax
	movl	%eax, -104(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)
	callq	_media_entity_to_v4l2_subdev
	movq	_pad@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_get_fmt@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-112(%rbp), %r8
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_v4l2_subdev_call
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movl	8(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_12
LBB0_10:
	movl	8(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.13:
	movl	%ebx, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	-112(%rbp), %edi
	callq	_omap3isp_video_format_info
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	leaq	-168(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	leaq	-144(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_V4L2_CID_PIXEL_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	movl	$1, -168(%rbp)
	movq	%rbx, -160(%rbp)
	movq	8(%r15), %rax
	movl	4(%rax), %edi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_v4l2_g_ext_ctrls
	testl	%eax, %eax
	js	LBB0_19
## %bb.15:
	movl	-140(%rbp), %eax
	movl	%eax, (%r15)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_media_entity_enum_test
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	leaq	-84(%rbp), %rsi
	movq	%r12, %rdi
	callq	_omap3isp_ccdc_max_rate
	movl	(%r15), %eax
	cmpl	-84(%rbp), %eax
	jbe	LBB0_18
## %bb.17:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_18:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_19:
	movl	%eax, %ebx
	movl	8(%r12), %edi
	movq	8(%r15), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_12
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't find source, failing now\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_pad,4,2                        ## @pad
	.comm	_get_fmt,4,2                    ## @get_fmt
L_.str.1:                               ## @.str.1
	.asciz	"get_fmt returned null!\n"

	.comm	_V4L2_CID_PIXEL_RATE,4,2        ## @V4L2_CID_PIXEL_RATE
L_.str.2:                               ## @.str.2
	.asciz	"no pixel rate control in subdev %s\n"

	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.no_dead_strip	_isp_video_check_external_subdevs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isp_video_check_external_subdevs
_isp_video_check_external_subdevs:      ; @isp_video_check_external_subdevs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x20, [x0, #8]
	add	x8, x20, #32
	add	x9, x20, #24
	stp	x8, x9, [sp, #88]
	add	x8, x20, #16
	stp	x8, x20, [sp, #104]
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w23, #0
	b	LBB0_13
LBB0_2:
	mov	x19, x1
	mov	x21, x0
	add	x25, sp, #88
	add	x0, sp, #88
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_11
; %bb.3:
	mov	x24, #0
	add	x22, x19, #4
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	add	x0, sp, #88
	bl	_ARRAY_SIZE
	cmp	x24, w0, uxtw
	b.hs	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x25, x24, lsl #3]
	mov	x0, x22
	bl	_media_entity_enum_test
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25, x24, lsl #3]
	ldr	x0, [x8]
	bl	_media_entity_remote_pad
	cbz	x0, LBB0_4
; %bb.7:
	mov	x23, x0
	ldr	x25, [x0, #8]
	cbz	x25, LBB0_11
; %bb.8:
	add	x8, sp, #88
	ldr	x24, [x8, x24, lsl #3]
	mov	x0, x25
	bl	_is_media_entity_v4l2_subdev
	cbz	w0, LBB0_1
; %bb.9:
	mov	x0, x25
	bl	_media_entity_to_v4l2_subdev
	str	x0, [x19, #8]
	ldr	w8, [x23]
Lloh3:
	adrp	x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #76]
	mov	x0, x24
	bl	_media_entity_to_v4l2_subdev
Lloh6:
	adrp	x8, _pad@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _get_fmt@GOTPAGE
Lloh10:
	ldr	x8, [x8, _get_fmt@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x4, sp, #72
	mov	x3, #0
	bl	_v4l2_subdev_call
	mov	x23, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.10:
	ldr	w0, [x20, #8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	b	LBB0_13
LBB0_11:
	ldr	w0, [x20, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_13:
	ldur	x8, [x29, #-72]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.14:
	mov	x0, x23
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_15:
	ldr	w0, [sp, #72]
	bl	_omap3isp_video_format_info
	ldr	w8, [x0]
	str	w8, [x19, #16]
	add	x0, sp, #48
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	add	x23, sp, #24
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh21:
	adrp	x8, _V4L2_CID_PIXEL_RATE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _V4L2_CID_PIXEL_RATE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	mov	w8, #1
	str	w8, [sp, #48]
	str	x23, [sp, #56]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	add	x3, sp, #48
	mov	x1, x21
	mov	x2, #0
	bl	_v4l2_g_ext_ctrls
	tbnz	w0, #31, LBB0_19
; %bb.16:
	ldr	w8, [sp, #28]
	str	w8, [x19]
	mov	x0, x22
	mov	x1, x20
	bl	_media_entity_enum_test
	cbz	x0, LBB0_1
; %bb.17:
Lloh24:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	add	x1, sp, #20
	mov	x0, x20
	bl	_omap3isp_ccdc_max_rate
	ldr	w8, [x19]
	ldr	w9, [sp, #20]
	cmp	w8, w9
	b.ls	LBB0_1
; %bb.18:
Lloh27:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_12
LBB0_19:
	mov	x23, x0
	ldr	w0, [x20, #8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	b	LBB0_13
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't find source, failing now\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_pad,4,2                        ; @pad
	.comm	_get_fmt,4,2                    ; @get_fmt
l_.str.1:                               ; @.str.1
	.asciz	"get_fmt returned null!\n"

	.comm	_V4L2_CID_PIXEL_RATE,4,2        ; @V4L2_CID_PIXEL_RATE
l_.str.2:                               ; @.str.2
	.asciz	"no pixel rate control in subdev %s\n"

	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.no_dead_strip	_isp_video_check_external_subdevs
.subsections_via_symbols
