	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb_get_max_packet_size     ## -- Begin function libusb_get_max_packet_size
	.p2align	4, 0x90
_libusb_get_max_packet_size:            ## @libusb_get_max_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	leaq	-32(%rbp), %rsi
	callq	_libusb_get_active_config_descriptor
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_LIBUSB_ERROR_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-32(%rbp), %rdi
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_15
## %bb.5:
	movq	8(%rdi), %r9
	xorl	%r11d, %r11d
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	movq	%r11, %rax
	shlq	$4, %rax
	movl	(%r9,%rax), %r10d
	testl	%r10d, %r10d
	jle	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r9,%rax), %r15
	xorl	%ecx, %ecx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%rcx
	cmpq	%r10, %rcx
	je	LBB0_14
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movq	%rcx, %rax
	shlq	$4, %rax
	movl	(%r15,%rax), %esi
	testl	%esi, %esi
	jle	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%r15,%rax), %rdx
	shlq	$4, %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%rbx, (%rdx,%rax)
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=3
	addq	$16, %rax
	cmpq	%rax, %rsi
	jne	LBB0_10
	jmp	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r11
	cmpq	%r8, %r11
	jne	LBB0_6
	jmp	LBB0_15
LBB0_1:
	movq	_LIBUSB_ERROR_NO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_16
LBB0_3:
	movl	%eax, %r14d
	jmp	LBB0_16
LBB0_11:
	movl	8(%rdx,%rax), %r14d
LBB0_15:
	callq	_libusb_free_config_descriptor
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBUSB_ERROR_NO_DEVICE,4,2     ## @LIBUSB_ERROR_NO_DEVICE
	.comm	_LIBUSB_ERROR_NOT_FOUND,4,2     ## @LIBUSB_ERROR_NOT_FOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb_get_max_packet_size     ; -- Begin function libusb_get_max_packet_size
	.p2align	2
_libusb_get_max_packet_size:            ; @libusb_get_max_packet_size
	.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
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x1
	add	x1, sp, #8
	bl	_libusb_get_active_config_descriptor
	tbnz	w0, #31, LBB0_13
; %bb.2:
Lloh0:
	adrp	x8, _LIBUSB_ERROR_NOT_FOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIBUSB_ERROR_NOT_FOUND@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	x0, [sp, #8]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.3:
	mov	x9, #0
	ldr	x10, [x0, #8]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	lsl	x11, x9, #4
	ldr	w11, [x10, x11]
	cmp	w11, #1
	b.lt	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x12, #0
	add	x13, x10, x9, lsl #4
	ldr	x13, [x13, #8]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x12, x12, #1
	cmp	x12, x11
	b.eq	LBB0_11
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	lsl	x14, x12, #4
	ldr	w14, [x13, x14]
	cmp	w14, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x15, x13, x12, lsl #4
	ldr	x15, [x15, #8]
	add	x15, x15, #8
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldur	x16, [x15, #-8]
	cmp	x16, x20
	b.eq	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	add	x15, x15, #16
	subs	x14, x14, #1
	b.ne	LBB0_9
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.ne	LBB0_4
	b	LBB0_15
LBB0_12:
Lloh3:
	adrp	x8, _LIBUSB_ERROR_NO_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LIBUSB_ERROR_NO_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	b	LBB0_16
LBB0_13:
	mov	x19, x0
	b	LBB0_16
LBB0_14:
	ldr	w19, [x15]
LBB0_15:
	bl	_libusb_free_config_descriptor
LBB0_16:
	mov	x0, x19
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LIBUSB_ERROR_NO_DEVICE,4,2     ; @LIBUSB_ERROR_NO_DEVICE
	.comm	_LIBUSB_ERROR_NOT_FOUND,4,2     ; @LIBUSB_ERROR_NOT_FOUND
.subsections_via_symbols
