	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function konicawc_probe
_konicawc_probe:                        ## @konicawc_probe
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_interface_to_usbdev
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_DEBUG
	cmpl	$1, (%r12)
	jne	LBB0_18
## %bb.1:
	leaq	16(%rbx), %r14
	movl	4(%r12), %edi
	callq	_le16_to_cpu
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_info
	movq	_speed@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_MAX_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_RESTRICT_TO_RANGE
	movl	(%rbx), %esi
	cmpl	$8, %esi
	jne	LBB0_16
## %bb.2:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	$-1, -52(%rbp)                  ## 4-byte Folded Spill
	movl	$16, %r13d
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$24, %r13
	cmpq	$208, %r13
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_24
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r14
	movl	-12(%r14,%r13), %edx
	cmpl	$2, %edx
	jne	LBB0_21
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-16(%r14,%r13), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	(%r14,%r13), %r12
	leaq	8(%r12), %r15
	movl	8(%r12), %ebx
	movl	12(%r12), %edi
	callq	_le16_to_cpu
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DEBUG
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	testb	%bl, %bl
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%bl, %eax
	cmpl	%eax, (%r15)
	je	LBB0_8
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%r15), %ebx
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_usb_endpoint_xfer_isoc
	testl	%eax, %eax
	je	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_usb_endpoint_dir_out
	testq	%rax, %rax
	jne	LBB0_23
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%r12), %edi
	callq	_le16_to_cpu
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_spd_to_iface@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_speed@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	cmpl	(%rax,%rcx,4), %edx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmovel	%edx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jns	LBB0_34
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	12(%r12), %edi
	callq	_le16_to_cpu
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_3
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%r12), %edi
	callq	_le16_to_cpu
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_16:
	leaq	L_.str.2(%rip), %rdi
LBB0_17:
	xorl	%eax, %eax
	callq	_err
LBB0_18:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_19:
	subl	(%rax), %r15d
LBB0_20:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	-8(%r14,%r13), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_18
LBB0_22:
	movl	-8(%r14,%r13), %esi
	leaq	L_.str.6(%rip), %rdi
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_23:
	movl	-8(%r14,%r13), %esi
	leaq	L_.str.7(%rip), %rdi
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_24:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	$-1, %edx
	je	LBB0_35
