	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_parse_configuration        ## -- Begin function usb_parse_configuration
	.p2align	4, 0x90
_usb_parse_configuration:               ## @usb_parse_configuration
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.2:
	movq	%rdi, %rbx
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	%r15, %rdi
	callq	_libusb20_parse_config_desc
	movq	%rax, -72(%rbp)
	movq	%rbx, -32(%rbp)
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	$1, -80(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_usb_parse_config
	movq	-40(%rbp), %r15
	shrq	$2, %r15
	movq	-48(%rbp), %r14
	shrq	$2, %r14
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rbx
	shrq	$2, %rbx
	shrq	$2, %rdi
	leal	(%r14,%r15), %eax
	addl	%ebx, %eax
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, -40(%rbp)
	movslq	%r15d, %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -48(%rbp)
	movslq	%r14d, %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -56(%rbp)
	movslq	%ebx, %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -64(%rbp)
	movl	$0, -80(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_usb_parse_config
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_4:
	movl	$-1, %r14d
LBB0_6:
	movq	-72(%rbp), %rdi
	callq	_free
LBB0_7:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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	_usb_parse_configuration        ; -- Begin function usb_parse_configuration
	.p2align	2
_usb_parse_configuration:               ; @usb_parse_configuration
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	w19, #-1
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_8
; %bb.2:
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	mov	x0, x21
	bl	_libusb20_parse_config_desc
	str	x0, [sp, #16]
	str	x20, [sp, #56]
	cbz	x0, LBB0_5
; %bb.3:
	mov	w8, #1
	str	w8, [sp, #8]
	add	x0, sp, #8
	bl	_usb_parse_config
	ldp	x9, x8, [sp, #40]
	lsr	x21, x8, #2
	lsr	x19, x9, #2
	ldp	x9, x8, [sp, #24]
	lsr	x20, x8, #2
	lsr	x8, x9, #2
	add	w9, w19, w21
	add	w9, w9, w20
	add	w0, w9, w8
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.4:
	add	x8, x0, w21, sxtw #2
	stp	x8, x0, [sp, #40]
	add	x8, x8, w19, sxtw #2
	add	x9, x8, w20, sxtw #2
	stp	x9, x8, [sp, #24]
	str	wzr, [sp, #8]
	add	x0, sp, #8
	bl	_usb_parse_config
	mov	w19, #0
	b	LBB0_7
LBB0_5:
	mov	w19, #-1
	b	LBB0_8
LBB0_6:
	mov	w19, #-1
LBB0_7:
	ldr	x0, [sp, #16]
	bl	_free
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
