	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbvision_init_webcam
_usbvision_init_webcam:                 ## @usbvision_init_webcam
	.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
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	_usbvision_device_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movb	$52, _usbvision_init_webcam.init_values+13(%rip)
LBB0_2:
	xorl	%r12d, %r12d
	movq	_USBVISION_SER_MODE_SOFT@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_USBVISION_SER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %r13
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_usbvision_write_reg
	leaq	_usbvision_init_webcam.init_values(%rip), %rax
	leaq	(%rax,%r12), %rsi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_memcpy
	movl	16(%r15), %ebx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_usb_sndctrlpipe
	movq	_USBVISION_OP_CODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_USB_RECIP_ENDPOINT@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_USBVISION_SER_DAT1@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	movq	_HZ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	pushq	%r10
	pushq	$3
	pushq	%r14
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_USBVISION_SER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rax, %rbx
	movq	_USBVISION_SER_MODE_SIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_usbvision_write_reg
	movq	_USBVISION_SER_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$19, %edx
	callq	_usbvision_write_reg
	movq	_USBVISION_IOPIN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_usbvision_write_reg
	movl	(%rbx), %esi
	movq	%r13, %rbx
	movl	(%r13), %edx
	movq	%r15, %rdi
	callq	_usbvision_write_reg
	movq	_USBVISION_IOPIN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_USBVISION_IO_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_usbvision_write_reg
	movq	_USBVISION_SER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_USBVISION_CLK_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r13), %edx
	movq	%r15, %rdi
	callq	_usbvision_write_reg
	movq	_USBVISION_SER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_USBVISION_DAT_IO@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_usbvision_write_reg
	movq	_USBVISION_SER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_USBVISION_CLK_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rbx), %edx
	orl	(%r13), %edx
	movq	%r15, %rdi
	callq	_usbvision_write_reg
	addq	$3, %r12
	cmpq	$114, %r12
	jne	LBB0_3
	jmp	LBB0_6
LBB0_4:
	movl	%eax, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @usbvision_init_webcam.init_values
_usbvision_init_webcam.init_values:
	.ascii	"\004\022\b"
	.ascii	"\005\377\310"
	.ascii	"\006\030\007"
	.asciz	"\007\220"
	.asciz	"\t\000"
	.asciz	"\n\000"
	.asciz	"\013\b"
	.ascii	"\r\314\314"
	.ascii	"\016\023\024"
	.ascii	"\020\233\203"
	.ascii	"\021Z?"
	.ascii	"\022\344s"
	.ascii	"\023\210\204"
	.ascii	"\024\211\200"
	.ascii	"\025\000 "
	.asciz	"\026\000"
	.ascii	"\027\377\240"
	.ascii	"\030k "
	.ascii	"\031\"@"
	.ascii	"\032\020\007"
	.ascii	"\033\000G"
	.ascii	"\034\003\340"
	.asciz	"\035\000"
	.asciz	"\036\000"
	.asciz	"\037\000"
	.asciz	" \000"
	.asciz	"!\000"
	.asciz	"\"\000"
	.asciz	"#\000"
	.asciz	"$\000"
	.asciz	"%\000"
	.asciz	"&\000"
	.asciz	"'\000"
	.asciz	"(\000"
	.asciz	")\000"
	.ascii	"\b\200`"
	.ascii	"\017-$"
	.ascii	"\f\200\200"

	.comm	_usbvision_device_data,8,3      ## @usbvision_device_data
	.comm	_V4L2_STD_NTSC,8,3              ## @V4L2_STD_NTSC
	.comm	_USBVISION_SER_MODE,4,2         ## @USBVISION_SER_MODE
	.comm	_USBVISION_SER_MODE_SOFT,4,2    ## @USBVISION_SER_MODE_SOFT
	.comm	_USBVISION_OP_CODE,4,2          ## @USBVISION_OP_CODE
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_ENDPOINT,4,2         ## @USB_RECIP_ENDPOINT
	.comm	_USBVISION_SER_DAT1,8,3         ## @USBVISION_SER_DAT1
	.comm	_HZ,4,2                         ## @HZ
	.comm	_USBVISION_SER_MODE_SIO,4,2     ## @USBVISION_SER_MODE_SIO
	.comm	_USBVISION_SER_CONT,4,2         ## @USBVISION_SER_CONT
	.comm	_USBVISION_IOPIN_REG,4,2        ## @USBVISION_IOPIN_REG
	.comm	_USBVISION_IO_2,4,2             ## @USBVISION_IO_2
	.comm	_USBVISION_CLK_OUT,4,2          ## @USBVISION_CLK_OUT
	.comm	_USBVISION_DAT_IO,4,2           ## @USBVISION_DAT_IO
	.no_dead_strip	_usbvision_init_webcam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbvision_init_webcam
_usbvision_init_webcam:                 ; @usbvision_init_webcam
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _usbvision_device_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _usbvision_device_data@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x20, x9, [x0]
	ldr	x8, [x8, x9, lsl #3]
Lloh3:
	adrp	x9, _V4L2_STD_NTSC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #52
	adrp	x9, _usbvision_init_webcam.init_values@PAGE+13
	strb	w8, [x9, _usbvision_init_webcam.init_values@PAGEOFF+13]
LBB0_2:
	mov	x22, #0
Lloh6:
	adrp	x23, _USBVISION_SER_MODE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _USBVISION_SER_MODE@GOTPAGEOFF]
Lloh8:
	adrp	x24, _USBVISION_SER_MODE_SOFT@GOTPAGE
Lloh9:
	ldr	x24, [x24, _USBVISION_SER_MODE_SOFT@GOTPAGEOFF]
Lloh10:
	adrp	x27, _HZ@GOTPAGE
