	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_fmt_vid_cap
_try_fmt_vid_cap:                       ## @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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %r15d
	movl	4(%rsi), %r12d
	movq	_D_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %r8d
	movl	%r12d, %r9d
	callq	_PDEBUG_MODE
	movl	8(%rbx), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_wxh_to_nearest_mode
	movl	%eax, %r13d
	movq	8(%r14), %rax
	movslq	%r13d, %rcx
	leaq	(%rcx,%rcx,2), %rsi
	movl	8(%rbx), %edx
	cmpl	%edx, 8(%rax,%rsi,4)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_gspca_get_mode
	testl	%eax, %eax
	cmovnsl	%eax, %r13d
	movq	8(%r14), %rax
	movslq	%r13d, %rcx
LBB0_2:
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,4), %edx
	movl	%edx, 8(%rbx)
	movq	(%rax,%rcx,4), %rax
	movq	%rax, (%rbx)
	movq	(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%r15d, (%rbx)
	movl	%r12d, 4(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*%rax
LBB0_4:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_CONF,4,2                     ## @D_CONF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"try fmt cap"

	.no_dead_strip	_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 try_fmt_vid_cap
_try_fmt_vid_cap:                       ; @try_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldp	w21, w22, [x1]
Lloh0:
	adrp	x8, _D_CONF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_CONF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x19, #8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x4, x21
	mov	x5, x22
	bl	_PDEBUG_MODE
	ldr	w3, [x19, #8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_wxh_to_nearest_mode
	mov	x23, x0
	ldr	x8, [x20, #8]
	mov	w9, #12
	smaddl	x9, w0, w9, x8
	ldr	w9, [x9, #8]
	ldr	w2, [x19, #8]
	cmp	w9, w2
	b.ne	LBB0_2
; %bb.1:
	sxtw	x9, w23
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	mov	x1, x23
	bl	_gspca_get_mode
	cmp	w0, #0
	csel	w23, w23, w0, lt
	ldr	x8, [x20, #8]
	sxtw	x9, w23
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
LBB0_3:
	mov	w10, #12
	madd	x8, x9, x10, x8
	ldr	x9, [x8]
	ldr	w8, [x8, #8]
	str	w8, [x19, #8]
	str	x9, [x19]
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	stp	w21, w22, [x19]
	mov	x0, x20
	mov	x1, x19
	blr	x8
LBB0_5:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D_CONF,4,2                     ; @D_CONF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"try fmt cap"

	.no_dead_strip	_try_fmt_vid_cap
.subsections_via_symbols
