	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ushc_set_power
_ushc_set_power:                        ## @ushc_set_power
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	addb	$-128, %sil
	cmpb	$3, %sil
	jae	LBB0_1
## %bb.3:
	movsbq	%sil, %rax
	leaq	l_switch.table.ushc_set_power(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %r14d
	movl	(%rdi), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_USHC_PWR_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_USHC_PWR_CTRL_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	pushq	$100
	pushq	$0
	pushq	$0
	callq	_usb_control_msg
	addq	$32, %rsp
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USHC_PWR_CTRL_OFF,4,2          ## @USHC_PWR_CTRL_OFF
	.comm	_USHC_PWR_CTRL_3V3,4,2          ## @USHC_PWR_CTRL_3V3
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_USHC_PWR_CTRL,4,2              ## @USHC_PWR_CTRL
	.comm	_USHC_PWR_CTRL_TYPE,4,2         ## @USHC_PWR_CTRL_TYPE
	.no_dead_strip	_ushc_set_power
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ushc_set_power
l_switch.table.ushc_set_power:
	.quad	_USHC_PWR_CTRL_3V3
	.quad	_USHC_PWR_CTRL_3V3
	.quad	_USHC_PWR_CTRL_OFF

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ushc_set_power
_ushc_set_power:                        ; @ushc_set_power
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w1 killed $w1 def $x1
	sxtb	x8, w1
	eor	x8, x8, #0xffffffffffffff80
	cmp	w8, #3
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.ushc_set_power@PAGE
Lloh1:
	add	x9, x9, l_switch.table.ushc_set_power@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	ldr	w19, [x8]
	ldr	w20, [x0]
	mov	x0, x20
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh2:
	adrp	x8, _USHC_PWR_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _USHC_PWR_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _USHC_PWR_CTRL_TYPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USHC_PWR_CTRL_TYPE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	w8, #100
	str	w8, [sp]
	mov	x0, x20
	mov	x4, x19
	mov	w5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_usb_control_msg
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_USHC_PWR_CTRL_OFF,4,2          ; @USHC_PWR_CTRL_OFF
	.comm	_USHC_PWR_CTRL_3V3,4,2          ; @USHC_PWR_CTRL_3V3
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_USHC_PWR_CTRL,4,2              ; @USHC_PWR_CTRL
	.comm	_USHC_PWR_CTRL_TYPE,4,2         ; @USHC_PWR_CTRL_TYPE
	.no_dead_strip	_ushc_set_power
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ushc_set_power
l_switch.table.ushc_set_power:
	.quad	_USHC_PWR_CTRL_3V3
	.quad	_USHC_PWR_CTRL_3V3
	.quad	_USHC_PWR_CTRL_OFF

.subsections_via_symbols
