	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_set_alt_setting        ## -- Begin function cx231xx_set_alt_setting
	.p2align	4, 0x90
_cx231xx_set_alt_setting:               ## @cx231xx_set_alt_setting
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r15
	addl	$-128, %esi
	cmpl	$5, %esi
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	40(%r15), %rcx
	movq	80(%r15), %rax
	movslq	8(%rcx), %r13
	incq	%r13
	movl	%r14d, 72(%r15)
	testq	%rax, %rax
	je	LBB0_19
## %bb.3:
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %r12
	movq	%r12, 88(%r15)
	testl	%r14d, %r14d
	jg	LBB0_20
	jmp	LBB0_22
LBB0_4:
	xorl	%r13d, %r13d
	jmp	LBB0_19
LBB0_5:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r15)
	jne	LBB0_26
## %bb.6:
	movq	40(%r15), %rcx
	movq	56(%r15), %rax
	movslq	4(%rcx), %r13
	incq	%r13
	movl	%r14d, 48(%r15)
	testq	%rax, %rax
	je	LBB0_19
## %bb.7:
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %r12
	movq	%r12, 64(%r15)
	testl	%r14d, %r14d
	jg	LBB0_20
	jmp	LBB0_22
LBB0_8:
	movq	40(%r15), %rax
	movslq	16(%rax), %r13
	incq	%r13
	jmp	LBB0_19
LBB0_9:
	movq	40(%r15), %rcx
	movq	128(%r15), %rax
	movslq	20(%rcx), %r13
	incq	%r13
	movl	%r14d, 120(%r15)
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %r12
	movq	%r12, 136(%r15)
	testl	%r14d, %r14d
	jg	LBB0_20
	jmp	LBB0_22
LBB0_11:
	movq	24(%r15), %rax
	movq	40(%r15), %rcx
	movslq	(%rcx), %r13
	incq	%r13
	movl	%r14d, 16(%r15)
	testq	%rax, %rax
	je	LBB0_19
## %bb.12:
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %r12
	movq	%r12, 32(%r15)
	testl	%r14d, %r14d
	jg	LBB0_20
	jmp	LBB0_22
LBB0_13:
	movq	40(%r15), %rcx
	movq	104(%r15), %rax
	movslq	12(%rcx), %r13
	incq	%r13
	movl	%r14d, 96(%r15)
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %r12
	movq	%r12, 112(%r15)
	testl	%r14d, %r14d
	jg	LBB0_20
	jmp	LBB0_22
LBB0_19:
	xorl	%r12d, %r12d
	testl	%r14d, %r14d
	jle	LBB0_22
LBB0_20:
	testq	%r12, %r12
	jne	LBB0_22
## %bb.21:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movl	$-1, %ebx
	cmpq	$0, 8(%r15)
	jne	LBB0_26
LBB0_22:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_cx231xx_coredbg
	testq	%r13, %r13
	jle	LBB0_25
## %bb.23:
	movl	4(%r15), %edi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_usb_set_interface
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_26
## %bb.24:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_26
LBB0_25:
	xorl	%ebx, %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't change interface %d alt no. to %d: Max. Pkt size = 0\n"

L_.str.1:                               ## @.str.1
	.asciz	"setting alternate %d with wMaxPacketSize=%u,Interface = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"can't change interface %d alt no. to %d (err=%i)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_set_alt_setting        ; -- Begin function cx231xx_set_alt_setting
	.p2align	2
_cx231xx_set_alt_setting:               ; @cx231xx_set_alt_setting
	.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
	mov	x19, x2
	mov	x20, x0
	sub	w8, w1, #128
	cmp	w8, #5
	b.hi	LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x20, #40]
	ldrsw	x8, [x8, #8]
	add	x21, x8, #1
	str	w19, [x20, #72]
	ldr	x8, [x20, #80]
	cbz	x8, LBB0_15
; %bb.3:
	ldr	x22, [x8, w19, sxtw #3]
	str	x22, [x20, #88]
	cmp	w19, #1
	b.ge	LBB0_16
	b	LBB0_19
LBB0_4:
	mov	x21, #0
	b	LBB0_15
LBB0_5:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_22
; %bb.6:
	ldr	x8, [x20, #40]
	ldrsw	x8, [x8, #4]
	add	x21, x8, #1
	str	w19, [x20, #48]
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_15
; %bb.7:
	ldr	x22, [x8, w19, sxtw #3]
	str	x22, [x20, #64]
	cmp	w19, #1
	b.ge	LBB0_16
	b	LBB0_19
LBB0_8:
	mov	x22, #0
	ldr	x8, [x20, #40]
	ldrsw	x8, [x8, #16]
	add	x21, x8, #1
	cmp	w19, #1
	b.ge	LBB0_16
	b	LBB0_19
LBB0_9:
	ldr	x8, [x20, #40]
	ldrsw	x8, [x8, #20]
	add	x21, x8, #1
	str	w19, [x20, #120]
	ldr	x8, [x20, #128]
	cbz	x8, LBB0_15
; %bb.10:
	ldr	x22, [x8, w19, sxtw #3]
	str	x22, [x20, #136]
	cmp	w19, #1
	b.ge	LBB0_16
	b	LBB0_19
LBB0_11:
	ldr	x8, [x20, #40]
	ldrsw	x8, [x8]
	add	x21, x8, #1
	str	w19, [x20, #16]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_15
; %bb.12:
	ldr	x22, [x8, w19, sxtw #3]
	str	x22, [x20, #32]
	cmp	w19, #1
	b.ge	LBB0_16
	b	LBB0_19
LBB0_13:
	ldr	x8, [x20, #40]
	ldrsw	x8, [x8, #12]
	add	x21, x8, #1
	str	w19, [x20, #96]
	ldr	x8, [x20, #104]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	x22, [x8, w19, sxtw #3]
	str	x22, [x20, #112]
	cmp	w19, #1
	b.ge	LBB0_16
	b	LBB0_19
LBB0_15:
	mov	x22, #0
	cmp	w19, #1
	b.lt	LBB0_19
LBB0_16:
	cbnz	x22, LBB0_19
; %bb.17:
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x19
	bl	_dev_err
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_19
; %bb.18:
	mov	w22, #-1
	b	LBB0_23
LBB0_19:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_cx231xx_coredbg
	cmp	x21, #1
	b.lt	LBB0_22
; %bb.20:
	ldr	w0, [x20, #4]
	mov	x1, x21
	mov	x2, x19
	bl	_usb_set_interface
	mov	x22, x0
	tbz	w0, #31, LBB0_23
; %bb.21:
	ldr	w0, [x20]
	str	x22, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	mov	x3, x19
	bl	_dev_err
	b	LBB0_23
LBB0_22:
	mov	w22, #0
LBB0_23:
	mov	x0, x22
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't change interface %d alt no. to %d: Max. Pkt size = 0\n"

l_.str.1:                               ; @.str.1
	.asciz	"setting alternate %d with wMaxPacketSize=%u,Interface = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"can't change interface %d alt no. to %d (err=%i)\n"

.subsections_via_symbols
