	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function viacam_do_try_fmt
_viacam_do_try_fmt:                     ## @viacam_do_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, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	$0, -48(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	(%rsi), %edi
	callq	_via_find_format
	movq	%rax, %rbx
	movl	4(%rax), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_viacam_fmt_pre
	movl	(%rbx), %edx
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_v4l2_fill_mbus_format
	movq	_pad@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_set_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r13, %r8
	callq	_sensor_call
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_v4l2_fill_pix_format
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_viacam_fmt_post
	movl	%ebx, %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	_pad,4,2                        ## @pad
	.comm	_set_fmt,4,2                    ## @set_fmt
	.no_dead_strip	_viacam_do_try_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function viacam_do_try_fmt
_viacam_do_try_fmt:                     ; @viacam_do_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	x21, 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	w0, [x1]
	bl	_via_find_format
	mov	x22, x0
	ldr	w8, [x0, #4]
	str	w8, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_viacam_fmt_pre
	ldr	w2, [x22]
	mov	x0, sp
	mov	x1, x19
	bl	_v4l2_fill_mbus_format
Lloh3:
	adrp	x8, _pad@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _set_fmt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _set_fmt@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x21
	bl	_sensor_call
	mov	x21, x0
	mov	x1, sp
	mov	x0, x19
	bl	_v4l2_fill_pix_format
	mov	x0, x20
	mov	x1, x19
	bl	_viacam_fmt_post
	mov	x0, x21
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ; @V4L2_SUBDEV_FORMAT_TRY
	.comm	_pad,4,2                        ; @pad
	.comm	_set_fmt,4,2                    ; @set_fmt
	.no_dead_strip	_viacam_do_try_fmt
.subsections_via_symbols
