	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setggain
_setggain:                              ## @setggain
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_gainify
	movl	%eax, %ebx
	movq	_D_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_GREEN1_GAIN@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	_gspca_dbg
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_reg_w
	movq	_REG_GREEN2_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reg_w                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_D_STREAM,4,2                   ## @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gain G1/G2 (0x%04X): 0x%04X (src 0x%04X)\n\n"

	.comm	_REG_GREEN1_GAIN,4,2            ## @REG_GREEN1_GAIN
	.comm	_REG_GREEN2_GAIN,4,2            ## @REG_GREEN2_GAIN
	.no_dead_strip	_setggain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setggain
_setggain:                              ; @setggain
	.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	x20, x0
	mov	x0, x1
	bl	_gainify
	mov	x21, x0
Lloh0:
	adrp	x8, _D_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x22, _REG_GREEN1_GAIN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _REG_GREEN1_GAIN@GOTPAGEOFF]
	ldr	w3, [x22]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x4, x21
	mov	x5, x19
	bl	_gspca_dbg
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_reg_w
Lloh7:
	adrp	x8, _REG_GREEN2_GAIN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REG_GREEN2_GAIN@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	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
	b	_reg_w
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D_STREAM,4,2                   ; @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gain G1/G2 (0x%04X): 0x%04X (src 0x%04X)\n\n"

	.comm	_REG_GREEN1_GAIN,4,2            ; @REG_GREEN1_GAIN
	.comm	_REG_GREEN2_GAIN,4,2            ; @REG_GREEN2_GAIN
	.no_dead_strip	_setggain
.subsections_via_symbols
