	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stk1160_set_alternate
_stk1160_set_alternate:                 ## @stk1160_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %r15d
	movl	4(%rdi), %eax
	movq	_STK1160_MIN_PKT_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movl	%r15d, %esi
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movq	8(%r14), %rdx
	xorl	%ecx, %ecx
	movl	%r15d, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rcx,4), %edi
	cmpl	%r12d, %edi
	jae	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%esi, %rbx
	cmpl	(%rdx,%rbx,4), %edi
	jbe	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, (%r14)
	movl	%ecx, %esi
	jmp	LBB0_6
LBB0_3:
	movl	%ecx, (%r14)
	movl	%ecx, %esi
LBB0_7:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_stk1160_dbg
	movl	(%r14), %edx
	cmpl	%r15d, %edx
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_stk1160_dbg
	movslq	(%r14), %rsi
	movq	8(%r14), %rax
	movl	(%rax,%rsi,4), %edx
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_stk1160_dbg
	movl	20(%r14), %edi
	movslq	(%r14), %rdx
	xorl	%esi, %esi
	callq	_usb_set_interface
	movl	(%r14), %r15d
LBB0_9:
	movq	8(%r14), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %ecx
	xorl	%eax, %eax
	cmpl	%ecx, 16(%r14)
	setne	%al
	movl	%ecx, 16(%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STK1160_MIN_PKT_SIZE,4,2       ## @STK1160_MIN_PKT_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting alternate %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"minimum isoc packet size: %u (alt=%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"setting alt %d with wMaxPacketSize=%u\n"

	.no_dead_strip	_stk1160_set_alternate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stk1160_set_alternate
_stk1160_set_alternate:                 ; @stk1160_set_alternate
	.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, x0
Lloh0:
	adrp	x8, _STK1160_MIN_PKT_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STK1160_MIN_PKT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldp	w21, w8, [x0]
	mov	x1, x21
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x9, #0
	ldr	x10, [x19, #8]
	mov	x1, x21
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x9, lsl #2]
	cmp	w11, w20
	b.hs	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x10, w1, sxtw #2]
	cmp	w11, w12
	b.ls	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w9, [x19]
	mov	x1, x9
	b	LBB0_2
LBB0_6:
	str	w9, [x19]
	mov	x1, x9
LBB0_7:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_stk1160_dbg
	ldr	w8, [x19]
	cmp	w8, w21
	b.eq	LBB0_9
; %bb.8:
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_stk1160_dbg
	ldrsw	x1, [x19]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x1, lsl #2]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_stk1160_dbg
	ldr	w0, [x19, #20]
	ldrsw	x2, [x19]
	mov	w1, #0
	bl	_usb_set_interface
	ldr	w21, [x19]
LBB0_9:
	ldr	w8, [x19, #16]
	ldr	x9, [x19, #8]
	ldr	w9, [x9, w21, sxtw #2]
	cmp	w8, w9
	cset	w0, ne
	str	w9, [x19, #16]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_STK1160_MIN_PKT_SIZE,4,2       ; @STK1160_MIN_PKT_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting alternate %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"minimum isoc packet size: %u (alt=%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"setting alt %d with wMaxPacketSize=%u\n"

	.no_dead_strip	_stk1160_set_alternate
.subsections_via_symbols
