	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmi_f54_probe
_rmi_f54_probe:                         ## @rmi_f54_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$112, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, 104(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	%r14, %rdi
	callq	_rmi_f54_detect
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	leaq	100(%r12), %rdi
	callq	_mutex_init
	leaq	96(%r12), %rdi
	callq	_mutex_init
	movl	88(%r12), %edi
	movl	92(%r12), %esi
	movl	$4, %edx
	callq	_array3_size
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_devm_kzalloc
	movq	%rax, 80(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	leaq	4(%r12), %r15
	movq	_rmi_f54_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_INIT_DELAYED_WORK
	leaq	L_.str(%rip), %rdi
	callq	_create_singlethread_workqueue
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	movq	%r12, %rdi
	callq	_rmi_f54_create_input_map
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_rmi_f54_set_input
	leaq	8(%r12), %r13
	movl	8(%r12), %edi
	movq	_F54_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_v4l2_device_register
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_12
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	leaq	72(%r12), %r13
	movq	%r13, %rdi
	callq	_mutex_init
	leaq	48(%r12), %rdi
	movq	%r12, 64(%r12)
	movq	%r13, 56(%r12)
	movq	%r14, 48(%r12)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_vb2_queue_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	%r12, %rbx
	addq	$16, %rbx
	movq	_rmi_f54_video_device@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 16(%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r12)
	movq	%r13, 32(%r12)
	movq	_VFL_DIR_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r12)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_video_set_drvdata
	movq	_VFL_TYPE_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_video_register_device
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_v4l2_device_unregister
LBB0_12:
	movq	%r15, %rdi
	callq	_cancel_delayed_work_sync
	movl	(%r12), %edi
	callq	_flush_workqueue
	movl	(%r12), %edi
	callq	_destroy_workqueue
	jmp	LBB0_13
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_rmi_f54_work,4,2               ## @rmi_f54_work
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rmi4-poller"

	.comm	_F54_NAME,4,2                   ## @F54_NAME
L_.str.1:                               ## @.str.1
	.asciz	"Unable to register video dev.\n"

	.comm	_rmi_f54_queue,24,3             ## @rmi_f54_queue
	.comm	_rmi_f54_video_device,32,3      ## @rmi_f54_video_device
	.comm	_VFL_DIR_RX,4,2                 ## @VFL_DIR_RX
	.comm	_VFL_TYPE_TOUCH,4,2             ## @VFL_TYPE_TOUCH
L_.str.2:                               ## @.str.2
	.asciz	"Unable to register video subdevice."

	.no_dead_strip	_rmi_f54_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmi_f54_probe
_rmi_f54_probe:                         ; @rmi_f54_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #112
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #104]
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
	mov	x0, x20
	bl	_rmi_f54_detect
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.2:
	add	x0, x19, #100
	bl	_mutex_init
	add	x0, x19, #96
	bl	_mutex_init
	ldp	w0, w1, [x19, #88]
	mov	w2, #4
	bl	_array3_size
	mov	x1, x0
	ldr	w2, [x21]
	mov	x0, x20
	bl	_devm_kzalloc
	str	x0, [x19, #80]
	cbz	x0, LBB0_6
; %bb.3:
	add	x21, x19, #4
Lloh2:
	adrp	x8, _rmi_f54_work@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rmi_f54_work@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_INIT_DELAYED_WORK
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_create_singlethread_workqueue
	str	w0, [x19]
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_rmi_f54_create_input_map
	mov	x0, x19
	mov	w1, #0
	bl	_rmi_f54_set_input
	mov	x22, x19
	ldr	w0, [x22, #8]!
Lloh7:
	adrp	x8, _F54_NAME@GOTPAGE
Lloh8:
	ldr	x8, [x8, _F54_NAME@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strlcpy
	mov	x0, x20
	mov	x1, x22
	bl	_v4l2_device_register
	cbz	w0, LBB0_8
; %bb.5:
	mov	x23, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_12
LBB0_6:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	add	x24, x19, #72
	mov	x0, x24
	bl	_mutex_init
	mov	x25, x19
	str	x20, [x25, #48]!
	stp	x24, x19, [x19, #56]
	mov	x0, x25
	bl	_vb2_queue_init
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.9:
	add	x23, x19, #16
Lloh15:
	adrp	x8, _rmi_f54_video_device@GOTPAGE
Lloh16:
	ldr	x8, [x8, _rmi_f54_video_device@GOTPAGEOFF]
Lloh17:
	ldr	q0, [x8]
	str	q0, [x19, #16]
	stp	x24, x22, [x19, #32]
Lloh18:
	adrp	x8, _VFL_DIR_RX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VFL_DIR_RX@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	str	x25, [x19, #16]
	mov	x0, x23
	mov	x1, x19
	bl	_video_set_drvdata
Lloh21:
	adrp	x8, _VFL_TYPE_TOUCH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VFL_TYPE_TOUCH@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x23
	mov	w2, #-1
	bl	_video_register_device
	mov	x23, x0
	cbz	w0, LBB0_7
; %bb.10:
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_11:
	mov	x0, x22
	bl	_v4l2_device_unregister
LBB0_12:
	mov	x0, x21
	bl	_cancel_delayed_work_sync
	ldr	w0, [x19]
	bl	_flush_workqueue
	ldr	w0, [x19]
	bl	_destroy_workqueue
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_rmi_f54_work,4,2               ; @rmi_f54_work
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rmi4-poller"

	.comm	_F54_NAME,4,2                   ; @F54_NAME
l_.str.1:                               ; @.str.1
	.asciz	"Unable to register video dev.\n"

	.comm	_rmi_f54_queue,24,3             ; @rmi_f54_queue
	.comm	_rmi_f54_video_device,32,3      ; @rmi_f54_video_device
	.comm	_VFL_DIR_RX,4,2                 ; @VFL_DIR_RX
	.comm	_VFL_TYPE_TOUCH,4,2             ; @VFL_TYPE_TOUCH
l_.str.2:                               ; @.str.2
	.asciz	"Unable to register video subdevice."

	.no_dead_strip	_rmi_f54_probe
.subsections_via_symbols
