	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s2255_probe
_s2255_probe:                           ## @s2255_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	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	subl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$104, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_S2255_CMDBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_kzalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	100(%r12), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	(%r13), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	16(%r12), %r15
	movq	%r15, %rdi
	callq	_mutex_init
	leaq	96(%r12), %rdi
	callq	_mutex_init
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_interface_to_usbdev
	movl	%eax, %edi
	callq	_usb_get_dev
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movq	%rax, %rcx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%rbx, 88(%r12)
	movq	8(%rbx), %r14
	movl	8(%r14), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$0, 8(%r14)
	jle	LBB0_14
## %bb.9:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movslq	8(%r14), %rax
	addq	$8, %r15
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 80(%r12)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r14), %r13
	leaq	(%r15,%r13), %rdi
	callq	_usb_endpoint_is_bulk_in
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13,%r15), %rax
	movq	%rax, 80(%r12)
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_s2255_dev_err
	subl	(%r15), %ebx
	jmp	LBB0_43
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_s2255_dev_err
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_42
LBB0_14:
	cmpq	$0, 80(%r12)
	je	LBB0_15
## %bb.16:
	movq	%r12, %rdi
	addq	$40, %rdi
	movq	_s2255_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_timer_setup
	movq	24(%r12), %rdi
	addq	$72, %rdi
	callq	_init_waitqueue_head
	movq	_MAX_CHANNELS@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_19
## %bb.17:
	movl	$12, %r14d
	xorl	%r15d, %r15d
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	64(%r12), %rbx
	leaq	(%rbx,%r14), %r13
	movl	%r15d, -12(%rbx,%r14)
	movq	%r12, 12(%rbx,%r14)
	leaq	(%rbx,%r14), %rdi
	addq	$4, %rdi
	movq	%rcx, %r12
	callq	_init_waitqueue_head
	movq	%r13, %rdi
	callq	_init_waitqueue_head
	leaq	(%rbx,%r14), %rdi
	addq	$-4, %rdi
	callq	_spin_lock_init
	leaq	(%rbx,%r14), %rdi
	addq	$-8, %rdi
	callq	_mutex_init
	movq	%r12, %rcx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	incq	%r15
	movslq	(%rcx), %rax
	addq	$32, %r14
	cmpq	%rax, %r15
	jl	LBB0_18
LBB0_19:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	24(%r12), %rcx
	movl	%eax, 44(%rcx)
	testl	%eax, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_20
## %bb.21:
	movq	_CHUNK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	24(%r12), %rdi
	movq	%rax, 48(%rdi)
	testq	%rax, %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_22
