	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb_parse_ss_endpoint_comp  ## -- Begin function libusb_parse_ss_endpoint_comp
	.p2align	4, 0x90
_libusb_parse_ss_endpoint_comp:         ## @libusb_parse_ss_endpoint_comp
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	jle	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	cmpl	$65535, %esi                    ## imm = 0xFFFF
	movl	$65535, %eax                    ## imm = 0xFFFF
	cmovll	%esi, %eax
	movq	$0, (%r14)
	movq	_LIBUSB_DT_SS_ENDPOINT_COMPANION_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	_LIBUSB_DT_SS_ENDPOINT_COMPANION@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rbx,%rdx,4), %rbx
	subl	%edx, %eax
	je	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	cmpl	$2, %edx
	jl	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%edx, %eax
	jl	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%ecx, %edx
	jl	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, 4(%rbx)
	jne	LBB0_12
## %bb.9:
	movl	$20, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movl	(%r15), %ecx
	movl	%ecx, (%rax)
	movl	%r12d, 4(%rax)
	movl	8(%rbx), %ecx
	movl	%ecx, 8(%rax)
	movl	12(%rbx), %ecx
	movl	%ecx, 12(%rax)
	movl	20(%rbx), %ecx
	shll	$8, %ecx
	orl	16(%rbx), %ecx
	movl	%ecx, 16(%rax)
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_3:
	movq	_LIBUSB_ERROR_INVALID_PARAM@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_LIBUSB_ERROR_IO@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_LIBUSB_ERROR_NO_MEM@GOTPCREL(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBUSB_ERROR_INVALID_PARAM,4,2 ## @LIBUSB_ERROR_INVALID_PARAM
	.comm	_LIBUSB_DT_SS_ENDPOINT_COMPANION_SIZE,4,2 ## @LIBUSB_DT_SS_ENDPOINT_COMPANION_SIZE
	.comm	_LIBUSB_DT_SS_ENDPOINT_COMPANION,4,2 ## @LIBUSB_DT_SS_ENDPOINT_COMPANION
	.comm	_LIBUSB_ERROR_NO_MEM,4,2        ## @LIBUSB_ERROR_NO_MEM
	.comm	_LIBUSB_ERROR_IO,4,2            ## @LIBUSB_ERROR_IO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb_parse_ss_endpoint_comp  ; -- Begin function libusb_parse_ss_endpoint_comp
	.p2align	2
_libusb_parse_ss_endpoint_comp:         ; @libusb_parse_ss_endpoint_comp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cmp	w1, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.2:
	mov	x19, x2
	cbz	x2, LBB0_8
; %bb.3:
	mov	w8, #65535
	cmp	w1, w8
	csel	w8, w1, w8, lt
	str	xzr, [x19]
Lloh0:
	adrp	x21, _LIBUSB_DT_SS_ENDPOINT_COMPANION_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LIBUSB_DT_SS_ENDPOINT_COMPANION_SIZE@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh2:
	adrp	x10, _LIBUSB_DT_SS_ENDPOINT_COMPANION@GOTPAGE
Lloh3:
	ldr	x10, [x10, _LIBUSB_DT_SS_ENDPOINT_COMPANION@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x10]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x20]
	cmp	w10, #2
	ccmp	w8, w10, #8, ge
	b.lt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x20, #4]
	cmp	w10, w9
	ccmp	w11, w22, #0, ge
	b.eq	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, x10, lsl #2
	subs	w8, w8, w10
	b.ne	LBB0_4
LBB0_7:
Lloh5:
	adrp	x8, _LIBUSB_ERROR_IO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LIBUSB_ERROR_IO@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x8, _LIBUSB_ERROR_INVALID_PARAM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LIBUSB_ERROR_INVALID_PARAM@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w0, #20
	bl	_malloc
	cbz	x0, LBB0_13
; %bb.12:
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x21]
	stp	w9, w22, [x8]
	ldr	w9, [x20, #8]
	str	w9, [x8, #8]
	ldr	w9, [x20, #12]
	str	w9, [x8, #12]
	ldp	w9, w10, [x20, #16]
	orr	w9, w9, w10, lsl #8
	str	w9, [x8, #16]
	str	x8, [x19]
	b	LBB0_10
LBB0_13:
Lloh9:
	adrp	x8, _LIBUSB_ERROR_NO_MEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LIBUSB_ERROR_NO_MEM@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LIBUSB_ERROR_INVALID_PARAM,4,2 ; @LIBUSB_ERROR_INVALID_PARAM
	.comm	_LIBUSB_DT_SS_ENDPOINT_COMPANION_SIZE,4,2 ; @LIBUSB_DT_SS_ENDPOINT_COMPANION_SIZE
	.comm	_LIBUSB_DT_SS_ENDPOINT_COMPANION,4,2 ; @LIBUSB_DT_SS_ENDPOINT_COMPANION
	.comm	_LIBUSB_ERROR_NO_MEM,4,2        ; @LIBUSB_ERROR_NO_MEM
	.comm	_LIBUSB_ERROR_IO,4,2            ; @LIBUSB_ERROR_IO
.subsections_via_symbols
