	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbvision_set_alternate        ## -- Begin function usbvision_set_alternate
	.p2align	4, 0x90
_usbvision_set_alternate:               ## @usbvision_set_alternate
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %r8d
	movl	4(%rdi), %r9d
	movl	$0, (%rdi)
	testl	%r9d, %r9d
	jle	LBB0_1
## %bb.2:
	movq	8(%r15), %rdx
	cmpl	$1, %r9d
	jne	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	xorl	%edi, %edi
LBB0_10:
	testb	$1, %r9b
	je	LBB0_13
## %bb.11:
	movq	(%rdx,%rsi,8), %rax
	movslq	%edi, %rcx
	cmpq	(%rdx,%rcx,8), %rax
	jle	LBB0_13
## %bb.12:
	movl	%esi, (%r15)
	movl	%esi, %edi
LBB0_13:
	cmpl	%r8d, %edi
	jne	LBB0_14
	jmp	LBB0_16
LBB0_1:
	xorl	%edi, %edi
	cmpl	%r8d, %edi
	je	LBB0_16
LBB0_14:
	movq	8(%r15), %rax
	movslq	%edi, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	%rcx, 16(%r15)
	movq	_DBG_FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_PDEBUG
	movq	24(%r15), %rdi
	movl	32(%r15), %esi
	movslq	(%r15), %rdx
	callq	_usb_set_interface
	testl	%eax, %eax
	js	LBB0_15
LBB0_16:
	movq	_DBG_ISOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r15), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_PDEBUG
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%r9d, %ecx
	andl	$-2, %ecx
	xorl	%esi, %esi
	xorl	%edi, %edi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %rcx
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rax
	movslq	%edi, %rbx
	cmpq	(%rdx,%rbx,8), %rax
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%esi, (%r15)
	movl	%esi, %edi
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rdx,%rsi,8), %rax
	movslq	%edi, %rbx
	cmpq	(%rdx,%rbx,8), %rax
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%rsi), %edi
	movl	%edi, (%r15)
	jmp	LBB0_9
LBB0_15:
	movl	%eax, %r14d
	movq	24(%r15), %rdi
	movslq	(%r15), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_err
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_DBG_FUNC,4,2                   ## @DBG_FUNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting alternate %d with max_packet_size=%u"

L_.str.1:                               ## @.str.1
	.asciz	"cannot change alternate number to %d (error=%i)\n"

	.comm	_DBG_ISOC,4,2                   ## @DBG_ISOC
L_.str.2:                               ## @.str.2
	.asciz	"ISO Packet Length:%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usbvision_set_alternate        ; -- Begin function usbvision_set_alternate
	.p2align	2
_usbvision_set_alternate:               ; @usbvision_set_alternate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldp	w8, w10, [x0]
	str	wzr, [x0]
	cmp	w10, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x11, #0
	mov	w9, #0
	ldr	x12, [x19, #8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #1
	cmp	x10, x11
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12, x11, lsl #3]
	ldr	x14, [x12, w9, sxtw #3]
	cmp	x13, x14
	b.le	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w11, [x19]
	mov	x9, x11
	b	LBB0_2
LBB0_5:
	mov	w9, #0
LBB0_6:
	cmp	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [x19, #8]
	sxtw	x2, w9
	ldr	x8, [x8, w9, sxtw #3]
	str	x8, [x19, #16]
Lloh0:
	adrp	x9, _DBG_FUNC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DBG_FUNC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PDEBUG
	ldr	x0, [x19, #24]
	ldr	w1, [x19, #32]
	ldrsw	x2, [x19]
	bl	_usb_set_interface
	tbnz	w0, #31, LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _DBG_ISOC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DBG_ISOC@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	x2, [x19, #16]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_PDEBUG
	mov	w20, #0
	b	LBB0_10
LBB0_9:
	mov	x20, x0
	ldr	x0, [x19, #24]
	ldrsw	x2, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x20
	bl	_dev_err
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DBG_FUNC,4,2                   ; @DBG_FUNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting alternate %d with max_packet_size=%u"

l_.str.1:                               ; @.str.1
	.asciz	"cannot change alternate number to %d (error=%i)\n"

	.comm	_DBG_ISOC,4,2                   ; @DBG_ISOC
l_.str.2:                               ; @.str.2
	.asciz	"ISO Packet Length:%d"

.subsections_via_symbols
