	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stk1160_scan_usb
_stk1160_scan_usb:                      ## @stk1160_scan_usb
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movl	(%rax), %ebx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	xorl	%esi, %esi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	movslq	%ecx, %rdx
	cmpq	%rdx, %rsi
	jge	LBB0_16
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%rsi, %rdx
	shlq	$4, %rdx
	cmpl	$0, 4(%rax,%rdx)
	jle	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, (%rax,%rcx,4)
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	incq	%r15
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movslq	4(%rax,%rdx), %rcx
	addq	$8, %r12
	cmpq	%rcx, %r15
	jge	LBB0_14
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rax,%rdx), %r14
	leaq	(%r14,%r12), %rbx
	movl	4(%r14,%r12), %edi
	callq	_le16_to_cpu
	movl	%eax, %r13d
	andl	$2047, %r13d                    ## imm = 0x7FF
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$129, (%rcx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%eax, %edi
	callq	_hb_mult
	imull	%eax, %r13d
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	callq	_usb_endpoint_xfer_isoc
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	callq	_usb_endpoint_dir_in
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	(%r14,%r12), %eax
	cmpl	$131, %eax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$132, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
LBB0_1:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_16:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	orl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_17
## %bb.18:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_19
## %bb.20:
	cltq
	leaq	l_reltable.stk1160_scan_usb(%rip), %rcx
	movslq	(%rcx,%rax,4), %r13
	addq	%rcx, %r13
	jmp	LBB0_21
LBB0_17:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_19:
	leaq	L_.str.4(%rip), %r13
LBB0_21:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	leaq	24(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %r14
	movq	16(%r15), %r12
	testq	%r14, %r14
	leaq	L_.str.6(%rip), %rax
	cmoveq	%rax, %r14
	testq	%r12, %r12
	cmoveq	%rax, %r12
	movl	32(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	28(%r15), %edi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	callq	_le16_to_cpu
	movl	%eax, %r10d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax), %r11d
	subq	$8, %rsp
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movq	%r13, %r8
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	pushq	%r11
	pushq	%rbx
	pushq	%r10
	callq	_dev_info
	addq	$32, %rsp
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_23
## %bb.22:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_23:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_25
## %bb.24:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_info
LBB0_25:
	xorl	%ebx, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$129, (%rax)
	je	LBB0_27
## %bb.26:
	leaq	L_.str.9(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_27:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no audio or video endpoints found\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"1.5"

L_.str.2:                               ## @.str.2
	.asciz	"12"

L_.str.3:                               ## @.str.3
	.asciz	"480"

L_.str.4:                               ## @.str.4
	.asciz	"unknown"

L_.str.5:                               ## @.str.5
	.asciz	"New device %s %s @ %s Mbps (%04x:%04x, interface %d, class %d)\n"

L_.str.6:                               ## @.str.6
	.space	1

L_.str.7:                               ## @.str.7
	.asciz	"audio interface %d found.\n\t\t\t\tThis is not implemented by this driver,\t\t\t\tyou should use snd-usb-audio instead\n"

L_.str.8:                               ## @.str.8
	.asciz	"video interface %d found\n"

L_.str.9:                               ## @.str.9
	.asciz	"must be connected to a high-speed USB 2.0 port\n\t\t\t\tYou may not be able to stream video smoothly\n"

	.no_dead_strip	_stk1160_scan_usb
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.stk1160_scan_usb
l_reltable.stk1160_scan_usb:
	.long	L_.str.1-l_reltable.stk1160_scan_usb
	.long	L_.str.3-l_reltable.stk1160_scan_usb
	.long	L_.str.2-l_reltable.stk1160_scan_usb

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stk1160_scan_usb
_stk1160_scan_usb:                      ; @stk1160_scan_usb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w10, [x8]
	ldr	w9, [x0]
	cmp	w9, #1
	stp	x10, x2, [sp, #56]              ; 16-byte Folded Spill
	b.lt	LBB0_14
; %bb.1:
	mov	x26, #0
	mov	w25, #0
	str	wzr, [sp, #76]                  ; 4-byte Folded Spill
	mov	w27, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x20]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	cmp	x26, w9, sxtw
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	add	x10, x8, x26, lsl #4
	ldr	w10, [x10, #4]
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, #0
	mov	x23, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	cmp	w8, #132
	csel	w25, w25, w27, ne
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x23, x23, #1
	ldr	x8, [x20, #8]
	add	x9, x8, x26, lsl #4
	ldrsw	x9, [x9, #4]
	add	x28, x28, #8
	cmp	x23, x9
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, x8, x26, lsl #4
	ldr	x24, [x8, #8]
	add	x22, x24, x28
	ldr	w0, [x22, #4]
	bl	_le16_to_cpu
	and	w21, w0, #0x7ff
	ldr	w8, [x19]
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	bl	_hb_mult
	mul	w21, w0, w21
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x22
	bl	_usb_endpoint_xfer_isoc
	cbz	x0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x22
	bl	_usb_endpoint_dir_in
	cbz	x0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x24, x28]
	cmp	w8, #131
	b.ne	LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	str	w21, [x8, x26, lsl #2]
	mov	w8, #1
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
	b	LBB0_7
LBB0_14:
	str	wzr, [sp, #76]                  ; 4-byte Folded Spill
	mov	w25, #0
LBB0_15:
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	orr	w8, w25, w8
	cbz	w8, LBB0_18
; %bb.16:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #2
	ldr	x27, [sp, #56]                  ; 8-byte Folded Reload
	b.hi	LBB0_19
; %bb.17:
Lloh0:
	adrp	x9, l_switch.table.stk1160_scan_usb@PAGE
Lloh1:
	add	x9, x9, l_switch.table.stk1160_scan_usb@PAGEOFF
	ldr	x23, [x9, w8, sxtw #3]
	b	LBB0_20
LBB0_18:
	add	x0, x19, #24
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_27
LBB0_19:
Lloh7:
	adrp	x23, l_.str.4@PAGE
Lloh8:
	add	x23, x23, l_.str.4@PAGEOFF
LBB0_20:
	add	x21, x19, #24
Lloh9:
	adrp	x8, l_.str.6@PAGE
Lloh10:
	add	x8, x8, l_.str.6@PAGEOFF
	ldp	x9, x10, [x19, #8]
	cmp	x9, #0
	csel	x24, x8, x9, eq
	cmp	x10, #0
	csel	x26, x8, x10, eq
	ldr	w0, [x19, #32]
	bl	_le16_to_cpu
	mov	x22, x0
	ldr	w0, [x19, #28]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	stp	x27, x8, [sp, #40]
	stp	x22, x0, [sp, #24]
	stp	x26, x23, [sp, #8]
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
	str	x24, [sp]
	mov	x0, x21
	bl	_dev_info
	cbz	w25, LBB0_22
; %bb.21:
	mov	x8, x27
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.7@PAGE
Lloh14:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_dev_warn
LBB0_22:
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_24
; %bb.23:
	mov	x8, x27
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.8@PAGE
Lloh16:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_dev_info
LBB0_24:
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_26
; %bb.25:
Lloh17:
	adrp	x1, l_.str.9@PAGE
Lloh18:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_dev_warn
LBB0_26:
	mov	w0, #0
LBB0_27:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no audio or video endpoints found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"1.5"

l_.str.2:                               ; @.str.2
	.asciz	"12"

l_.str.3:                               ; @.str.3
	.asciz	"480"

l_.str.4:                               ; @.str.4
	.asciz	"unknown"

l_.str.5:                               ; @.str.5
	.asciz	"New device %s %s @ %s Mbps (%04x:%04x, interface %d, class %d)\n"

l_.str.6:                               ; @.str.6
	.space	1

l_.str.7:                               ; @.str.7
	.asciz	"audio interface %d found.\n\t\t\t\tThis is not implemented by this driver,\t\t\t\tyou should use snd-usb-audio instead\n"

l_.str.8:                               ; @.str.8
	.asciz	"video interface %d found\n"

l_.str.9:                               ; @.str.9
	.asciz	"must be connected to a high-speed USB 2.0 port\n\t\t\t\tYou may not be able to stream video smoothly\n"

	.no_dead_strip	_stk1160_scan_usb
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.stk1160_scan_usb
l_switch.table.stk1160_scan_usb:
	.quad	l_.str.1
	.quad	l_.str.3
	.quad	l_.str.2

.subsections_via_symbols
