	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb20_dev_alloc_config      ## -- Begin function libusb20_dev_alloc_config
	.p2align	4, 0x90
_libusb20_dev_alloc_config:             ## @libusb20_dev_alloc_config
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	%esi, 12(%rdi)
	jle	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	8(%rdi), %r12d
	testl	%r12d, %r12d
	je	LBB0_3
LBB0_4:
	movq	(%r15), %rax
	leaq	-40(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	xorl	%r14d, %r14d
	testl	%r12d, %r12d
	jne	LBB0_9
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_3:
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_libusb20_dev_open
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_4
LBB0_6:
	movq	-40(%rbp), %rdi
	callq	_libusb20_parse_config_desc
	movq	%rax, %r14
	movq	-40(%rbp), %rdi
	callq	_free
	testl	%r12d, %r12d
	jne	LBB0_9
LBB0_8:
	movq	%r15, %rdi
	callq	_libusb20_dev_close
LBB0_9:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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	_libusb20_dev_alloc_config      ; -- Begin function libusb20_dev_alloc_config
	.p2align	2
_libusb20_dev_alloc_config:             ; @libusb20_dev_alloc_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0, #12]
	cmp	w8, w1
	b.le	LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w21, [x0, #8]
	cbz	w21, LBB0_4
LBB0_2:
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x19
	mov	x3, x20
	blr	x8
	cbz	w0, LBB0_7
; %bb.3:
	mov	x20, #0
	cbnz	w21, LBB0_6
	b	LBB0_8
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	bl	_libusb20_dev_open
	cbz	w0, LBB0_2
LBB0_5:
	mov	x20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	ldr	x0, [sp, #8]
	bl	_libusb20_parse_config_desc
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_free
	cbnz	w21, LBB0_6
LBB0_8:
	mov	x0, x19
	bl	_libusb20_dev_close
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
