	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isc_try_fmt
_isc_try_fmt:                           ## @isc_try_fmt
	.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	$0, -56(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	(%rsi), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	cmpl	$0, (%rdi)
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_2
## %bb.4:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movl	8(%rax), %edi
	callq	_ISC_IS_FORMAT_RAW
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
	jmp	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_26
LBB0_2:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_6:
	movq	48(%r13), %rax
	movq	(%rax,%rbx,8), %r14
LBB0_8:
	movq	32(%r15), %rsi
	movq	%r13, %rdi
	callq	_find_format_by_fourcc
	movq	_sensor_preferred@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movq	%r14, %rcx
	cmovneq	%rax, %rcx
	testq	%r14, %r14
	cmoveq	%r14, %rcx
	testq	%rax, %rax
	cmoveq	%r14, %rcx
	testq	%rcx, %rcx
	movq	%rax, %r12
	cmovneq	%rcx, %r12
	testq	%rax, %rax
	cmoveq	%rcx, %r12
	leaq	32(%r15), %r14
	cmpq	%rax, %r12
	sete	%bl
	orq	%r12, %rax
	jne	LBB0_10
## %bb.9:
	movq	48(%r13), %rax
	movslq	(%r13), %rcx
	movq	-8(%rax,%rcx,8), %r12
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	32(%r13), %rdx
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %r8
	movq	%r12, %r9
	xorl	%eax, %eax
	callq	_v4l2_dbg
LBB0_10:
	testq	%r12, %r12
	je	LBB0_11
## %bb.14:
	movb	%bl, -41(%rbp)                  ## 1-byte Spill
	leaq	8(%r15), %rbx
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	32(%r13), %rdx
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edi
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_v4l2_dbg
	movq	%r12, 24(%r13)
	movq	_ISC_MAX_SUPPORT_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	cmpl	%eax, (%rbx)
	jle	LBB0_16
## %bb.15:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_16:
	movq	_ISC_MAX_SUPPORT_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, 12(%r15)
	movl	$0, %ebx
	jle	LBB0_18
## %bb.17:
	movl	%eax, 12(%r15)
LBB0_18:
	movl	8(%r12), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rax
	movq	%rax, 16(%r13)
	movq	%r13, %rdi
	callq	_isc_try_validate_formats
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movq	(%r12), %rax
	movq	%rax, 16(%r13)
	movq	%rax, (%r14)
	movq	%r13, %rdi
	callq	_isc_try_validate_formats
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_12
LBB0_20:
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %bl
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_isc_try_configure_rlp_dma
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.21:
	movq	%r13, %rdi
	callq	_isc_try_configure_pipeline
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.22:
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_v4l2_fill_mbus_format
	movq	40(%r13), %rax
	movl	(%rax), %edi
	movq	_pad@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_set_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-88(%rbp), %rcx
	movq	%r14, %r8
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	js	LBB0_23
## %bb.24:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_fill_pix_format
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movl	8(%r13), %eax
	imull	8(%r15), %eax
	sarl	$3, %eax
	movl	%eax, 16(%r15)
	imull	12(%r15), %eax
	movl	%eax, 20(%r15)
	xorl	%r14d, %r14d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movl	%r12d, (%rax)
	jmp	LBB0_26
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_12:
	leaq	32(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_v4l2_err
LBB0_13:
	addq	$8, %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
LBB0_26:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	%eax, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ## @V4L2_SUBDEV_FORMAT_TRY
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_sensor_preferred,8,3           ## @sensor_preferred
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sensor not supporting %.4s, using %.4s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Preferring to have sensor using format %.4s\n"

	.comm	_ISC_MAX_SUPPORT_WIDTH,4,2      ## @ISC_MAX_SUPPORT_WIDTH
	.comm	_ISC_MAX_SUPPORT_HEIGHT,4,2     ## @ISC_MAX_SUPPORT_HEIGHT
	.comm	_pad,4,2                        ## @pad
	.comm	_set_fmt,4,2                    ## @set_fmt
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
L_.str.2:                               ## @.str.2
	.asciz	"Could not find any possible format for a working pipeline\n"

	.no_dead_strip	_isc_try_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isc_try_fmt
_isc_try_fmt:                           ; @isc_try_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x22, x1
	ldr	x8, [x22], #8
Lloh0:
	adrp	x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	wzr, w9, [sp, #16]
Lloh3:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w0, [x8, #8]
	bl	_ISC_IS_FORMAT_RAW
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19]
	cmp	x23, x8
	b.lt	LBB0_3
LBB0_5:
	mov	x24, #0
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_25
LBB0_7:
	ldr	x8, [x19, #48]
	ldr	x24, [x8, x23, lsl #3]
LBB0_8:
	mov	x23, x21
	ldr	x1, [x23, #32]!
	mov	x0, x19
	bl	_find_format_by_fourcc
Lloh9:
	adrp	x8, _sensor_preferred@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sensor_preferred@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	x24, #0, #4, ne
	ccmp	x0, #0, #4, ne
	csel	x8, x0, x24, ne
	cmp	x8, #0
	ccmp	x0, #0, #4, eq
	csel	x26, x8, x0, eq
	cmp	x26, x0
	cset	w24, eq
Lloh12:
	adrp	x25, _debug@GOTPAGE
Lloh13:
	ldr	x25, [x25, _debug@GOTPAGEOFF]
	orr	x8, x26, x0
	cbnz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x19, #48]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #3
	ldur	x26, [x8, #-8]
	ldr	w1, [x25]
	add	x2, x19, #32
Lloh14:
	adrp	x3, l_.str@PAGE
Lloh15:
	add	x3, x3, l_.str@PAGEOFF
	str	x26, [sp]
	mov	w0, #1
	mov	x4, x23
	bl	_v4l2_dbg
LBB0_10:
	cbz	x26, LBB0_22
; %bb.11:
	ldr	w1, [x25]
	add	x2, x19, #32
Lloh16:
	adrp	x3, l_.str.1@PAGE
Lloh17:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x4, x26
	bl	_v4l2_dbg
	str	x26, [x19, #24]
	ldr	w9, [x22]
Lloh18:
	adrp	x8, _ISC_MAX_SUPPORT_WIDTH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ISC_MAX_SUPPORT_WIDTH@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w9, w8
	b.le	LBB0_13
; %bb.12:
	str	w8, [x22]
LBB0_13:
	ldr	w9, [x21, #12]
Lloh21:
	adrp	x8, _ISC_MAX_SUPPORT_HEIGHT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ISC_MAX_SUPPORT_HEIGHT@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w9, w8
	b.le	LBB0_15
; %bb.14:
	str	w8, [x21, #12]
LBB0_15:
	ldr	w25, [x26, #8]
	ldr	x8, [x23]
	str	x8, [x19, #16]
	mov	x0, x19
	bl	_isc_try_validate_formats
	cbz	w0, LBB0_17
; %bb.16:
	ldr	x8, [x26]
	str	x8, [x19, #16]
	str	x8, [x23]
	mov	x0, x19
	bl	_isc_try_validate_formats
	mov	x23, x0
	cbnz	w0, LBB0_23
LBB0_17:
	mov	x0, x19
	mov	x1, x24
	bl	_isc_try_configure_rlp_dma
	mov	x23, x0
	cbnz	w0, LBB0_23
; %bb.18:
	mov	x0, x19
	bl	_isc_try_configure_pipeline
	mov	x23, x0
	cbnz	w0, LBB0_23
; %bb.19:
	add	x0, sp, #16
	mov	x1, x22
	mov	x2, x25
	bl	_v4l2_fill_mbus_format
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _pad@GOTPAGE
Lloh25:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _set_fmt@GOTPAGE
Lloh28:
	ldr	x8, [x8, _set_fmt@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	add	x3, sp, #24
	add	x4, sp, #16
	bl	_v4l2_subdev_call
	tbnz	w0, #31, LBB0_26
; %bb.20:
	add	x1, sp, #16
	mov	x0, x22
	bl	_v4l2_fill_pix_format
Lloh30:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x21, #24]
	ldr	w8, [x19, #8]
	ldp	w9, w10, [x21, #8]
	mul	w8, w8, w9
	asr	w8, w8, #3
	mul	w9, w8, w10
	stp	w8, w9, [x21, #16]
	mov	w23, #0
	cbz	x20, LBB0_25
; %bb.21:
	str	w25, [x20]
	b	LBB0_25
LBB0_22:
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_23:
	add	x0, x19, #32
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_v4l2_err
LBB0_24:
	add	x0, x19, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
LBB0_25:
	mov	x0, x23
	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
	add	sp, sp, #112
	ret
LBB0_26:
	mov	x23, x0
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ; @V4L2_SUBDEV_FORMAT_TRY
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_sensor_preferred,8,3           ; @sensor_preferred
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sensor not supporting %.4s, using %.4s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Preferring to have sensor using format %.4s\n"

	.comm	_ISC_MAX_SUPPORT_WIDTH,4,2      ; @ISC_MAX_SUPPORT_WIDTH
	.comm	_ISC_MAX_SUPPORT_HEIGHT,4,2     ; @ISC_MAX_SUPPORT_HEIGHT
	.comm	_pad,4,2                        ; @pad
	.comm	_set_fmt,4,2                    ; @set_fmt
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
l_.str.2:                               ; @.str.2
	.asciz	"Could not find any possible format for a working pipeline\n"

	.no_dead_strip	_isc_try_fmt
.subsections_via_symbols
