	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %esi
	movl	4(%r14), %edx
	callq	_wxh_to_mode
	movl	%eax, %ebx
	movq	(%r15), %rax
	movslq	%ebx, %rcx
	movl	8(%r14), %edx
	cmpl	%edx, (%rax,%rcx,4)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_gspca_get_mode
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	movq	(%r15), %rax
	movslq	%ebx, %rcx
LBB0_2:
	leaq	(%rax,%rcx,4), %rsi
	movq	%r14, %rdi
	movl	$12, %edx
	callq	_memcpy
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_CONF,4,2                     ## @D_CONF
	.comm	_gspca_debug,4,2                ## @gspca_debug
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x21, x0
	ldr	w1, [x1]
	ldr	w2, [x19, #4]
	bl	_wxh_to_mode
	mov	x20, x0
	ldr	x8, [x21]
	ldr	w9, [x8, w0, sxtw #2]
	ldr	w2, [x19, #8]
	cmp	w9, w2
	b.ne	LBB0_2
; %bb.1:
	sxtw	x9, w20
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	bl	_gspca_get_mode
	cmp	w0, #0
	csel	w20, w20, w0, lt
	ldr	x8, [x21]
	sxtw	x9, w20
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
LBB0_3:
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	w2, #12
	bl	_memcpy
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_D_CONF,4,2                     ; @D_CONF
	.comm	_gspca_debug,4,2                ; @gspca_debug
	.no_dead_strip	_try_fmt_vid_cap
.subsections_via_symbols
