	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb_get_device_speed        ## -- Begin function libusb_get_device_speed
	.p2align	4, 0x90
_libusb_get_device_speed:               ## @libusb_get_device_speed
	.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
	movq	_LIBUSB_SPEED_UNKNOWN@GOTPCREL(%rip), %rbx
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movl	(%rdi), %edi
	callq	_libusb20_dev_get_speed
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_3
## %bb.2:
	cltq
	leaq	l_switch.table.libusb_get_device_speed(%rip), %rcx
	movq	(%rcx,%rax,8), %rbx
LBB0_3:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBUSB_SPEED_UNKNOWN,4,2       ## @LIBUSB_SPEED_UNKNOWN
	.comm	_LIBUSB_SPEED_LOW,4,2           ## @LIBUSB_SPEED_LOW
	.comm	_LIBUSB_SPEED_FULL,4,2          ## @LIBUSB_SPEED_FULL
	.comm	_LIBUSB_SPEED_HIGH,4,2          ## @LIBUSB_SPEED_HIGH
	.comm	_LIBUSB_SPEED_SUPER,4,2         ## @LIBUSB_SPEED_SUPER
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.libusb_get_device_speed
l_switch.table.libusb_get_device_speed:
	.quad	_LIBUSB_SPEED_SUPER
	.quad	_LIBUSB_SPEED_LOW
	.quad	_LIBUSB_SPEED_HIGH
	.quad	_LIBUSB_SPEED_FULL

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb_get_device_speed        ; -- Begin function libusb_get_device_speed
	.p2align	2
_libusb_get_device_speed:               ; @libusb_get_device_speed
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x0]
	bl	_libusb20_dev_get_speed
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.2:
Lloh0:
	adrp	x9, l_switch.table.libusb_get_device_speed@PAGE
Lloh1:
	add	x9, x9, l_switch.table.libusb_get_device_speed@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _LIBUSB_SPEED_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LIBUSB_SPEED_UNKNOWN@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_LIBUSB_SPEED_UNKNOWN,4,2       ; @LIBUSB_SPEED_UNKNOWN
	.comm	_LIBUSB_SPEED_LOW,4,2           ; @LIBUSB_SPEED_LOW
	.comm	_LIBUSB_SPEED_FULL,4,2          ; @LIBUSB_SPEED_FULL
	.comm	_LIBUSB_SPEED_HIGH,4,2          ; @LIBUSB_SPEED_HIGH
	.comm	_LIBUSB_SPEED_SUPER,4,2         ; @LIBUSB_SPEED_SUPER
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.libusb_get_device_speed
l_switch.table.libusb_get_device_speed:
	.quad	_LIBUSB_SPEED_SUPER
	.quad	_LIBUSB_SPEED_LOW
	.quad	_LIBUSB_SPEED_HIGH
	.quad	_LIBUSB_SPEED_FULL

.subsections_via_symbols
