	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cal_try_fmt_vid_cap
_cal_try_fmt_vid_cap:                   ## @cal_try_fmt_vid_cap
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	movl	24(%rbx), %esi
	movq	%rax, %rdi
	callq	_find_format_by_pix
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	24(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movl	$3, %edi
	movq	%r14, %rsi
	callq	_ctx_dbg
	movq	32(%r14), %rax
	movq	(%rax), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 24(%rbx)
LBB0_2:
	movl	20(%r14), %ecx
	movl	%ecx, 20(%rbx)
	movq	$0, -56(%rbp)
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	$0, -72(%rbp)
	movl	24(%r14), %edi
	movq	_pad@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_enum_frame_size@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-104(%rbp), %r8
	xorl	%ecx, %ecx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	je	LBB0_3
LBB0_11:
	movups	(%r14), %xmm0
	movups	%xmm0, (%rbx)
LBB0_12:
	movl	16(%r14), %eax
	movl	%eax, 16(%rbx)
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_cal_calc_format_size
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	-104(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	-72(%rbp)
	movl	24(%r14), %edi
	movl	(%r13), %esi
	movl	(%r15), %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	jne	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	-104(%rbp), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rdx
	cmpq	-96(%rbp), %rdx
	je	LBB0_12
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	-88(%rbp), %rax
	jl	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rcx, %rax
	jg	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rax
	cmpq	-80(%rbp), %rax
	jl	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	-96(%rbp), %rax
	jg	LBB0_10
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fourcc format (0x%08x) not found.\n"

	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_pad,4,2                        ## @pad
	.comm	_enum_frame_size,4,2            ## @enum_frame_size
	.no_dead_strip	_cal_try_fmt_vid_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cal_try_fmt_vid_cap
_cal_try_fmt_vid_cap:                   ; @cal_try_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x2
	bl	_video_drvdata
	mov	x20, x0
	ldr	w1, [x19, #24]
	bl	_find_format_by_pix
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w3, [x19, #24]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #3
	mov	x1, x20
	bl	_ctx_dbg
	ldr	x8, [x20, #32]
	ldr	x21, [x8]
	ldr	w8, [x21, #4]
	str	w8, [x19, #24]
LBB0_2:
	ldr	w8, [x20, #20]
	str	w8, [x19, #20]
	str	xzr, [sp, #56]
Lloh2:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh4:
	ldr	w8, [x8]
	stp	w8, w9, [sp, #48]
	str	xzr, [sp, #40]
	ldr	w0, [x20, #24]
Lloh5:
	adrp	x22, _pad@GOTPAGE
Lloh6:
	ldr	x22, [x22, _pad@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh7:
	adrp	x23, _enum_frame_size@GOTPAGE
Lloh8:
	ldr	x23, [x23, _enum_frame_size@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #40]
	add	x8, x8, #1
	str	x8, [sp, #40]
	ldr	w0, [x20, #24]
	ldr	w1, [x22]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	add	x4, sp, #8
	mov	x3, #0
	bl	_v4l2_subdev_call
	cbnz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x19, #8]
	ldr	x11, [sp, #16]
	cmp	x10, x11
	b.eq	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [sp, #24]
	cmp	x8, x10
	ccmp	x8, x9, #0, ge
	b.gt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [sp, #32]
	ldr	x10, [sp, #16]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.gt	LBB0_3
	b	LBB0_10
LBB0_9:
	ldr	q0, [x20]
	str	q0, [x19]
LBB0_10:
	ldr	w8, [x20, #16]
	str	w8, [x19, #16]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_cal_calc_format_size
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fourcc format (0x%08x) not found.\n"

	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_pad,4,2                        ; @pad
	.comm	_enum_frame_size,4,2            ; @enum_frame_size
	.no_dead_strip	_cal_try_fmt_vid_cap
.subsections_via_symbols
