	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_check_usb_descriptor
_em28xx_check_usb_descriptor:           ## @em28xx_check_usb_descriptor
	.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	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %rax
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movslq	%ecx, %r15
	movq	(%rax,%r15,8), %r12
	movslq	%r8d, %rbx
	leaq	(%r12,%rbx,8), %r13
	movq	%r13, %rdi
	callq	_usb_endpoint_dir_in
	testl	%eax, %eax
	je	LBB0_23
## %bb.1:
	movl	4(%r12,%rbx,8), %edi
	callq	_le16_to_cpu
	movl	%eax, %r12d
	andl	$2047, %r12d                    ## imm = 0x7FF
	movq	(%r14), %rcx
	movq	_USB_SPEED_HIGH@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	movl	%eax, %edi
	callq	_hb_mult
	imull	%eax, %r12d
LBB0_3:
	movl	$-130, %eax
	addl	(%r13), %eax
	cmpl	$3, %eax
	ja	LBB0_23
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	%r13, %rdi
	callq	_usb_endpoint_xfer_isoc
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	(%r13), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	8(%rcx), %rax
	movl	%r12d, (%rax,%r15,4)
	jmp	LBB0_23
LBB0_9:
	movq	%r13, %rdi
	callq	_usb_endpoint_xfer_isoc
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_23
LBB0_12:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	callq	_usb_endpoint_xfer_bulk
	testl	%eax, %eax
	jne	LBB0_8
LBB0_14:
	movq	%r13, %rdi
	callq	_usb_endpoint_xfer_isoc
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	20(%rax), %r12d
	jle	LBB0_23
## %bb.16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	(%r13), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 24(%rcx)
	movl	%r12d, 20(%rcx)
	jmp	LBB0_21
LBB0_18:
	movq	%r13, %rdi
	callq	_usb_endpoint_xfer_isoc
	testl	%eax, %eax
	je	LBB0_22
## %bb.19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	36(%rax), %r12d
	jle	LBB0_23
## %bb.20:
	movl	(%r13), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 40(%rcx)
	movl	%r12d, 36(%rcx)
LBB0_21:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 28(%rcx)
	jmp	LBB0_23
LBB0_7:
	movq	%r13, %rdi
	callq	_usb_endpoint_xfer_bulk
	testl	%eax, %eax
	je	LBB0_23
LBB0_8:
	movl	(%r13), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 16(%rcx)
	jmp	LBB0_23
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_22:
	movl	(%r13), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 44(%rcx)
	jmp	LBB0_23
LBB0_17:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	(%r13), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 32(%rcx)
LBB0_23:
	addq	$56, %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_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_USB_SPEED_HIGH,8,3             ## @USB_SPEED_HIGH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error: skipping audio endpoint 0x83, because it uses bulk transfers !\n"

	.no_dead_strip	_em28xx_check_usb_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_check_usb_descriptor
_em28xx_check_usb_descriptor:           ; @em28xx_check_usb_descriptor
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x7
	mov	x25, x6
	mov	x23, x5
	mov	x27, x4
	mov	x21, x3
	mov	x24, x2
	mov	x26, x1
	mov	x19, x0
	ldr	x8, [x2, #8]
	ldr	x28, [x8, w3, sxtw #3]
	add	x20, x28, w4, sxtw #3
	mov	x0, x20
	bl	_usb_endpoint_dir_in
	cbz	w0, LBB0_22
; %bb.1:
	sxtw	x8, w27
	add	x8, x28, x8, lsl #3
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
	and	w27, w0, #0x7ff
	ldr	x8, [x26]
Lloh0:
	adrp	x9, _USB_SPEED_HIGH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USB_SPEED_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	bl	_hb_mult
	mul	w27, w0, w27
LBB0_3:
	ldr	w8, [x20]
	sub	w8, w8, #130
	cmp	w8, #3
	b.hi	LBB0_22
; %bb.4:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	mov	w8, #1
	str	w8, [x25]
	mov	x0, x20
	bl	_usb_endpoint_xfer_isoc
	cbz	w0, LBB0_17
; %bb.6:
	sxtw	x8, w21
	ldr	w9, [x20]
	str	w9, [x19]
	ldr	x9, [x19, #8]
	str	w27, [x9, x8, lsl #2]
	b	LBB0_22
LBB0_7:
	mov	x0, x20
	bl	_usb_endpoint_xfer_isoc
	cbz	w0, LBB0_19
; %bb.8:
	mov	w8, #1
	str	w8, [x23]
	b	LBB0_22
LBB0_9:
	ldr	w8, [x25]
	cbz	w8, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_usb_endpoint_xfer_bulk
	cbnz	w0, LBB0_18
LBB0_11:
	mov	x0, x20
	bl	_usb_endpoint_xfer_isoc
	cbz	w0, LBB0_21
; %bb.12:
	ldr	w8, [x19, #20]
	cmp	w27, w8
	b.le	LBB0_22
; %bb.13:
	mov	w8, #1
	str	w8, [x22]
	ldr	w8, [x20]
	stp	w27, w8, [x19, #20]
	str	w21, [x19, #28]
	b	LBB0_22
LBB0_14:
	mov	x0, x20
	bl	_usb_endpoint_xfer_isoc
	cbz	w0, LBB0_20
; %bb.15:
	ldr	w8, [x19, #36]
	cmp	w27, w8
	b.le	LBB0_22
; %bb.16:
	ldr	w8, [x20]
	stp	w27, w8, [x19, #36]
	str	w21, [x19, #28]
	b	LBB0_22
LBB0_17:
	mov	x0, x20
	bl	_usb_endpoint_xfer_bulk
	cbz	w0, LBB0_22
LBB0_18:
	ldr	w8, [x20]
	str	w8, [x19, #16]
	b	LBB0_22
LBB0_19:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_dev_err
LBB0_20:
	ldr	w8, [x20]
	str	w8, [x19, #44]
	b	LBB0_22
LBB0_21:
	mov	w8, #1
	str	w8, [x22]
	ldr	w8, [x20]
	str	w8, [x19, #32]
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_14-LBB0_5)>>2
                                        ; -- End function
	.comm	_USB_SPEED_HIGH,8,3             ; @USB_SPEED_HIGH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error: skipping audio endpoint 0x83, because it uses bulk transfers !\n"

	.no_dead_strip	_em28xx_check_usb_descriptor
.subsections_via_symbols
