	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gspca_get_mode
_gspca_get_mode:                        ## @gspca_get_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movslq	(%rdi), %r8
	cmpl	%esi, %r8d
	jg	LBB0_3
## %bb.1:
	testl	%esi, %esi
	jns	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_3:
	movslq	%esi, %rax
	incq	%rax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	testl	%esi, %esi
	jle	LBB0_2
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rax
	movl	%r10d, %esi
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rsi), %r10d
	testl	%esi, %esi
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rdi), %r9
	movl	%r10d, %ecx
	cmpl	%edx, (%r9,%rcx,4)
	je	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpq	%r8, %rax
	jge	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rdi), %rcx
	cmpl	%edx, (%rcx,%rax,4)
	jne	LBB0_5
	jmp	LBB0_10
LBB0_11:
	decl	%esi
	movl	%esi, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_gspca_get_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gspca_get_mode
_gspca_get_mode:                        ; @gspca_get_mode
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	ldrsw	x8, [x0]
	cmp	w8, w1
	b.gt	LBB0_3
; %bb.1:
	tbz	w1, #31, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_3:
	mov	w9, #0
	sxtw	x10, w1
	add	x10, x10, #1
	add	w11, w1, #1
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w12, #1
	b.lt	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w9, w9, #1
	add	x10, x10, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w13, w11, w9
	sub	w12, w13, #1
	cmp	w12, #1
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w13, w13, #2
	ldr	x14, [x0, #8]
	ldr	w13, [x14, w13, uxtw #2]
	cmp	w13, w2
	b.eq	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	x10, x8
	b.ge	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x12, [x0, #8]
	ldr	w12, [x12, x10, lsl #2]
	cmp	w12, w2
	b.ne	LBB0_5
; %bb.10:
	sub	w8, w1, w9
	add	w0, w8, #1
	ret
LBB0_11:
	add	w8, w1, w9
	sub	w0, w8, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_gspca_get_mode
.subsections_via_symbols
