	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_set_configuration          ## -- Begin function usb_set_configuration
	.p2align	4, 0x90
_usb_set_configuration:                 ## @usb_set_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_1
## %bb.3:
	movl	%esi, %ebx
	movq	%r14, %rdi
	callq	_usb_device
	movq	%rax, %rcx
	movq	(%rax), %rdx
	movl	$-1, %eax
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.4:
	movl	8(%rcx), %ecx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.5:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rdx,%rsi,4)
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_6
	jmp	LBB0_8
LBB0_1:
	movl	$255, %esi
LBB0_2:
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_libusb20_dev_set_config_index
	movl	%eax, %ecx
	xorl	%eax, %eax
	negl	%ecx
	sbbl	%eax, %eax
LBB0_8:
	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	_usb_set_configuration          ; -- Begin function usb_set_configuration
	.p2align	2
_usb_set_configuration:                 ; @usb_set_configuration
	.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	x19, x0
	cbz	w1, LBB0_7
; %bb.1:
	mov	x20, x1
	mov	x0, x19
	bl	_usb_device
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	w9, [x0, #8]
	cbz	w9, LBB0_6
; %bb.3:
	mov	x1, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8, x1, lsl #2]
	cmp	w10, w20
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x1, #1
	cmp	x9, x1
	b.ne	LBB0_4
LBB0_6:
	mov	w0, #-1
	b	LBB0_9
LBB0_7:
	mov	w1, #255
LBB0_8:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_libusb20_dev_set_config_index
	cmp	w0, #0
	csetm	w0, ne
LBB0_9:
	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