Lloh11:
	ldr	x27, [x27, _HZ@GOTPAGEOFF]
Lloh12:
	adrp	x28, _USBVISION_IOPIN_REG@GOTPAGE
Lloh13:
	ldr	x28, [x28, _USBVISION_IOPIN_REG@GOTPAGEOFF]
Lloh14:
	adrp	x26, _USBVISION_CLK_OUT@GOTPAGE
Lloh15:
	ldr	x26, [x26, _USBVISION_CLK_OUT@GOTPAGEOFF]
Lloh16:
	adrp	x25, _USBVISION_DAT_IO@GOTPAGE
Lloh17:
	ldr	x25, [x25, _USBVISION_DAT_IO@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_usbvision_write_reg
Lloh18:
	adrp	x8, _usbvision_init_webcam.init_values@PAGE
Lloh19:
	add	x8, x8, _usbvision_init_webcam.init_values@PAGEOFF
	add	x1, x8, x22
	mov	x0, x20
	mov	w2, #3
	bl	_memcpy
	ldr	w21, [x19, #16]
	mov	x0, x21
	mov	w1, #1
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh20:
	adrp	x8, _USBVISION_OP_CODE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _USBVISION_OP_CODE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh27:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh29:
	adrp	x9, _USB_RECIP_ENDPOINT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _USB_RECIP_ENDPOINT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w3, w8, w9
Lloh32:
	adrp	x8, _USBVISION_SER_DAT1@GOTPAGE
Lloh33:
	ldr	x8, [x8, _USBVISION_SER_DAT1@GOTPAGEOFF]
Lloh34:
	ldr	w5, [x8]
	ldr	w8, [x27]
	str	w8, [sp]
	mov	x0, x21
	mov	w4, #0
	mov	x6, x20
	mov	w7, #3
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x23]
Lloh35:
	adrp	x8, _USBVISION_SER_MODE_SIO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _USBVISION_SER_MODE_SIO@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_usbvision_write_reg
Lloh38:
	adrp	x8, _USBVISION_SER_CONT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _USBVISION_SER_CONT@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #19
	bl	_usbvision_write_reg
	ldr	w1, [x28]
	mov	x0, x19
	mov	w2, #0
	bl	_usbvision_write_reg
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_usbvision_write_reg
	ldr	w1, [x28]
Lloh41:
	adrp	x8, _USBVISION_IO_2@GOTPAGE
Lloh42:
	ldr	x8, [x8, _USBVISION_IO_2@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_usbvision_write_reg
	ldr	w1, [x23]
	ldr	w8, [x24]
	ldr	w9, [x26]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_usbvision_write_reg
	ldr	w1, [x23]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_usbvision_write_reg
	ldr	w1, [x23]
	ldr	w8, [x24]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_usbvision_write_reg
	add	x22, x22, #3
	cmp	x22, #114
	b.ne	LBB0_3
; %bb.5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
_usbvision_init_webcam.init_values:     ; @usbvision_init_webcam.init_values
	.ascii	"\004\022\b"
	.ascii	"\005\377\310"
	.ascii	"\006\030\007"
	.asciz	"\007\220"
	.asciz	"\t\000"
	.asciz	"\n\000"
	.asciz	"\013\b"
	.ascii	"\r\314\314"
	.ascii	"\016\023\024"
	.ascii	"\020\233\203"
	.ascii	"\021Z?"
	.ascii	"\022\344s"
	.ascii	"\023\210\204"
	.ascii	"\024\211\200"
	.ascii	"\025\000 "
	.asciz	"\026\000"
	.ascii	"\027\377\240"
	.ascii	"\030k "
	.ascii	"\031\"@"
	.ascii	"\032\020\007"
	.ascii	"\033\000G"
	.ascii	"\034\003\340"
	.asciz	"\035\000"
	.asciz	"\036\000"
	.asciz	"\037\000"
	.asciz	" \000"
	.asciz	"!\000"
	.asciz	"\"\000"
	.asciz	"#\000"
	.asciz	"$\000"
	.asciz	"%\000"
	.asciz	"&\000"
	.asciz	"'\000"
	.asciz	"(\000"
	.asciz	")\000"
	.ascii	"\b\200`"
	.ascii	"\017-$"
	.ascii	"\f\200\200"

	.comm	_usbvision_device_data,8,3      ; @usbvision_device_data
	.comm	_V4L2_STD_NTSC,8,3              ; @V4L2_STD_NTSC
	.comm	_USBVISION_SER_MODE,4,2         ; @USBVISION_SER_MODE
	.comm	_USBVISION_SER_MODE_SOFT,4,2    ; @USBVISION_SER_MODE_SOFT
	.comm	_USBVISION_OP_CODE,4,2          ; @USBVISION_OP_CODE
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_ENDPOINT,4,2         ; @USB_RECIP_ENDPOINT
	.comm	_USBVISION_SER_DAT1,8,3         ; @USBVISION_SER_DAT1
	.comm	_HZ,4,2                         ; @HZ
	.comm	_USBVISION_SER_MODE_SIO,4,2     ; @USBVISION_SER_MODE_SIO
	.comm	_USBVISION_SER_CONT,4,2         ; @USBVISION_SER_CONT
	.comm	_USBVISION_IOPIN_REG,4,2        ; @USBVISION_IOPIN_REG
	.comm	_USBVISION_IO_2,4,2             ; @USBVISION_IO_2
	.comm	_USBVISION_CLK_OUT,4,2          ; @USBVISION_CLK_OUT
	.comm	_USBVISION_DAT_IO,4,2           ; @USBVISION_DAT_IO
	.no_dead_strip	_usbvision_init_webcam
.subsections_via_symbols
