	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	testl	%esi, %esi
	je	LBB0_17
## %bb.1:
	movq	(%r13), %rax
	movq	_DVB_USB_STATE_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movl	8(%r13), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_usb_set_interface
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_err
LBB0_4:
	movq	_CMD_POWER_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_cxusb_ctrl_msg
	testl	%eax, %eax
	jne	LBB0_16
## %bb.5:
	movq	%r13, %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_16
## %bb.6:
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	movl	$23, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_cxusb_ctrl_msg
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	movl	$20, %edi
	callq	_msleep
	leaq	_cxusb_aver_power_ctrl.bufs(%rip), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_13
## %bb.8:
	xorl	%r14d, %r14d
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_CMD_I2C_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	movl	$4, %ecx
	movq	%r12, %r8
	movl	$1, %r9d
	callq	_cxusb_ctrl_msg
	testl	%eax, %eax
	jne	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$8, -44(%rbp)
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%r14
	leaq	_cxusb_aver_power_ctrl.bufs(%rip), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_9
## %bb.12:
	xorl	%r15d, %r15d
LBB0_13:
	movl	%r15d, %eax
	jmp	LBB0_16
LBB0_17:
	movq	_CMD_POWER_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cxusb_ctrl_msg                 ## TAILCALL
LBB0_10:
	movl	%eax, %r15d
	jmp	LBB0_16
LBB0_15:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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                               ## @cxusb_aver_power_ctrl.bufs
_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, #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	x19, x0
	cbz	w1, LBB0_13
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _DVB_USB_STATE_INIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DVB_USB_STATE_INIT@GOTPAGEOFF]
Lloh2:
	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:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
LBB0_4:
Lloh5:
	adrp	x8, _CMD_POWER_ON@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMD_POWER_ON@GOTPAGEOFF]
Lloh7:
	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_15
; %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_15
; %bb.6:
	mov	x0, x19
	mov	w1, #23
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_cxusb_ctrl_msg
	cbnz	w0, LBB0_15
; %bb.7:
	mov	w0, #20
	bl	_msleep
Lloh8:
	adrp	x0, _cxusb_aver_power_ctrl.bufs@PAGE
Lloh9:
	add	x0, x0, _cxusb_aver_power_ctrl.bufs@PAGEOFF
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.8:
	mov	x22, #0
Lloh10:
	adrp	x20, _cxusb_aver_power_ctrl.bufs@PAGE
Lloh11:
	add	x20, x20, _cxusb_aver_power_ctrl.bufs@PAGEOFF
Lloh12:
	adrp	x23, _CMD_I2C_WRITE@GOTPAGE
Lloh13:
	ldr	x23, [x23, _CMD_I2C_WRITE@GOTPAGEOFF]
	mov	x21, x20
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	add	x4, sp, #12
	mov	x0, x19
	mov	x2, x21
	mov	w3, #4
	mov	w5, #1
	bl	_cxusb_ctrl_msg
	cbnz	w0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, #8
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	add	x21, x21, #4
	cmp	x22, w0, sxtw
	b.lt	LBB0_9
LBB0_12:
	mov	w0, #0
	b	LBB0_15
LBB0_13:
Lloh14:
	adrp	x8, _CMD_POWER_OFF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CMD_POWER_OFF@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	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
	b	_cxusb_ctrl_msg
LBB0_14:
Lloh17:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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                               ; @cxusb_aver_power_ctrl.bufs
_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
