	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb_get_max_iso_packet_size ## -- Begin function libusb_get_max_iso_packet_size
	.p2align	4, 0x90
_libusb_get_max_iso_packet_size:        ## @libusb_get_max_iso_packet_size
	.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
	movq	%rdi, %rbx
	callq	_libusb_get_max_packet_size
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_libusb20_dev_get_speed
	andl	$-2, %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	testl	%r14d, %r14d
	js	LBB0_3
## %bb.2:
	movl	%r14d, %eax
	shrl	$11, %eax
	andl	$3, %eax
	cmpl	$2, %eax
	movl	$2, %ecx
	cmovbl	%eax, %ecx
	incl	%ecx
	andl	$2047, %r14d                    ## imm = 0x7FF
	imull	%ecx, %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb_get_max_iso_packet_size ; -- Begin function libusb_get_max_iso_packet_size
	.p2align	2
_libusb_get_max_iso_packet_size:        ; @libusb_get_max_iso_packet_size
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_libusb_get_max_packet_size
	mov	x19, x0
	ldr	w0, [x20]
	bl	_libusb20_dev_get_speed
	and	w8, w0, #0xfffffffe
	cmp	w8, #128
	b.eq	LBB0_2
; %bb.1:
	ubfx	w8, w19, #11, #2
	mov	w9, #2
	cmp	w8, #2
	csel	w8, w8, w9, lo
	and	w9, w19, #0x7ff
	madd	w8, w9, w8, w9
	tst	w19, #0x80000000
	csel	w19, w19, w8, ne
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
