	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ugen20_set_power_mode
_ugen20_set_power_mode:                 ## @ugen20_set_power_mode
	.cfi_startproc
## %bb.0:
	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
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$4, %esi
	ja	LBB0_9
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_7:
	movq	_USB_POWER_MODE_SUSPEND@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movq	_LIBUSB20_ERROR_INVALID_PARAM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_USB_POWER_MODE_SAVE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_8:
	movq	_USB_POWER_MODE_RESUME@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_USB_POWER_MODE_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_USB_POWER_MODE_OFF@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	movl	(%rdi), %ebx
	movq	_USB_SET_POWER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IOUSB
	leaq	-12(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ioctl
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.4:
	movq	_LIBUSB20_ERROR_OTHER@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_USB_POWER_MODE_OFF,4,2         ## @USB_POWER_MODE_OFF
	.comm	_USB_POWER_MODE_ON,4,2          ## @USB_POWER_MODE_ON
	.comm	_USB_POWER_MODE_SAVE,4,2        ## @USB_POWER_MODE_SAVE
	.comm	_USB_POWER_MODE_SUSPEND,4,2     ## @USB_POWER_MODE_SUSPEND
	.comm	_USB_POWER_MODE_RESUME,4,2      ## @USB_POWER_MODE_RESUME
	.comm	_LIBUSB20_ERROR_INVALID_PARAM,4,2 ## @LIBUSB20_ERROR_INVALID_PARAM
	.comm	_USB_SET_POWER_MODE,4,2         ## @USB_SET_POWER_MODE
	.comm	_LIBUSB20_ERROR_OTHER,4,2       ## @LIBUSB20_ERROR_OTHER
	.no_dead_strip	_ugen20_set_power_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ugen20_set_power_mode
_ugen20_set_power_mode:                 ; @ugen20_set_power_mode
	.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
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _USB_POWER_MODE_SUSPEND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _USB_POWER_MODE_SUSPEND@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh4:
	adrp	x8, _LIBUSB20_ERROR_INVALID_PARAM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LIBUSB20_ERROR_INVALID_PARAM@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_4:
Lloh7:
	adrp	x8, _USB_POWER_MODE_SAVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _USB_POWER_MODE_SAVE@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh9:
	adrp	x8, _USB_POWER_MODE_RESUME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USB_POWER_MODE_RESUME@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _USB_POWER_MODE_ON@GOTPAGE
Lloh12:
	ldr	x8, [x8, _USB_POWER_MODE_ON@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _USB_POWER_MODE_OFF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _USB_POWER_MODE_OFF@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w19, [x0]
Lloh15:
	adrp	x8, _USB_SET_POWER_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _USB_SET_POWER_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_IOUSB
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x19
	bl	_ioctl
Lloh18:
	adrp	x8, _LIBUSB20_ERROR_OTHER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LIBUSB20_ERROR_OTHER@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, wzr, w8, eq
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_USB_POWER_MODE_OFF,4,2         ; @USB_POWER_MODE_OFF
	.comm	_USB_POWER_MODE_ON,4,2          ; @USB_POWER_MODE_ON
	.comm	_USB_POWER_MODE_SAVE,4,2        ; @USB_POWER_MODE_SAVE
	.comm	_USB_POWER_MODE_SUSPEND,4,2     ; @USB_POWER_MODE_SUSPEND
	.comm	_USB_POWER_MODE_RESUME,4,2      ; @USB_POWER_MODE_RESUME
	.comm	_LIBUSB20_ERROR_INVALID_PARAM,4,2 ; @LIBUSB20_ERROR_INVALID_PARAM
	.comm	_USB_SET_POWER_MODE,4,2         ; @USB_SET_POWER_MODE
	.comm	_LIBUSB20_ERROR_OTHER,4,2       ; @LIBUSB20_ERROR_OTHER
	.no_dead_strip	_ugen20_set_power_mode
.subsections_via_symbols