## %bb.25:
	leaq	L_.str.10(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$1, %edi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_DEBUG
	movq	_cams@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usbvideo_AllocateDevice
	testq	%rax, %rax
	je	LBB0_32
## %bb.26:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	88(%rax), %r14
	movq	_USBVIDEO_NUMSBUF@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_30
## %bb.27:
	xorl	%ebx, %ebx
	movq	_FRAMES_PER_DESC@GOTPCREL(%rip), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movl	(%r13), %esi
	callq	_usb_alloc_urb
	movq	%r14, %rdx
	movq	24(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	24(%r14), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_37
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	incq	%rbx
	movq	_USBVIDEO_NUMSBUF@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_28
LBB0_30:
	movq	_speed@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r14, %r13
	movq	%rax, (%r14)
	movq	_size@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_SIZE_160X120@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SIZE_320X240@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_RESTRICT_TO_RANGE
	movq	_camera_sizes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movl	(%rax,%rcx,8), %edx
	movl	%edx, 8(%r13)
	movl	4(%rax,%rcx,8), %eax
	movl	%eax, 12(%r13)
	movq	%rcx, 16(%r13)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	$0, 80(%rbx)
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, 64(%rbx)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rax
	movl	8(%rax), %eax
	movl	%eax, 56(%rbx)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movb	%al, 8(%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%rbx)
	movq	_VIDEO_PALETTE_YUV420P@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	$1, %eax
	shlq	%cl, %rax
	movq	%rax, 16(%rbx)
	movq	%rcx, 24(%rbx)
	movl	$320, %edi                      ## imm = 0x140
	movl	$240, %esi
	callq	_VIDEOSIZE
	movq	%rax, 48(%rbx)
	movl	8(%r13), %edi
	movl	12(%r13), %esi
	callq	_VIDEOSIZE
	movq	%rax, 40(%rbx)
	movq	%rbx, %rdi
	callq	_konicawc_configure_video
	movq	%rbx, %rdi
	callq	_usbvideo_RegisterVideoDevice
	movl	$115200, 32(%rbx)               ## imm = 0x1C200
	testl	%eax, %eax
	je	LBB0_41
## %bb.31:
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_konicawc_register_input
LBB0_32:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_33:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_36
LBB0_34:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_36
LBB0_35:
	leaq	L_.str.9(%rip), %rdi
LBB0_36:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_18
LBB0_37:
	testl	%ebx, %ebx
	je	LBB0_40
## %bb.38:
	movq	-8(%rax,%rbx,8), %rdi
	callq	_usb_free_urb
	cmpq	$1, %rbx
	je	LBB0_40
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movq	-16(%rax,%rbx,8), %rdi
	callq	_usb_free_urb
	decq	%rbx
	cmpq	$1, %rbx
	jne	LBB0_39
LBB0_40:
	leaq	L_.str.11(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_41:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_konicawc_register_input
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_usb_set_intfdata
	xorl	%r15d, %r15d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"konicawc_probe(%p)"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Konica Webcam (rev. 0x%04x)\n"

	.comm	_speed,8,3                      ## @speed
	.comm	_MAX_SPEED,4,2                  ## @MAX_SPEED
L_.str.2:                               ## @.str.2
	.asciz	"Incorrect number of alternate settings (%d) for this camera!"

L_.str.3:                               ## @.str.3
	.asciz	"Interface %d. has %u. endpoints!"

L_.str.4:                               ## @.str.4
	.asciz	"found endpoint: addr: 0x%2.2x maxps = 0x%4.4x"

L_.str.5:                               ## @.str.5
	.asciz	"Alternate settings have different endpoint addresses!"

L_.str.6:                               ## @.str.6
	.asciz	"Interface %d. has non-ISO endpoint!"

L_.str.7:                               ## @.str.7
	.asciz	"Interface %d. has ISO OUT endpoint!"

L_.str.8:                               ## @.str.8
	.asciz	"More than one inactive alt. setting!"

	.comm	_spd_to_iface,8,3               ## @spd_to_iface
L_.str.9:                               ## @.str.9
	.asciz	"Cant find required endpoint"

L_.str.10:                              ## @.str.10
	.asciz	"Selecting requested active setting=%d. maxPS=%d."

	.comm	_cams,4,2                       ## @cams
	.comm	_USBVIDEO_NUMSBUF,4,2           ## @USBVIDEO_NUMSBUF
	.comm	_FRAMES_PER_DESC,4,2            ## @FRAMES_PER_DESC
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.11:                              ## @.str.11
	.asciz	"can't allocate urbs"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_size,8,3                       ## @size
	.comm	_SIZE_160X120,4,2               ## @SIZE_160X120
	.comm	_SIZE_320X240,4,2               ## @SIZE_320X240
	.comm	_camera_sizes,8,3               ## @camera_sizes
	.comm	_debug,4,2                      ## @debug
	.comm	_VIDEO_PALETTE_YUV420P,8,3      ## @VIDEO_PALETTE_YUV420P
L_.str.12:                              ## @.str.12
	.asciz	"usbvideo_RegisterVideoDevice() failed."

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_konicawc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function konicawc_probe
_konicawc_probe:                        ; @konicawc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x0
	bl	_interface_to_usbdev
	mov	x20, x0
	str	x19, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_DEBUG
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_17
; %bb.1:
	add	x21, x19, #16
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_info
Lloh4:
	adrp	x8, _speed@GOTPAGE
Lloh5:
	ldr	x8, [x8, _speed@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
Lloh7:
	adrp	x8, _MAX_SPEED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX_SPEED@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_RESTRICT_TO_RANGE
	ldr	w8, [x19]
	cmp	w8, #8
	b.ne	LBB0_15
; %bb.2:
	mov	x28, #0
	mov	w24, #0
	mov	w21, #0
	mov	w27, #-1
	mov	w8, #-1
	stp	x20, x8, [sp, #16]              ; 16-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #24
	mov	x27, x26
	cmp	x28, #192
	b.eq	LBB0_23
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x19, #8]
	add	x9, x20, x28
	ldr	w8, [x9, #4]
	cmp	w8, #2
	b.ne	LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w26, [x9]
	ldr	x22, [x9, #16]
	mov	x23, x22
	ldr	w25, [x23, #8]!
	ldr	w0, [x22, #12]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x25, x0, [sp]
	mov	w0, #1
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_DEBUG
	cbz	w24, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	cmp	w8, w24
	b.eq	LBB0_8
	b	LBB0_32
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w24, [x23]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_usb_endpoint_xfer_isoc
	cbz	w0, LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_usb_endpoint_dir_out
	cbnz	x0, LBB0_22
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22, #12]
	bl	_le16_to_cpu
	cbz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh12:
	adrp	x8, _spd_to_iface@GOTPAGE
Lloh13:
	ldr	x8, [x8, _spd_to_iface@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _speed@GOTPAGE
Lloh16:
	ldr	x9, [x9, _speed@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w26, w8
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	csel	w8, w26, w8, eq
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	mov	x26, x27
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w27, #31, LBB0_33
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22, #12]
	bl	_le16_to_cpu
	cmp	w0, w21
	b.le	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22, #12]
	bl	_le16_to_cpu
	mov	x21, x0
	b	LBB0_3
LBB0_15:
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_16:
	bl	_err
LBB0_17:
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_20:
	ldr	w9, [x9, #8]
	stp	x9, x8, [sp]
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_21:
	add	x8, x20, x28
	ldr	w8, [x8, #8]
	str	x8, [sp]
Lloh24:
	adrp	x0, l_.str.6@PAGE
Lloh25:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_16
LBB0_22:
	add	x8, x20, x28
	ldr	w8, [x8, #8]
	str	x8, [sp]
Lloh26:
	adrp	x0, l_.str.7@PAGE
Lloh27:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_16
LBB0_23:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmn	w8, #1
	b.eq	LBB0_34
; %bb.24:
	stp	x8, x21, [sp]
Lloh28:
	adrp	x1, l_.str.10@PAGE
Lloh29:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w0, #1
	bl	_DEBUG
Lloh30:
	adrp	x8, _cams@GOTPAGE
Lloh31:
	ldr	x8, [x8, _cams@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_usbvideo_AllocateDevice
	cbz	x0, LBB0_31
; %bb.25:
	mov	x23, x0
	ldr	x22, [x0, #88]
Lloh33:
	adrp	x25, _USBVIDEO_NUMSBUF@GOTPAGE
Lloh34:
	ldr	x25, [x25, _USBVIDEO_NUMSBUF@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.26:
	mov	x20, #0
Lloh35:
	adrp	x28, _FRAMES_PER_DESC@GOTPAGE
Lloh36:
	ldr	x28, [x28, _FRAMES_PER_DESC@GOTPAGEOFF]
Lloh37:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh38:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28]
	ldr	w1, [x27]
	bl	_usb_alloc_urb
	ldr	x8, [x22, #24]
	lsl	x9, x20, #3
	str	x0, [x8, x9]
	ldr	x8, [x22, #24]
	ldr	x9, [x8, x9]
	cbz	x9, LBB0_35
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x25]
	cmp	x20, x8
	b.lt	LBB0_27
LBB0_29:
Lloh39:
	adrp	x8, _speed@GOTPAGE
Lloh40:
	ldr	x8, [x8, _speed@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	str	x8, [x22]
Lloh42:
	adrp	x20, _size@GOTPAGE
Lloh43:
	ldr	x20, [x20, _size@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh44:
	adrp	x8, _SIZE_160X120@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SIZE_160X120@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x8, _SIZE_320X240@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SIZE_320X240@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	bl	_RESTRICT_TO_RANGE
Lloh50:
	adrp	x8, _camera_sizes@GOTPAGE
Lloh51:
	ldr	x8, [x8, _camera_sizes@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	d0, [x8, x9, lsl #3]
	str	d0, [x22, #8]
	str	x9, [x22, #16]
Lloh53:
	adrp	x8, _debug@GOTPAGE
Lloh54:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
	str	xzr, [x23, #80]
Lloh55:
	ldr	w8, [x8]
	str	w8, [x23, #72]
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	str	x20, [x23, #64]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #8]
	str	w8, [x23, #56]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	stp	w26, w8, [x23]
	strb	w24, [x23, #8]
Lloh56:
	adrp	x8, _VIDEO_PALETTE_YUV420P@GOTPAGE
Lloh57:
	ldr	x8, [x8, _VIDEO_PALETTE_YUV420P@GOTPAGEOFF]
	str	w21, [x23, #12]
Lloh58:
	ldr	x8, [x8]
	mov	w9, #1
	lsl	x9, x9, x8
	stp	x9, x8, [x23, #16]
	mov	w0, #320
	mov	w1, #240
	bl	_VIDEOSIZE
	str	x0, [x23, #48]
	ldp	w0, w1, [x22, #8]
	bl	_VIDEOSIZE
	str	x0, [x23, #40]
	mov	x0, x23
	bl	_konicawc_configure_video
	mov	x0, x23
	bl	_usbvideo_RegisterVideoDevice
	mov	w8, #49664
	movk	w8, #1, lsl #16
	str	w8, [x23, #32]
	cbz	w0, LBB0_40
; %bb.30:
Lloh59:
	adrp	x0, l_.str.12@PAGE
Lloh60:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_err
	mov	x0, x22
	mov	x1, x20
	bl	_konicawc_register_input
LBB0_31:
Lloh61:
	adrp	x8, _EIO@GOTPAGE
Lloh62:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_18
LBB0_32:
Lloh63:
	adrp	x0, l_.str.5@PAGE
Lloh64:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_33:
Lloh65:
	adrp	x0, l_.str.8@PAGE
Lloh66:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_16
LBB0_34:
Lloh67:
	adrp	x0, l_.str.9@PAGE
Lloh68:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_16
LBB0_35:
	cbz	w20, LBB0_39
; %bb.36:
	add	x8, x8, x20, lsl #3
	ldur	x0, [x8, #-8]
	bl	_usb_free_urb
	cmp	x20, #1
	b.eq	LBB0_39
; %bb.37:
	sub	x19, x20, #2
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #24]
	ldr	x0, [x8, x19, lsl #3]
	bl	_usb_free_urb
	sub	x19, x19, #1
	cmn	x19, #1
	b.ne	LBB0_38
LBB0_39:
Lloh69:
	adrp	x0, l_.str.11@PAGE
Lloh70:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_err
Lloh71:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh72:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_18
LBB0_40:
	mov	x0, x22
	mov	x1, x20
	bl	_konicawc_register_input
	mov	x0, x19
	mov	x1, x23
	bl	_usb_set_intfdata
	mov	w0, #0
	b	LBB0_19
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpAdd	Lloh69, Lloh70
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"konicawc_probe(%p)"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Konica Webcam (rev. 0x%04x)\n"

	.comm	_speed,8,3                      ; @speed
	.comm	_MAX_SPEED,4,2                  ; @MAX_SPEED
l_.str.2:                               ; @.str.2
	.asciz	"Incorrect number of alternate settings (%d) for this camera!"

l_.str.3:                               ; @.str.3
	.asciz	"Interface %d. has %u. endpoints!"

l_.str.4:                               ; @.str.4
	.asciz	"found endpoint: addr: 0x%2.2x maxps = 0x%4.4x"

l_.str.5:                               ; @.str.5
	.asciz	"Alternate settings have different endpoint addresses!"

l_.str.6:                               ; @.str.6
	.asciz	"Interface %d. has non-ISO endpoint!"

l_.str.7:                               ; @.str.7
	.asciz	"Interface %d. has ISO OUT endpoint!"

l_.str.8:                               ; @.str.8
	.asciz	"More than one inactive alt. setting!"

	.comm	_spd_to_iface,8,3               ; @spd_to_iface
l_.str.9:                               ; @.str.9
	.asciz	"Cant find required endpoint"

l_.str.10:                              ; @.str.10
	.asciz	"Selecting requested active setting=%d. maxPS=%d."

	.comm	_cams,4,2                       ; @cams
	.comm	_USBVIDEO_NUMSBUF,4,2           ; @USBVIDEO_NUMSBUF
	.comm	_FRAMES_PER_DESC,4,2            ; @FRAMES_PER_DESC
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.11:                              ; @.str.11
	.asciz	"can't allocate urbs"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_size,8,3                       ; @size
	.comm	_SIZE_160X120,4,2               ; @SIZE_160X120
	.comm	_SIZE_320X240,4,2               ; @SIZE_320X240
	.comm	_camera_sizes,8,3               ; @camera_sizes
	.comm	_debug,4,2                      ; @debug
	.comm	_VIDEO_PALETTE_YUV420P,8,3      ; @VIDEO_PALETTE_YUV420P
l_.str.12:                              ; @.str.12
	.asciz	"usbvideo_RegisterVideoDevice() failed."

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_konicawc_probe
.subsections_via_symbols
