	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isi_try_fmt
_isi_try_fmt:                           ## @isi_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	$0, -48(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	20(%rsi), %esi
	callq	_find_format_by_fourcc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	8(%r13), %rax
	movslq	(%r13), %rcx
	movq	-8(%rax,%rcx,8), %r15
	movl	8(%r15), %eax
	movl	%eax, 20(%rbx)
LBB0_2:
	movl	(%rbx), %edi
	movq	_MAX_SUPPORT_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_clamp
	movl	%eax, (%rbx)
	movl	4(%rbx), %edi
	movq	_MAX_SUPPORT_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_clamp
	movl	%eax, 4(%rbx)
	movl	4(%r15), %edx
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_fill_mbus_format
	movl	4(%r13), %edi
	movq	_pad@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_set_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	%r14, %r8
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_fill_pix_format
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	(%r15), %eax
	imull	(%rbx), %eax
	movl	%eax, 8(%rbx)
	imull	4(%rbx), %eax
	movl	%eax, 12(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, (%rax)
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ## @V4L2_SUBDEV_FORMAT_TRY
	.comm	_MAX_SUPPORT_WIDTH,4,2          ## @MAX_SUPPORT_WIDTH
	.comm	_MAX_SUPPORT_HEIGHT,4,2         ## @MAX_SUPPORT_HEIGHT
	.comm	_pad,4,2                        ## @pad
	.comm	_set_fmt,4,2                    ## @set_fmt
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.no_dead_strip	_isi_try_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isi_try_fmt
_isi_try_fmt:                           ; @isi_try_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp]
	ldr	w1, [x1, #20]
	bl	_find_format_by_fourcc
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x22, #8]
	ldrsw	x9, [x22]
	add	x8, x8, x9, lsl #3
	ldur	x21, [x8, #-8]
	ldr	w8, [x21, #8]
	str	w8, [x20, #20]
LBB0_2:
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _MAX_SUPPORT_WIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SUPPORT_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_clamp
	str	w0, [x20]
	ldr	w0, [x20, #4]
Lloh6:
	adrp	x8, _MAX_SUPPORT_HEIGHT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_SUPPORT_HEIGHT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_clamp
	str	w0, [x20, #4]
	ldr	w2, [x21, #4]
	mov	x0, sp
	mov	x1, x20
	bl	_v4l2_fill_mbus_format
	ldr	w0, [x22, #4]
Lloh9:
	adrp	x8, _pad@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _set_fmt@GOTPAGE
Lloh13:
	ldr	x8, [x8, _set_fmt@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x4, sp
	bl	_v4l2_subdev_call
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	x1, sp
	mov	x0, x20
	bl	_v4l2_fill_pix_format
Lloh15:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	ldr	w8, [x21]
	ldp	w9, w10, [x20]
	mul	w8, w8, w9
	mul	w9, w10, w8
	stp	w8, w9, [x20, #8]
	mov	w0, #0
	cbz	x19, LBB0_5
; %bb.4:
	str	x21, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ; @V4L2_SUBDEV_FORMAT_TRY
	.comm	_MAX_SUPPORT_WIDTH,4,2          ; @MAX_SUPPORT_WIDTH
	.comm	_MAX_SUPPORT_HEIGHT,4,2         ; @MAX_SUPPORT_HEIGHT
	.comm	_pad,4,2                        ; @pad
	.comm	_set_fmt,4,2                    ; @set_fmt
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.no_dead_strip	_isi_try_fmt
.subsections_via_symbols