## %bb.23:
	addq	$56, %rdi
	movq	_FIRMWARE_FILE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%r12), %rdx
	callq	_request_firmware
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_37
LBB0_5:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_42
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_41
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_40
LBB0_20:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_39
LBB0_22:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_38
LBB0_25:
	movq	24(%r12), %rax
	movq	56(%rax), %rax
	movslq	(%rax), %r14
	movq	8(%rax), %rbx
	movq	-32(%rbx,%r14,4), %rax
	movq	_S2255_FW_MARKER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.27:
	movq	-16(%rbx,%r14,4), %rdi
	callq	_le32_to_cpu
	leaq	L_.str.8(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_info
	movq	-16(%rbx,%r14,4), %rdi
	callq	_le32_to_cpu
	movl	%eax, 4(%r12)
	movq	_S2255_CUR_DSP_FWVER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_29
## %bb.28:
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_29:
	cmpl	$8791, (%r12)                   ## imm = 0x2257
	jne	LBB0_32
## %bb.30:
	movq	_S2255_MIN_DSP_COLORFILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%esi, 4(%r12)
	jge	LBB0_32
## %bb.31:
	leaq	L_.str.10(%rip), %rdi
	callq	_pr_warn
LBB0_32:
	movq	32(%r12), %rdi
	callq	_usb_reset_device
	movq	%r12, %rdi
	callq	_s2255_board_init
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_35
## %bb.33:
	movq	%r12, %rdi
	callq	_s2255_fwload_start
	movq	%r12, %rdi
	callq	_s2255_probe_v4l
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_34
LBB0_35:
	movq	%r12, %rdi
	callq	_s2255_board_shutdown
	jmp	LBB0_36
LBB0_26:
	leaq	L_.str.7(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_36:
	movq	24(%r12), %rax
	movq	56(%rax), %rdi
	callq	_release_firmware
LBB0_37:
	movq	24(%r12), %rax
	movq	48(%rax), %rdi
	callq	_kfree
LBB0_38:
	movq	24(%r12), %rax
	movl	44(%rax), %edi
	callq	_usb_free_urb
LBB0_39:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_del_timer_sync
LBB0_40:
	movq	32(%r12), %rdi
	callq	_usb_put_dev
LBB0_41:
	movq	24(%r12), %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_mutex_destroy
LBB0_42:
	movq	8(%r12), %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
	leaq	L_.str.12(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_warn
LBB0_43:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_43
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory\n"

	.comm	_S2255_CMDBUF_SIZE,4,2          ## @S2255_CMDBUF_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"null usb device\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"dev: %p, udev %p interface %p\n"

L_.str.3:                               ## @.str.3
	.asciz	"num EP: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Could not find bulk-in endpoint\n"

	.comm	_s2255_timer,4,2                ## @s2255_timer
	.comm	_MAX_CHANNELS,4,2               ## @MAX_CHANNELS
	.comm	_CHUNK_SIZE,4,2                 ## @CHUNK_SIZE
L_.str.5:                               ## @.str.5
	.asciz	"out of memory!\n"

	.comm	_FIRMWARE_FILE_NAME,4,2         ## @FIRMWARE_FILE_NAME
L_.str.6:                               ## @.str.6
	.asciz	"sensoray 2255 failed to get firmware\n"

	.comm	_S2255_FW_MARKER,8,3            ## @S2255_FW_MARKER
L_.str.7:                               ## @.str.7
	.asciz	"Firmware invalid.\n"

L_.str.8:                               ## @.str.8
	.asciz	"s2255 dsp fw version %x\n"

	.comm	_S2255_CUR_DSP_FWVER,4,2        ## @S2255_CUR_DSP_FWVER
L_.str.9:                               ## @.str.9
	.asciz	"s2255: f2255usb.bin out of date.\n"

	.comm	_S2255_MIN_DSP_COLORFILTER,4,2  ## @S2255_MIN_DSP_COLORFILTER
L_.str.10:                              ## @.str.10
	.asciz	"2257 needs firmware %d or above.\n"

L_.str.11:                              ## @.str.11
	.asciz	"Sensoray 2255 detected\n"

L_.str.12:                              ## @.str.12
	.asciz	"Sensoray 2255 driver load failed: 0x%x\n"

	.no_dead_strip	_s2255_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s2255_probe
_s2255_probe:                           ; @s2255_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	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x21, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ENOMEM@GOTPAGEOFF]
	ldr	w23, [x21]
Lloh2:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #104
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	neg	w21, w23
Lloh4:
	adrp	x8, _S2255_CMDBUF_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S2255_CMDBUF_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w1, [x24]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.2:
	add	x0, x19, #100
	mov	w1, #0
	bl	_atomic_set
	ldr	w8, [x20]
	str	w8, [x19]
	ldr	w1, [x24]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_39
; %bb.3:
	add	x20, x19, #16
	mov	x0, x20
	bl	_mutex_init
	add	x0, x19, #96
	bl	_mutex_init
	mov	x0, x22
	bl	_interface_to_usbdev
	bl	_usb_get_dev
	str	x0, [x19, #32]
	cbz	x0, LBB0_20
; %bb.4:
	stp	x0, x22, [sp, #8]
	str	x19, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
	str	x22, [x19, #88]
	ldr	x23, [x22, #8]
	ldr	w8, [x23, #8]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
	ldr	w8, [x23, #8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.5:
	mov	x25, #0
	mov	x26, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x23, #8]
	add	x25, x25, #8
	cmp	x26, x8
	b.ge	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #80]
	cbnz	x8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x27, [x23]
	add	x0, x27, x25
	bl	_usb_endpoint_is_bulk_in
	cbz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x27, x25]
	str	x8, [x19, #80]
	b	LBB0_6
LBB0_10:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_s2255_dev_err
	ldr	w8, [x21]
	neg	w21, w8
	b	LBB0_40
LBB0_11:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_s2255_dev_err
	b	LBB0_39
LBB0_12:
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_21
; %bb.13:
	add	x23, x19, #40
Lloh15:
	adrp	x8, _s2255_timer@GOTPAGE
Lloh16:
	ldr	x8, [x8, _s2255_timer@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x23
	mov	w2, #0
	bl	_timer_setup
	ldr	x8, [x19, #24]
	add	x0, x8, #72
	bl	_init_waitqueue_head
Lloh18:
	adrp	x25, _MAX_CHANNELS@GOTPAGE
Lloh19:
	ldr	x25, [x25, _MAX_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x26, #0
	mov	x27, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #64]
	add	x28, x8, x26
	str	w27, [x28]
	str	x19, [x28, #24]
	add	x0, x28, #16
	bl	_init_waitqueue_head
	add	x0, x28, #12
	bl	_init_waitqueue_head
	add	x0, x28, #8
	bl	_spin_lock_init
	add	x0, x28, #4
	bl	_mutex_init
	add	x27, x27, #1
	ldrsw	x8, [x25]
	add	x26, x26, #32
	cmp	x27, x8
	b.lt	LBB0_15
LBB0_16:
	ldr	w1, [x24]
	mov	w0, #0
	bl	_usb_alloc_urb
	ldr	x8, [x19, #24]
	str	w0, [x8, #44]
	cbz	w0, LBB0_36
; %bb.17:
Lloh20:
	adrp	x8, _CHUNK_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CHUNK_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w1, [x24]
	bl	_kzalloc
	ldr	x8, [x19, #24]
	str	x0, [x8, #48]
	cbz	x0, LBB0_22
; %bb.18:
	add	x0, x8, #56
Lloh23:
	adrp	x8, _FIRMWARE_FILE_NAME@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FIRMWARE_FILE_NAME@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	x2, [x19, #32]
	bl	_request_firmware
	cbz	x0, LBB0_23
; %bb.19:
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_34
LBB0_20:
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_err
Lloh30:
	adrp	x8, _ENODEV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_38
LBB0_21:
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_37
LBB0_22:
Lloh35:
	adrp	x1, l_.str.5@PAGE
Lloh36:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_35
LBB0_23:
	ldr	x8, [x19, #24]
	ldr	x9, [x8, #56]
	ldr	w8, [x9]
	ldr	x21, [x9, #8]
	sub	w9, w8, #8
	sbfiz	x9, x9, #2, #32
	ldr	x9, [x21, x9]
Lloh37:
	adrp	x10, _S2255_FW_MARKER@GOTPAGE
Lloh38:
	ldr	x10, [x10, _S2255_FW_MARKER@GOTPAGEOFF]
Lloh39:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_32
; %bb.24:
	sub	w8, w8, #4
	sbfiz	x24, x8, #2, #32
	ldr	x0, [x21, x24]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh40:
	adrp	x0, l_.str.8@PAGE
Lloh41:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_pr_info
	ldr	x0, [x21, x24]
	bl	_le32_to_cpu
	str	w0, [x19, #4]
Lloh42:
	adrp	x8, _S2255_CUR_DSP_FWVER@GOTPAGE
Lloh43:
	ldr	x8, [x8, _S2255_CUR_DSP_FWVER@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_26
; %bb.25:
Lloh45:
	adrp	x0, l_.str.9@PAGE
Lloh46:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_pr_info
LBB0_26:
	ldr	w8, [x19]
	mov	w9, #8791
	cmp	w8, w9
	b.ne	LBB0_29
; %bb.27:
	ldr	w8, [x19, #4]
Lloh47:
	adrp	x9, _S2255_MIN_DSP_COLORFILTER@GOTPAGE
Lloh48:
	ldr	x9, [x9, _S2255_MIN_DSP_COLORFILTER@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x9]
	cmp	w8, w1
	b.ge	LBB0_29
; %bb.28:
Lloh50:
	adrp	x0, l_.str.10@PAGE
Lloh51:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_pr_warn
LBB0_29:
	ldr	x0, [x19, #32]
	bl	_usb_reset_device
	mov	x0, x19
	bl	_s2255_board_init
	mov	x21, x0
	cbnz	w0, LBB0_31
; %bb.30:
	mov	x0, x19
	bl	_s2255_fwload_start
	mov	x0, x19
	bl	_s2255_probe_v4l
	mov	x21, x0
	cbz	w0, LBB0_41
LBB0_31:
	mov	x0, x19
	bl	_s2255_board_shutdown
	b	LBB0_33
LBB0_32:
Lloh52:
	adrp	x1, l_.str.7@PAGE
Lloh53:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	bl	_dev_err
Lloh54:
	adrp	x8, _ENODEV@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_33:
	ldr	x8, [x19, #24]
	ldr	x0, [x8, #56]
	bl	_release_firmware
LBB0_34:
	ldr	x8, [x19, #24]
	ldr	x0, [x8, #48]
	bl	_kfree
LBB0_35:
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #44]
	bl	_usb_free_urb
LBB0_36:
	mov	x0, x23
	bl	_del_timer_sync
LBB0_37:
	ldr	x0, [x19, #32]
	bl	_usb_put_dev
LBB0_38:
	ldr	x0, [x19, #24]
	bl	_kfree
	mov	x0, x20
	bl	_mutex_destroy
LBB0_39:
	ldr	x0, [x19, #8]
	bl	_kfree
	mov	x0, x19
	bl	_kfree
Lloh57:
	adrp	x0, l_.str.12@PAGE
Lloh58:
	add	x0, x0, l_.str.12@PAGEOFF
	mov	x1, x21
	bl	_pr_warn
LBB0_40:
	mov	x0, x21
	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_41:
Lloh59:
	adrp	x1, l_.str.11@PAGE
Lloh60:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x22
	bl	_dev_info
	b	LBB0_40
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory\n"

	.comm	_S2255_CMDBUF_SIZE,4,2          ; @S2255_CMDBUF_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"null usb device\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"dev: %p, udev %p interface %p\n"

l_.str.3:                               ; @.str.3
	.asciz	"num EP: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Could not find bulk-in endpoint\n"

	.comm	_s2255_timer,4,2                ; @s2255_timer
	.comm	_MAX_CHANNELS,4,2               ; @MAX_CHANNELS
	.comm	_CHUNK_SIZE,4,2                 ; @CHUNK_SIZE
l_.str.5:                               ; @.str.5
	.asciz	"out of memory!\n"

	.comm	_FIRMWARE_FILE_NAME,4,2         ; @FIRMWARE_FILE_NAME
l_.str.6:                               ; @.str.6
	.asciz	"sensoray 2255 failed to get firmware\n"

	.comm	_S2255_FW_MARKER,8,3            ; @S2255_FW_MARKER
l_.str.7:                               ; @.str.7
	.asciz	"Firmware invalid.\n"

l_.str.8:                               ; @.str.8
	.asciz	"s2255 dsp fw version %x\n"

	.comm	_S2255_CUR_DSP_FWVER,4,2        ; @S2255_CUR_DSP_FWVER
l_.str.9:                               ; @.str.9
	.asciz	"s2255: f2255usb.bin out of date.\n"

	.comm	_S2255_MIN_DSP_COLORFILTER,4,2  ; @S2255_MIN_DSP_COLORFILTER
l_.str.10:                              ; @.str.10
	.asciz	"2257 needs firmware %d or above.\n"

l_.str.11:                              ; @.str.11
	.asciz	"Sensoray 2255 detected\n"

l_.str.12:                              ; @.str.12
	.asciz	"Sensoray 2255 driver load failed: 0x%x\n"

	.no_dead_strip	_s2255_probe
.subsections_via_symbols
