	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbvision_power_off            ## -- Begin function usbvision_power_off
	.p2align	4, 0x90
_usbvision_power_off:                   ## @usbvision_power_off
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_DBG_FUNC@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	_USBVISION_PWR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_USBVISION_SSPND_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_usbvision_write_reg
	movl	%eax, %ebx
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.2:
	movq	$0, (%r14)
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.2(%rip), %rdx
LBB0_3:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_PDEBUG
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DBG_FUNC,4,2                   ## @DBG_FUNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_USBVISION_PWR_REG,4,2          ## @USBVISION_PWR_REG
	.comm	_USBVISION_SSPND_EN,4,2         ## @USBVISION_SSPND_EN
L_.str.1:                               ## @.str.1
	.asciz	"%s: err_code %d"

L_.str.2:                               ## @.str.2
	.asciz	"ERROR"

L_.str.3:                               ## @.str.3
	.asciz	"power is off"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbvision_power_off            ; -- Begin function usbvision_power_off
	.p2align	2
_usbvision_power_off:                   ; @usbvision_power_off
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x21, _DBG_FUNC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DBG_FUNC@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PDEBUG
Lloh4:
	adrp	x8, _USBVISION_PWR_REG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _USBVISION_PWR_REG@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _USBVISION_SSPND_EN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _USBVISION_SSPND_EN@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_usbvision_write_reg
	mov	x19, x0
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x20]
Lloh10:
	adrp	x8, l_.str.3@PAGE
Lloh11:
	add	x8, x8, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, l_.str.2@PAGE
Lloh13:
	add	x8, x8, l_.str.2@PAGEOFF
LBB0_3:
	ldr	w0, [x21]
	stp	x8, x19, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PDEBUG
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DBG_FUNC,4,2                   ; @DBG_FUNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_USBVISION_PWR_REG,4,2          ; @USBVISION_PWR_REG
	.comm	_USBVISION_SSPND_EN,4,2         ; @USBVISION_SSPND_EN
l_.str.1:                               ; @.str.1
	.asciz	"%s: err_code %d"

l_.str.2:                               ; @.str.2
	.asciz	"ERROR"

l_.str.3:                               ; @.str.3
	.asciz	"power is off"

.subsections_via_symbols
