	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbvision_configure_video
_usbvision_configure_video:             ## @usbvision_configure_video
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movslq	(%rdi), %rax
	movq	_usbvision_v4l2_format@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	8(%rcx), %ecx
	movl	%ecx, 48(%rdi)
	movq	_usbvision_device_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$5, %rax
	cmpq	$0, 24(%rcx,%rax)
	je	LBB0_2
## %bb.3:
	movq	16(%rcx,%rax), %rdx
	jmp	LBB0_4
LBB0_7:
	retq
LBB0_2:
	xorl	%edx, %edx
LBB0_4:
	movq	%rdx, 40(%rbx)
	movl	12(%rcx,%rax), %edx
	movl	%edx, 36(%rbx)
	movl	8(%rcx,%rax), %edx
	movl	%edx, 32(%rbx)
	movq	$0, 24(%rbx)
	movabsq	$4698763765934456832, %rdx      ## imm = 0x41355CC000000000
	movq	%rdx, 8(%rbx)
	movl	$6400, 16(%rbx)                 ## imm = 0x1900
	cmpq	$0, (%rcx,%rax)
	jle	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_usbvision_audio_off
LBB0_6:
	movq	%rbx, %rdi
	callq	_usbvision_power_on
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_usbvision_i2c_register         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_usbvision_v4l2_format,8,3      ## @usbvision_v4l2_format
	.comm	_usbvision_device_data,8,3      ## @usbvision_device_data
	.no_dead_strip	_usbvision_configure_video
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbvision_configure_video
_usbvision_configure_video:             ; @usbvision_configure_video
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_6
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldrsw	x8, [x0]
Lloh0:
	adrp	x9, _usbvision_v4l2_format@GOTPAGE
Lloh1:
	ldr	x9, [x9, _usbvision_v4l2_format@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w9, [x9, #8]
	str	w9, [x0, #48]
Lloh3:
	adrp	x9, _usbvision_device_data@GOTPAGE
Lloh4:
	ldr	x9, [x9, _usbvision_device_data@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x8, x9, x8, lsl #5
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_3
; %bb.2:
	ldr	x9, [x8, #16]
LBB0_3:
	str	x9, [x19, #40]
	ldr	d0, [x8, #8]
	str	d0, [x19, #32]
	str	xzr, [x19, #24]
	mov	x9, #101979703476224
	movk	x9, #16693, lsl #48
	str	x9, [x19, #8]
	mov	w9, #6400
	str	w9, [x19, #16]
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_usbvision_audio_off
LBB0_5:
	mov	x0, x19
	bl	_usbvision_power_on
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_usbvision_i2c_register
LBB0_6:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_usbvision_v4l2_format,8,3      ; @usbvision_v4l2_format
	.comm	_usbvision_device_data,8,3      ; @usbvision_device_data
	.no_dead_strip	_usbvision_configure_video
.subsections_via_symbols
