	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5k4aa_start                   ## -- Begin function s5k4aa_start
	.p2align	4, 0x90
_s5k4aa_start:                          ## @s5k4aa_start
	.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	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movl	(%rcx,%rax,4), %ecx
	cmpl	$640, %ecx                      ## imm = 0x280
	je	LBB0_12
## %bb.1:
	xorl	%eax, %eax
	cmpl	$1280, %ecx                     ## imm = 0x500
	jne	LBB0_25
## %bb.2:
	movq	_D_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_gspca_dbg
	movq	_SXGA_s5k4aa@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_23
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movl	12(%rax), %ecx
	movl	%ecx, -52(%rbp)
	movl	4(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	$2, %ecx
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	callq	_m5602_write_sensor
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %r13d
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_24
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %ecx
	cmpl	$128, %ecx
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$129, %ecx
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$130, %ecx
	jne	LBB0_27
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%rax), %esi
	movl	8(%rax), %edx
	movq	%r15, %rdi
	callq	_m5602_write_bridge
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movl	4(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	$1, %ecx
	jmp	LBB0_5
LBB0_12:
	movq	_D_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	callq	_gspca_dbg
	movq	_VGA_s5k4aa@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_23
## %bb.13:
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r14
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	8(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movl	12(%rax), %ecx
	movl	%ecx, -52(%rbp)
	movl	4(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	$2, %ecx
LBB0_15:                                ##   in Loop: Header=BB0_17 Depth=1
	callq	_m5602_write_sensor
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	%eax, %r13d
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_24
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %ecx
	cmpl	$128, %ecx
	je	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	$129, %ecx
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	$130, %ecx
	jne	LBB0_27
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	4(%rax), %esi
	movl	8(%rax), %edx
	movq	%r15, %rdi
	callq	_m5602_write_bridge
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	8(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movl	4(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	$1, %ecx
	jmp	LBB0_15
LBB0_23:
	xorl	%r13d, %r13d
LBB0_24:
	movl	%r13d, %eax
	sarl	$31, %eax
	andl	%r13d, %eax
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_28
## %bb.26:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_25
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_D_CONF,4,2                     ## @D_CONF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Configuring camera for SXGA mode\n"

	.comm	_SXGA_s5k4aa,8,3                ## @SXGA_s5k4aa
L_.str.1:                               ## @.str.1
	.asciz	"Invalid stream command, exiting init\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Configuring camera for VGA mode\n"

	.comm	_VGA_s5k4aa,8,3                 ## @VGA_s5k4aa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5k4aa_start                   ; -- Begin function s5k4aa_start
	.p2align	2
_s5k4aa_start:                          ; @s5k4aa_start
	.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, x0
	ldp	x9, x8, [x0]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #640
	b.eq	LBB0_12
; %bb.1:
	cmp	w8, #1280
	b.ne	LBB0_22
; %bb.2:
Lloh0:
	adrp	x8, _D_CONF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_CONF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
Lloh5:
	adrp	x21, _SXGA_s5k4aa@GOTPAGE
Lloh6:
	ldr	x21, [x21, _SXGA_s5k4aa@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_23
; %bb.3:
	mov	x22, #0
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	d0, [x8, #8]
	str	d0, [sp, #8]
	ldr	w1, [x8, #4]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_m5602_write_sensor
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x20, x0
	add	x22, x22, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.ge	LBB0_24
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w9, [x8]
	cmp	w9, #128
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, #129
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, #130
	b.ne	LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldp	w1, w2, [x8, #4]
	mov	x0, x19
	bl	_m5602_write_bridge
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	w1, w9, [x8, #4]
	str	w9, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #1
	b	LBB0_5
LBB0_12:
Lloh7:
	adrp	x8, _D_CONF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _D_CONF@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
Lloh12:
	adrp	x21, _VGA_s5k4aa@GOTPAGE
Lloh13:
	ldr	x21, [x21, _VGA_s5k4aa@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_23
; %bb.13:
	mov	x22, #0
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	d0, [x8, #8]
	str	d0, [sp, #8]
	ldr	w1, [x8, #4]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #2
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	bl	_m5602_write_sensor
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x20, x0
	add	x22, x22, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.ge	LBB0_24
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w9, [x8]
	cmp	w9, #128
	b.eq	LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	w9, #129
	b.eq	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	w9, #130
	b.ne	LBB0_26
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	ldp	w1, w2, [x8, #4]
	mov	x0, x19
	bl	_m5602_write_bridge
	b	LBB0_16
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=1
	ldp	w1, w9, [x8, #4]
	str	w9, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #1
	b	LBB0_15
LBB0_22:
	mov	w0, #0
	b	LBB0_25
LBB0_23:
	mov	w20, #0
LBB0_24:
	cmp	w20, #0
	csel	w0, w20, wzr, lt
LBB0_25:
	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
LBB0_26:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_25
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_D_CONF,4,2                     ; @D_CONF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Configuring camera for SXGA mode\n"

	.comm	_SXGA_s5k4aa,8,3                ; @SXGA_s5k4aa
l_.str.1:                               ; @.str.1
	.asciz	"Invalid stream command, exiting init\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Configuring camera for VGA mode\n"

	.comm	_VGA_s5k4aa,8,3                 ; @VGA_s5k4aa
.subsections_via_symbols
