	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jl2005c_start_new_frame
_jl2005c_start_new_frame:               ## @jl2005c_start_new_frame
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	_jl2005c_start_new_frame.instruction(%rip), %rsi
	callq	_jl2005c_write2
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$126, %esi
	callq	_jl2005c_read_reg
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	movl	$125, %esi
	callq	_jl2005c_read_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$18, %r15d
	ja	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	testl	%r12d, %r12d
	je	LBB0_2
LBB0_6:
	movq	_D_FRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_gspca_dbg
	jmp	LBB0_9
LBB0_8:
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @jl2005c_start_new_frame.instruction
_jl2005c_start_new_frame.instruction:
	.long	127                             ## 0x7f
	.long	1                               ## 0x1

	.comm	_D_FRAM,4,2                     ## @D_FRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frame_brightness is 0x%02x\n"

	.no_dead_strip	_jl2005c_start_new_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jl2005c_start_new_frame
_jl2005c_start_new_frame:               ; @jl2005c_start_new_frame
	.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, x0
Lloh0:
	adrp	x1, _jl2005c_start_new_frame.instruction@PAGE
Lloh1:
	add	x1, x1, _jl2005c_start_new_frame.instruction@PAGEOFF
	bl	_jl2005c_write2
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #126
	bl	_jl2005c_read_reg
	tbnz	w0, #31, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	ldr	w22, [x8]
	mov	x0, x19
	mov	w1, #125
	bl	_jl2005c_read_reg
	mov	x20, x0
	tbnz	w0, #31, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w21, #18
	b.hi	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	cbz	w22, LBB0_2
LBB0_6:
Lloh2:
	adrp	x8, _D_FRAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _D_FRAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	w3, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
	b	LBB0_8
LBB0_7:
	mov	x20, x0
LBB0_8:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @jl2005c_start_new_frame.instruction
_jl2005c_start_new_frame.instruction:
	.long	127                             ; 0x7f
	.long	1                               ; 0x1

	.comm	_D_FRAM,4,2                     ; @D_FRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frame_brightness is 0x%02x\n"

	.no_dead_strip	_jl2005c_start_new_frame
.subsections_via_symbols
