	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sur40_probe
_sur40_probe:                           ## @sur40_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, %r15
	callq	_interface_to_usbdev
	movq	%rax, %rbx
	movq	8(%r15), %rax
	cmpl	$255, 8(%rax)
	jne	LBB0_1
## %bb.3:
	cmpl	$4, 12(%rax)
	jle	LBB0_1
## %bb.4:
	movq	(%rax), %r13
	movq	32(%r13), %rax
	movq	_TOUCH_ENDPOINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$152, %edi
	callq	_kzalloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_input_allocate_polled_device
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r14
	addq	$32, %r13
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	leaq	144(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	140(%r12), %rdi
	callq	_spin_lock_init
	leaq	104(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_init
	movq	%r12, 24(%r14)
	movq	_POLL_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_sur40_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_sur40_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_sur40_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	(%r14), %rdi
	callq	_sur40_input_setup
	movq	_DRIVER_LONG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rsi
	movq	%rax, (%rsi)
	addq	$20, %rsi
	movq	%rbx, %rdi
	callq	_usb_to_input_id
	movl	136(%r12), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_usb_make_path
	movl	136(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strlcat
	movl	136(%r12), %eax
	movq	(%r14), %rcx
	movl	%eax, 16(%rcx)
	movq	%r15, 8(%rcx)
	movq	%rbx, 128(%r12)
	movq	%r15, 112(%r12)
	movq	%r14, 16(%r12)
	movq	%r13, %rdi
	callq	_usb_endpoint_maxp
	movl	%eax, 120(%r12)
	movq	(%r13), %rcx
	movq	%r12, %rbx
	movq	%rcx, (%r12)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kmalloc
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	callq	_input_register_polled_device
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_22
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_25:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_23
LBB0_13:
	leaq	32(%rbx), %r14
	movl	40(%rbx), %edi
	movq	_DRIVER_LONG@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.3(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	112(%rbx), %rdi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_v4l2_device_register
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_21
LBB0_15:
	leaq	80(%rbx), %r13
	movq	%rbx, 96(%rbx)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, 88(%rbx)
	movq	112(%rbx), %rax
	movq	%rax, 80(%rbx)
	movq	%r13, %rdi
	callq	_vb2_queue_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.16:
	movq	_sur40_pix_format@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%rbx)
	leaq	48(%rbx), %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 64(%rbx)
	movq	%r14, 56(%rbx)
	movq	%r13, 48(%rbx)
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_video_set_drvdata
	movq	%rbx, %r14
	movq	%rbx, %r13
	addq	$72, %r13
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_v4l2_ctrl_handler_init
	movq	%r13, 32(%rbx)
	movq	_SUR40_CONTRAST_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$4, %eax
	movq	_SUR40_GAIN_DEF@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%rbx)
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_SUR40_BRIGHTNESS_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_SUR40_BRIGHTNESS_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_brightness@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_clamp
	movl	%eax, (%rsp)
	movq	_sur40_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	movq	%rbx, %r8
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_SUR40_CONTRAST_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_SUR40_CONTRAST_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_contrast@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_clamp
	movl	%eax, (%rsp)
	movq	%r13, %rdi
	movq	_sur40_ctrl_ops@GOTPCREL(%rip), %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	movq	%r12, %r8
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_SUR40_GAIN_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_SUR40_GAIN_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_gain@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_clamp
	movl	%eax, (%rsp)
	movq	%r13, %rdi
	movq	_sur40_ctrl_ops@GOTPCREL(%rip), %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	movq	%r12, %r8
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_BACKLIGHT_COMPENSATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SUR40_BACKLIGHT_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_SUR40_BACKLIGHT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_SUR40_BACKLIGHT_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r13, %rdi
	movq	_sur40_ctrl_ops@GOTPCREL(%rip), %rsi
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%r13, %rdi
	callq	_v4l2_ctrl_handler_setup
	cmpq	$0, 72(%r14)
	je	LBB0_18
## %bb.17:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	%r13, %rdi
	callq	_v4l2_ctrl_handler_free
	xorl	%r12d, %r12d
	jmp	LBB0_20
LBB0_18:
	movq	_VFL_TYPE_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_video_register_device
	testl	%eax, %eax
	je	LBB0_26
## %bb.19:
	movl	%eax, %r12d
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_video_unregister_device
LBB0_20:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_21:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_v4l2_device_unregister
LBB0_22:
	movq	24(%rbx), %rdi
	callq	_kfree
LBB0_23:
	movq	16(%rbx), %rdi
	callq	_input_free_polled_device
LBB0_24:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_25
LBB0_26:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_usb_set_intfdata
	movq	_DRIVER_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	xorl	%r12d, %r12d
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_TOUCH_ENDPOINT,8,3             ## @TOUCH_ENDPOINT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_POLL_INTERVAL,4,2              ## @POLL_INTERVAL
	.comm	_sur40_open,4,2                 ## @sur40_open
	.comm	_sur40_poll,4,2                 ## @sur40_poll
	.comm	_sur40_close,4,2                ## @sur40_close
	.comm	_DRIVER_LONG,8,3                ## @DRIVER_LONG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/input0"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to allocate input buffer."

L_.str.2:                               ## @.str.2
	.asciz	"Unable to register polled input device."

L_.str.3:                               ## @.str.3
	.asciz	"%s"

L_.str.4:                               ## @.str.4
	.asciz	"Unable to register video master device."

	.comm	_sur40_queue,24,3               ## @sur40_queue
	.comm	_sur40_pix_format,8,3           ## @sur40_pix_format
	.comm	_sur40_video_device,24,3        ## @sur40_video_device
	.comm	_SUR40_CONTRAST_DEF,4,2         ## @SUR40_CONTRAST_DEF
	.comm	_SUR40_GAIN_DEF,4,2             ## @SUR40_GAIN_DEF
	.comm	_sur40_ctrl_ops,4,2             ## @sur40_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ## @V4L2_CID_BRIGHTNESS
	.comm	_SUR40_BRIGHTNESS_MIN,8,3       ## @SUR40_BRIGHTNESS_MIN
	.comm	_SUR40_BRIGHTNESS_MAX,8,3       ## @SUR40_BRIGHTNESS_MAX
	.comm	_brightness,4,2                 ## @brightness
	.comm	_V4L2_CID_CONTRAST,4,2          ## @V4L2_CID_CONTRAST
	.comm	_SUR40_CONTRAST_MIN,8,3         ## @SUR40_CONTRAST_MIN
	.comm	_SUR40_CONTRAST_MAX,8,3         ## @SUR40_CONTRAST_MAX
	.comm	_contrast,4,2                   ## @contrast
	.comm	_V4L2_CID_GAIN,4,2              ## @V4L2_CID_GAIN
	.comm	_SUR40_GAIN_MIN,8,3             ## @SUR40_GAIN_MIN
	.comm	_SUR40_GAIN_MAX,8,3             ## @SUR40_GAIN_MAX
	.comm	_gain,4,2                       ## @gain
	.comm	_V4L2_CID_BACKLIGHT_COMPENSATION,4,2 ## @V4L2_CID_BACKLIGHT_COMPENSATION
	.comm	_SUR40_BACKLIGHT_MIN,8,3        ## @SUR40_BACKLIGHT_MIN
	.comm	_SUR40_BACKLIGHT_MAX,8,3        ## @SUR40_BACKLIGHT_MAX
	.comm	_SUR40_BACKLIGHT_DEF,4,2        ## @SUR40_BACKLIGHT_DEF
L_.str.5:                               ## @.str.5
	.asciz	"Unable to register video controls."

	.comm	_VFL_TYPE_TOUCH,4,2             ## @VFL_TYPE_TOUCH
L_.str.6:                               ## @.str.6
	.asciz	"Unable to register video subdevice."

L_.str.7:                               ## @.str.7
	.asciz	"%s is now attached\n"

	.comm	_DRIVER_DESC,4,2                ## @DRIVER_DESC
	.no_dead_strip	_sur40_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sur40_probe
_sur40_probe:                           ; @sur40_probe
	.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	x20, x0
	bl	_interface_to_usbdev
	ldr	x8, [x20, #8]
	ldr	w9, [x8, #8]
	cmp	w9, #255
	b.ne	LBB0_8
; %bb.1:
	ldr	w9, [x8, #12]
	cmp	w9, #4
	b.le	LBB0_8
; %bb.2:
	ldr	x22, [x8]
	ldr	x8, [x22, #32]!
Lloh0:
	adrp	x9, _TOUCH_ENDPOINT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TOUCH_ENDPOINT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	mov	x21, x0
Lloh3:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w0, #152
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x19, x0
	bl	_input_allocate_polled_device
	cbz	x0, LBB0_12
; %bb.5:
	mov	x24, x0
	add	x0, x19, #144
	bl	_INIT_LIST_HEAD
	add	x0, x19, #140
	bl	_spin_lock_init
	add	x23, x19, #104
	mov	x0, x23
	bl	_mutex_init
	str	x19, [x24, #24]
Lloh5:
	adrp	x8, _POLL_INTERVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _POLL_INTERVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _sur40_open@GOTPAGE
Lloh9:
	ldr	x9, [x9, _sur40_open@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x24, #16]
Lloh11:
	adrp	x8, _sur40_poll@GOTPAGE
Lloh12:
	ldr	x8, [x8, _sur40_poll@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _sur40_close@GOTPAGE
Lloh15:
	ldr	x9, [x9, _sur40_close@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x24, #8]
	ldr	x0, [x24]
	bl	_sur40_input_setup
Lloh17:
	adrp	x26, _DRIVER_LONG@GOTPAGE
Lloh18:
	ldr	x26, [x26, _DRIVER_LONG@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	x1, [x24]
	str	x8, [x1], #20
	mov	x0, x21
	bl	_usb_to_input_id
	ldr	w1, [x19, #136]
	mov	x0, x21
	mov	w2, #4
	bl	_usb_make_path
	ldr	w0, [x19, #136]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strlcat
	ldr	w8, [x19, #136]
	ldr	x9, [x24]
	str	w8, [x9, #16]
	str	x20, [x9, #8]
	str	x21, [x19, #128]
	str	x20, [x19, #112]
	str	x24, [x19, #16]
	mov	x0, x22
	bl	_usb_endpoint_maxp
	str	w0, [x19, #120]
	ldr	x8, [x22]
	str	x8, [x19]
	ldr	w1, [x25]
	bl	_kmalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_13
; %bb.6:
	mov	x0, x24
	bl	_input_register_polled_device
	cbz	w0, LBB0_14
; %bb.7:
	mov	x24, x0
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_22
LBB0_8:
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_10:
	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
	ret
LBB0_11:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_12:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_24
LBB0_13:
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_23
LBB0_14:
	add	x21, x19, #32
	ldr	w0, [x19, #40]
	ldr	x3, [x26]
Lloh35:
	adrp	x2, l_.str.3@PAGE
Lloh36:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	x0, [x19, #112]
	mov	x1, x21
	bl	_v4l2_device_register
	cbz	w0, LBB0_16
; %bb.15:
	mov	x24, x0
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_21
LBB0_16:
	ldr	x8, [x19, #112]
	mov	x25, x19
	str	x8, [x25, #80]!
	stp	x23, x19, [x19, #88]
	mov	x0, x25
	bl	_vb2_queue_init
	mov	x24, x0
	cbnz	w0, LBB0_21
; %bb.17:
Lloh39:
	adrp	x8, _sur40_pix_format@GOTPAGE
Lloh40:
	ldr	x8, [x8, _sur40_pix_format@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x19, #108]
	mov	x22, x19
	str	x25, [x22, #48]!
	stp	x23, x21, [x19, #56]
	mov	x0, x22
	mov	x1, x19
	bl	_video_set_drvdata
	add	x23, x19, #72
	mov	x0, x23
	mov	w1, #4
	bl	_v4l2_ctrl_handler_init
	str	x23, [x19, #32]
Lloh42:
	adrp	x8, _SUR40_CONTRAST_DEF@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SUR40_CONTRAST_DEF@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _SUR40_GAIN_DEF@GOTPAGE
Lloh46:
	ldr	x9, [x9, _SUR40_GAIN_DEF@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w8, w9, w8, lsl #4
	str	w8, [x19, #8]
Lloh48:
	adrp	x8, _V4L2_CID_BRIGHTNESS@GOTPAGE
Lloh49:
	ldr	x8, [x8, _V4L2_CID_BRIGHTNESS@GOTPAGEOFF]
Lloh50:
	ldr	w25, [x8]
Lloh51:
	adrp	x8, _SUR40_BRIGHTNESS_MIN@GOTPAGE
Lloh52:
	ldr	x8, [x8, _SUR40_BRIGHTNESS_MIN@GOTPAGEOFF]
Lloh53:
	ldr	x26, [x8]
Lloh54:
	adrp	x8, _SUR40_BRIGHTNESS_MAX@GOTPAGE
Lloh55:
	ldr	x8, [x8, _SUR40_BRIGHTNESS_MAX@GOTPAGEOFF]
Lloh56:
	ldr	x27, [x8]
Lloh57:
	adrp	x8, _brightness@GOTPAGE
Lloh58:
	ldr	x8, [x8, _brightness@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
	mov	x1, x26
	mov	x2, x27
	bl	_clamp
	mov	x6, x0
Lloh60:
	adrp	x24, _sur40_ctrl_ops@GOTPAGE
Lloh61:
	ldr	x24, [x24, _sur40_ctrl_ops@GOTPAGEOFF]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	mov	x4, x27
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
Lloh62:
	adrp	x8, _V4L2_CID_CONTRAST@GOTPAGE
Lloh63:
	ldr	x8, [x8, _V4L2_CID_CONTRAST@GOTPAGEOFF]
Lloh64:
	ldr	w25, [x8]
Lloh65:
	adrp	x8, _SUR40_CONTRAST_MIN@GOTPAGE
Lloh66:
	ldr	x8, [x8, _SUR40_CONTRAST_MIN@GOTPAGEOFF]
Lloh67:
	ldr	x26, [x8]
Lloh68:
	adrp	x8, _SUR40_CONTRAST_MAX@GOTPAGE
Lloh69:
	ldr	x8, [x8, _SUR40_CONTRAST_MAX@GOTPAGEOFF]
Lloh70:
	ldr	x27, [x8]
Lloh71:
	adrp	x8, _contrast@GOTPAGE
Lloh72:
	ldr	x8, [x8, _contrast@GOTPAGEOFF]
Lloh73:
	ldr	w0, [x8]
	mov	x1, x26
	mov	x2, x27
	bl	_clamp
	mov	x6, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	mov	x4, x27
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
Lloh74:
	adrp	x8, _V4L2_CID_GAIN@GOTPAGE
Lloh75:
	ldr	x8, [x8, _V4L2_CID_GAIN@GOTPAGEOFF]
Lloh76:
	ldr	w25, [x8]
Lloh77:
	adrp	x8, _SUR40_GAIN_MIN@GOTPAGE
Lloh78:
	ldr	x8, [x8, _SUR40_GAIN_MIN@GOTPAGEOFF]
Lloh79:
	ldr	x26, [x8]
Lloh80:
	adrp	x8, _SUR40_GAIN_MAX@GOTPAGE
Lloh81:
	ldr	x8, [x8, _SUR40_GAIN_MAX@GOTPAGEOFF]
Lloh82:
	ldr	x27, [x8]
Lloh83:
	adrp	x8, _gain@GOTPAGE
Lloh84:
	ldr	x8, [x8, _gain@GOTPAGEOFF]
Lloh85:
	ldr	w0, [x8]
	mov	x1, x26
	mov	x2, x27
	bl	_clamp
	mov	x6, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	mov	x4, x27
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
Lloh86:
	adrp	x8, _V4L2_CID_BACKLIGHT_COMPENSATION@GOTPAGE
Lloh87:
	ldr	x8, [x8, _V4L2_CID_BACKLIGHT_COMPENSATION@GOTPAGEOFF]
Lloh88:
	ldr	w2, [x8]
Lloh89:
	adrp	x8, _SUR40_BACKLIGHT_MIN@GOTPAGE
Lloh90:
	ldr	x8, [x8, _SUR40_BACKLIGHT_MIN@GOTPAGEOFF]
Lloh91:
	ldr	x3, [x8]
Lloh92:
	adrp	x8, _SUR40_BACKLIGHT_MAX@GOTPAGE
Lloh93:
	ldr	x8, [x8, _SUR40_BACKLIGHT_MAX@GOTPAGEOFF]
Lloh94:
	ldr	x4, [x8]
Lloh95:
	adrp	x8, _SUR40_BACKLIGHT_DEF@GOTPAGE
Lloh96:
	ldr	x8, [x8, _SUR40_BACKLIGHT_DEF@GOTPAGEOFF]
Lloh97:
	ldr	w6, [x8]
	mov	x0, x23
	mov	x1, x24
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
	mov	x0, x23
	bl	_v4l2_ctrl_handler_setup
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_19
; %bb.18:
Lloh98:
	adrp	x1, l_.str.5@PAGE
Lloh99:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x23
	bl	_v4l2_ctrl_handler_free
	mov	w24, #0
	b	LBB0_21
LBB0_19:
Lloh100:
	adrp	x8, _VFL_TYPE_TOUCH@GOTPAGE
Lloh101:
	ldr	x8, [x8, _VFL_TYPE_TOUCH@GOTPAGEOFF]
Lloh102:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #-1
	bl	_video_register_device
	mov	x24, x0
	cbz	w0, LBB0_25
; %bb.20:
Lloh103:
	adrp	x1, l_.str.6@PAGE
Lloh104:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x22
	bl	_video_unregister_device
LBB0_21:
	mov	x0, x21
	bl	_v4l2_device_unregister
LBB0_22:
	ldr	x0, [x19, #24]
	bl	_kfree
LBB0_23:
	ldr	x0, [x19, #16]
	bl	_input_free_polled_device
LBB0_24:
	mov	x0, x19
	bl	_kfree
	b	LBB0_10
LBB0_25:
	mov	x0, x20
	mov	x1, x19
	bl	_usb_set_intfdata
Lloh105:
	adrp	x8, _DRIVER_DESC@GOTPAGE
Lloh106:
	ldr	x8, [x8, _DRIVER_DESC@GOTPAGEOFF]
Lloh107:
	ldr	w2, [x8]
Lloh108:
	adrp	x1, l_.str.7@PAGE
Lloh109:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_TOUCH_ENDPOINT,8,3             ; @TOUCH_ENDPOINT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_POLL_INTERVAL,4,2              ; @POLL_INTERVAL
	.comm	_sur40_open,4,2                 ; @sur40_open
	.comm	_sur40_poll,4,2                 ; @sur40_poll
	.comm	_sur40_close,4,2                ; @sur40_close
	.comm	_DRIVER_LONG,8,3                ; @DRIVER_LONG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/input0"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to allocate input buffer."

l_.str.2:                               ; @.str.2
	.asciz	"Unable to register polled input device."

l_.str.3:                               ; @.str.3
	.asciz	"%s"

l_.str.4:                               ; @.str.4
	.asciz	"Unable to register video master device."

	.comm	_sur40_queue,24,3               ; @sur40_queue
	.comm	_sur40_pix_format,8,3           ; @sur40_pix_format
	.comm	_sur40_video_device,24,3        ; @sur40_video_device
	.comm	_SUR40_CONTRAST_DEF,4,2         ; @SUR40_CONTRAST_DEF
	.comm	_SUR40_GAIN_DEF,4,2             ; @SUR40_GAIN_DEF
	.comm	_sur40_ctrl_ops,4,2             ; @sur40_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ; @V4L2_CID_BRIGHTNESS
	.comm	_SUR40_BRIGHTNESS_MIN,8,3       ; @SUR40_BRIGHTNESS_MIN
	.comm	_SUR40_BRIGHTNESS_MAX,8,3       ; @SUR40_BRIGHTNESS_MAX
	.comm	_brightness,4,2                 ; @brightness
	.comm	_V4L2_CID_CONTRAST,4,2          ; @V4L2_CID_CONTRAST
	.comm	_SUR40_CONTRAST_MIN,8,3         ; @SUR40_CONTRAST_MIN
	.comm	_SUR40_CONTRAST_MAX,8,3         ; @SUR40_CONTRAST_MAX
	.comm	_contrast,4,2                   ; @contrast
	.comm	_V4L2_CID_GAIN,4,2              ; @V4L2_CID_GAIN
	.comm	_SUR40_GAIN_MIN,8,3             ; @SUR40_GAIN_MIN
	.comm	_SUR40_GAIN_MAX,8,3             ; @SUR40_GAIN_MAX
	.comm	_gain,4,2                       ; @gain
	.comm	_V4L2_CID_BACKLIGHT_COMPENSATION,4,2 ; @V4L2_CID_BACKLIGHT_COMPENSATION
	.comm	_SUR40_BACKLIGHT_MIN,8,3        ; @SUR40_BACKLIGHT_MIN
	.comm	_SUR40_BACKLIGHT_MAX,8,3        ; @SUR40_BACKLIGHT_MAX
	.comm	_SUR40_BACKLIGHT_DEF,4,2        ; @SUR40_BACKLIGHT_DEF
l_.str.5:                               ; @.str.5
	.asciz	"Unable to register video controls."

	.comm	_VFL_TYPE_TOUCH,4,2             ; @VFL_TYPE_TOUCH
l_.str.6:                               ; @.str.6
	.asciz	"Unable to register video subdevice."

l_.str.7:                               ; @.str.7
	.asciz	"%s is now attached\n"

	.comm	_DRIVER_DESC,4,2                ; @DRIVER_DESC
	.no_dead_strip	_sur40_probe
.subsections_via_symbols
