	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spca506_SetNormeInput
_spca506_SetNormeInput:                 ## @spca506_SetNormeInput
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_D_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_gspca_dbg
	movq	%r15, %rdi
	callq	_spca506_Initi2c
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movl	%ebx, %ecx
	andl	$-2, %ecx
	cmpl	$4, %ecx
	movl	%ebx, %r12d
	cmovel	%r13d, %r12d
	cmpl	$10, %ebx
	cmovgel	%r13d, %r12d
	xorl	%ebx, %ebx
	cmpl	$4, %r12d
	setl	%bl
	addl	%ebx, %ebx
	cmpl	$1, %eax
	sbbl	$0, %ebx
	addl	$73, %ebx
	movl	(%r15), %edi
	movl	$8, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_reg_w
	movl	%r12d, %esi
	andl	$15, %esi
	orl	$192, %esi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_spca506_WriteI2c
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	_V4L2_STD_SECAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r14d, %ecx
	movl	$3, %ecx
	movl	$83, %edx
	cmovel	%ecx, %edx
	testl	%eax, %eax
	movl	$51, %esi
	cmovel	%edx, %esi
	movq	%r15, %rdi
	movl	$14, %edx
	callq	_spca506_WriteI2c
	movl	%r14d, (%r15)
	movl	%r12d, 4(%r15)
	movq	_D_STREAM@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_gspca_dbg
	movl	(%r13), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gspca_dbg                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_D_STREAM,4,2                   ## @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"** Open Set Norme **\n"

	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_V4L2_STD_SECAM,4,2             ## @V4L2_STD_SECAM
L_.str.1:                               ## @.str.1
	.asciz	"Set Video Byte to 0x%2x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Set Norme: %08x Channel %d"

	.no_dead_strip	_spca506_SetNormeInput
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spca506_SetNormeInput
_spca506_SetNormeInput:                 ; @spca506_SetNormeInput
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _D_STREAM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _D_STREAM@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_gspca_dbg
	mov	x0, x19
	bl	_spca506_Initi2c
Lloh4:
	adrp	x23, _V4L2_STD_NTSC@GOTPAGE
Lloh5:
	ldr	x23, [x23, _V4L2_STD_NTSC@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w20
	mov	w8, #72
	cinc	w8, w8, ne
	and	w9, w21, #0xfffffffe
	cmp	w9, #4
	ccmp	w21, #9, #0, ne
	csel	w24, wzr, w21, gt
	cmp	w24, #4
	cset	w9, lt
	orr	w21, w8, w9, lsl #1
	ldr	w0, [x19]
	mov	w1, #8
	mov	x2, x21
	mov	w3, #0
	bl	_reg_w
	mov	w1, #192
	bfxil	w1, w24, #0, #4
	mov	x0, x19
	mov	w2, #2
	bl	_spca506_WriteI2c
	ldr	w8, [x23]
Lloh6:
	adrp	x9, _V4L2_STD_SECAM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_STD_SECAM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w20
	mov	w9, #83
	mov	w10, #3
	csel	w9, w10, w9, eq
	tst	w8, w20
	mov	w8, #51
	csel	w1, w9, w8, eq
	mov	x0, x19
	mov	w2, #14
	bl	_spca506_WriteI2c
	stp	w20, w24, [x19]
	ldr	w1, [x22]
	str	x21, [sp]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
	ldr	w1, [x22]
	stp	x20, x24, [sp]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_D_STREAM,4,2                   ; @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"** Open Set Norme **\n"

	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_V4L2_STD_SECAM,4,2             ; @V4L2_STD_SECAM
l_.str.1:                               ; @.str.1
	.asciz	"Set Video Byte to 0x%2x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Set Norme: %08x Channel %d"

	.no_dead_strip	_spca506_SetNormeInput
.subsections_via_symbols
