	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmi_i2c_probe
_rmi_i2c_probe:                         ## @rmi_i2c_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_dev_get_platdata
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r14
	cmpl	$0, (%r15)
	jne	LBB0_4
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %eax
	movl	%eax, 24(%r14)
LBB0_4:
	movl	8(%r15), %eax
	movl	%eax, 24(%r14)
	movq	_RMI_DEBUG_XPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %ecx
	callq	_rmi_dbg
	movl	4(%r15), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movq	56(%r14), %rdi
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%rdi)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, 8(%rdi)
	callq	_ARRAY_SIZE
	movq	56(%r14), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_devm_regulator_bulk_get
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:
	movq	56(%r14), %rdi
	callq	_ARRAY_SIZE
	movq	56(%r14), %rsi
	movl	%eax, %edi
	callq	_regulator_bulk_enable
	testl	%eax, %eax
	js	LBB0_13
## %bb.7:
	movq	_rmi_i2c_regulator_bulk_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_devm_add_action_or_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movl	(%r15), %edi
	leaq	48(%r14), %rdx
	leaq	L_.str.4(%rip), %rsi
	callq	_of_property_read_u32
	movl	48(%r14), %edi
	callq	_msleep
	movq	%r15, 40(%r14)
	movq	%r14, %rdi
	addq	$32, %rdi
	callq	_mutex_init
	movq	%r15, 16(%r14)
	leaq	L_.str.5(%rip), %rax
	movq	%rax, (%r14)
	movq	_rmi_i2c_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_rmi_set_page
	testl	%eax, %eax
	je	LBB0_15
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_13:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	movq	%r14, %rdi
	callq	_rmi_register_transport_device
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_17:
	movq	_rmi_i2c_unregister_transport@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_add_action_or_reset       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RMI_DEBUG_XPORT,4,2            ## @RMI_DEBUG_XPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Probing %s.\n"

	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
L_.str.1:                               ## @.str.1
	.asciz	"adapter does not support required functionality\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"vdd"

L_.str.3:                               ## @.str.3
	.asciz	"vio"

	.comm	_rmi_i2c_regulator_bulk_disable,4,2 ## @rmi_i2c_regulator_bulk_disable
L_.str.4:                               ## @.str.4
	.asciz	"syna,startup-delay-ms"

L_.str.5:                               ## @.str.5
	.asciz	"i2c"

	.comm	_rmi_i2c_ops,4,2                ## @rmi_i2c_ops
L_.str.6:                               ## @.str.6
	.asciz	"Failed to set page select to 0\n"

L_.str.7:                               ## @.str.7
	.asciz	"registering I2C-connected sensor\n"

L_.str.8:                               ## @.str.8
	.asciz	"failed to register sensor: %d\n"

	.comm	_rmi_i2c_unregister_transport,4,2 ## @rmi_i2c_unregister_transport
	.no_dead_strip	_rmi_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmi_i2c_probe
_rmi_i2c_probe:                         ; @rmi_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_dev_get_platdata
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w8, #0
	ccmp	x21, #0, #4, eq
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x21]
	str	w8, [x20, #24]
LBB0_3:
	ldr	w8, [x19, #8]
	str	w8, [x20, #24]
Lloh3:
	adrp	x8, _RMI_DEBUG_XPORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RMI_DEBUG_XPORT@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x3, x0
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	bl	_rmi_dbg
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_11
; %bb.4:
	ldr	x0, [x20, #56]
Lloh11:
	adrp	x8, l_.str.2@PAGE
Lloh12:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh13:
	adrp	x9, l_.str.3@PAGE
Lloh14:
	add	x9, x9, l_.str.3@PAGEOFF
	stp	x8, x9, [x0]
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x2, [x20, #56]
	mov	x0, x19
	bl	_devm_regulator_bulk_get
	tbnz	w0, #31, LBB0_10
; %bb.5:
	ldr	x0, [x20, #56]
	bl	_ARRAY_SIZE
	ldr	x1, [x20, #56]
	bl	_regulator_bulk_enable
	tbnz	w0, #31, LBB0_10
; %bb.6:
Lloh15:
	adrp	x8, _rmi_i2c_regulator_bulk_disable@GOTPAGE
Lloh16:
	ldr	x8, [x8, _rmi_i2c_regulator_bulk_disable@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_devm_add_action_or_reset
	mov	x21, x0
	cbnz	w0, LBB0_13
; %bb.7:
	ldr	w0, [x19]
	add	x2, x20, #48
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_of_property_read_u32
	ldr	w0, [x20, #48]
	bl	_msleep
	str	x19, [x20, #40]
	add	x0, x20, #32
	bl	_mutex_init
	str	x19, [x20, #16]
Lloh20:
	adrp	x8, l_.str.5@PAGE
Lloh21:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh22:
	adrp	x9, _rmi_i2c_ops@GOTPAGE
Lloh23:
	ldr	x9, [x9, _rmi_i2c_ops@GOTPAGEOFF]
	stp	x8, x9, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	mov	x0, x20
	mov	w1, #0
	bl	_rmi_set_page
	cbz	w0, LBB0_14
; %bb.8:
	mov	x21, x0
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_16
LBB0_9:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	mov	x21, x0
	b	LBB0_13
LBB0_11:
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh30:
	adrp	x8, _ENODEV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x20
	bl	_rmi_register_transport_device
	cbz	w0, LBB0_17
; %bb.15:
	mov	x21, x0
	str	x21, [sp]
Lloh34:
	adrp	x1, l_.str.8@PAGE
Lloh35:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_13
LBB0_17:
Lloh36:
	adrp	x8, _rmi_i2c_unregister_transport@GOTPAGE
Lloh37:
	ldr	x8, [x8, _rmi_i2c_unregister_transport@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_devm_add_action_or_reset
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RMI_DEBUG_XPORT,4,2            ; @RMI_DEBUG_XPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Probing %s.\n"

	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
l_.str.1:                               ; @.str.1
	.asciz	"adapter does not support required functionality\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"vdd"

l_.str.3:                               ; @.str.3
	.asciz	"vio"

	.comm	_rmi_i2c_regulator_bulk_disable,4,2 ; @rmi_i2c_regulator_bulk_disable
l_.str.4:                               ; @.str.4
	.asciz	"syna,startup-delay-ms"

l_.str.5:                               ; @.str.5
	.asciz	"i2c"

	.comm	_rmi_i2c_ops,4,2                ; @rmi_i2c_ops
l_.str.6:                               ; @.str.6
	.asciz	"Failed to set page select to 0\n"

l_.str.7:                               ; @.str.7
	.asciz	"registering I2C-connected sensor\n"

l_.str.8:                               ; @.str.8
	.asciz	"failed to register sensor: %d\n"

	.comm	_rmi_i2c_unregister_transport,4,2 ; @rmi_i2c_unregister_transport
	.no_dead_strip	_rmi_i2c_probe
.subsections_via_symbols
