	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_aver_power_ctrl
_cxusb_aver_power_ctrl:                 ## @cxusb_aver_power_ctrl
	.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
	subq	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%esi, %esi
	je	LBB0_1
## %bb.3:
	movq	(%r15), %rax
	movq	_DVB_USB_STATE_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movl	8(%r15), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_usb_set_interface
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_err
LBB0_6:
	movq	_CMD_POWER_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_cxusb_ctrl_msg
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	movq	%r15, %rdi
	movl	$21, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_cxusb_ctrl_msg
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movq	%r15, %rdi
	movl	$23, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_cxusb_ctrl_msg
	testl	%eax, %eax
	je	LBB0_9
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_CMD_POWER_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.2:
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cxusb_ctrl_msg                 ## TAILCALL
LBB0_9:
	leaq	l___const.cxusb_aver_power_ctrl.bufs(%rip), %rsi
	leaq	-208(%rbp), %rdi
	movl	$160, %edx
	callq	_memcpy
	movl	$20, %edi
	callq	_msleep
	xorl	%ebx, %ebx
	movq	_CMD_I2C_WRITE@GOTPCREL(%rip), %r12
	leaq	-212(%rbp), %r14
	movabsq	$4294967296, %r13               ## imm = 0x100000000
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	leaq	-208(,%rbx,4), %rdx
	addq	%rbp, %rdx
	movq	%r15, %rdi
	movl	$4, %ecx
	movq	%r14, %r8
	movl	$1, %r9d
	callq	_cxusb_ctrl_msg
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$8, -212(%rbp)
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	shlq	$32, %rbx
	addq	%r13, %rbx
	movq	%rbx, %rcx
	sarq	$32, %rcx
	shrq	$35, %rbx
	cmpl	$4, %ebx
	movq	%rcx, %rbx
	jbe	LBB0_11
	jmp	LBB0_14
LBB0_13:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_POWER_OFF,4,2              ## @CMD_POWER_OFF
	.comm	_DVB_USB_STATE_INIT,8,3         ## @DVB_USB_STATE_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set interface failed"

	.comm	_CMD_POWER_ON,4,2               ## @CMD_POWER_ON
	.section	__TEXT,__const
	.p2align	4                               ## @__const.cxusb_aver_power_ctrl.bufs
l___const.cxusb_aver_power_ctrl.bufs:
	.long	14                              ## 0xe
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	127                             ## 0x7f
	.long	14                              ## 0xe
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	254                             ## 0xfe
	.long	14                              ## 0xe
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	14                              ## 0xe
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	3                               ## 0x3
	.long	14                              ## 0xe
	.long	2                               ## 0x2
	.long	13                              ## 0xd
	.long	64                              ## 0x40
	.long	14                              ## 0xe
	.long	2                               ## 0x2
	.long	14                              ## 0xe
	.long	135                             ## 0x87
	.long	14                              ## 0xe
	.long	2                               ## 0x2
	.long	15                              ## 0xf
	.long	142                             ## 0x8e
	.long	14                              ## 0xe
	.long	2                               ## 0x2
	.long	16                              ## 0x10
	.long	1                               ## 0x1
	.long	14                              ## 0xe
	.long	2                               ## 0x2
	.long	20                              ## 0x14
	.long	215                             ## 0xd7
	.long	14                              ## 0xe
	.long	2                               ## 0x2
	.long	71                              ## 0x47
	.long	136                             ## 0x88

	.comm	_CMD_I2C_WRITE,4,2              ## @CMD_I2C_WRITE
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_cxusb_aver_power_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_aver_power_ctrl
_cxusb_aver_power_ctrl:                 ; @cxusb_aver_power_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cbz	w1, LBB0_9
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _DVB_USB_STATE_INIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DVB_USB_STATE_INIT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x19, #8]
	mov	w1, #0
	mov	w2, #0
	bl	_usb_set_interface
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
LBB0_4:
Lloh8:
	adrp	x8, _CMD_POWER_ON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMD_POWER_ON@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_cxusb_ctrl_msg
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	mov	w1, #21
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_cxusb_ctrl_msg
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #23
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_cxusb_ctrl_msg
	cbz	w0, LBB0_11
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.8:
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_9:
Lloh14:
	adrp	x8, _CMD_POWER_OFF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CMD_POWER_OFF@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.10:
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #256
	b	_cxusb_ctrl_msg
LBB0_11:
	add	x8, sp, #16
Lloh20:
	adrp	x9, l___const.cxusb_aver_power_ctrl.bufs@PAGE
Lloh21:
	add	x9, x9, l___const.cxusb_aver_power_ctrl.bufs@PAGEOFF
	ldp	q0, q1, [x9, #96]
	stp	q0, q1, [sp, #112]
	ldp	q0, q1, [x9, #128]
	stp	q0, q1, [x8, #128]
	ldp	q0, q1, [x9, #32]
	stp	q0, q1, [sp, #48]
	ldp	q0, q1, [x9, #64]
	stp	q0, q1, [sp, #80]
	ldp	q0, q1, [x9]
	stp	q0, q1, [sp, #16]
	mov	w0, #20
	bl	_msleep
	mov	x20, #0
Lloh22:
	adrp	x21, _CMD_I2C_WRITE@GOTPAGE
Lloh23:
	ldr	x21, [x21, _CMD_I2C_WRITE@GOTPAGEOFF]
	add	x22, sp, #16
	mov	x23, #4294967296
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	add	x2, x22, x20, lsl #2
	add	x4, sp, #12
	mov	x0, x19
	mov	w3, #4
	mov	w5, #1
	bl	_cxusb_ctrl_msg
	cbnz	w0, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #8
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x8, x23, x20, lsl #32
	asr	x20, x8, #32
	lsr	x8, x8, #35
	cmp	x8, #4
	b.ls	LBB0_12
	b	LBB0_7
LBB0_15:
Lloh24:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_POWER_OFF,4,2              ; @CMD_POWER_OFF
	.comm	_DVB_USB_STATE_INIT,8,3         ; @DVB_USB_STATE_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set interface failed"

	.comm	_CMD_POWER_ON,4,2               ; @CMD_POWER_ON
	.section	__TEXT,__const
	.p2align	2                               ; @__const.cxusb_aver_power_ctrl.bufs
l___const.cxusb_aver_power_ctrl.bufs:
	.long	14                              ; 0xe
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	127                             ; 0x7f
	.long	14                              ; 0xe
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	254                             ; 0xfe
	.long	14                              ; 0xe
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	14                              ; 0xe
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	3                               ; 0x3
	.long	14                              ; 0xe
	.long	2                               ; 0x2
	.long	13                              ; 0xd
	.long	64                              ; 0x40
	.long	14                              ; 0xe
	.long	2                               ; 0x2
	.long	14                              ; 0xe
	.long	135                             ; 0x87
	.long	14                              ; 0xe
	.long	2                               ; 0x2
	.long	15                              ; 0xf
	.long	142                             ; 0x8e
	.long	14                              ; 0xe
	.long	2                               ; 0x2
	.long	16                              ; 0x10
	.long	1                               ; 0x1
	.long	14                              ; 0xe
	.long	2                               ; 0x2
	.long	20                              ; 0x14
	.long	215                             ; 0xd7
	.long	14                              ; 0xe
	.long	2                               ; 0x2
	.long	71                              ; 0x47
	.long	136                             ; 0x88

	.comm	_CMD_I2C_WRITE,4,2              ; @CMD_I2C_WRITE
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_cxusb_aver_power_ctrl
.subsections_via_symbols
