	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rn5t618_i2c_probe
_rn5t618_i2c_probe:                     ## @rn5t618_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, %r14
	movq	_rn5t618_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	(%rbx), %rax
	movq	%rax, (%r15)
	movq	_rn5t618_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 8(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	8(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	jmp	LBB0_16
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_6:
	movq	_rn5t618_cells@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	$0, (%rsp)
	movq	%r14, %rdi
	movl	$-1, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_15
LBB0_8:
	movq	_rn5t618_pm_power_off@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movl	(%r14), %edi
	callq	_of_device_is_system_power_controller
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	_pm_power_off@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	jmp	LBB0_12
LBB0_10:
	movq	_rn5t618_power_off@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_12:
	movq	_rn5t618_restart@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_rn5t618_restart_handler@GOTPCREL(%rip), %rdi
	movl	%eax, 4(%rdi)
	movl	$192, (%rdi)
	callq	_register_restart_handler
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
LBB0_15:
	movq	%r14, %rdi
	movl	%ebx, %edx
LBB0_16:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_rn5t618_of_match,4,2           ## @rn5t618_of_match
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to find matching DT ID\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_rn5t618_regmap_config,4,2      ## @rn5t618_regmap_config
L_.str.1:                               ## @.str.1
	.asciz	"regmap init failed: %d\n"

	.comm	_rn5t618_cells,4,2              ## @rn5t618_cells
L_.str.2:                               ## @.str.2
	.asciz	"failed to add sub-devices: %d\n"

	.comm	_rn5t618_pm_power_off,8,3       ## @rn5t618_pm_power_off
	.comm	_pm_power_off,8,3               ## @pm_power_off
	.comm	_rn5t618_power_off,8,3          ## @rn5t618_power_off
L_.str.3:                               ## @.str.3
	.asciz	"Poweroff callback already assigned\n"

	.comm	_rn5t618_restart,4,2            ## @rn5t618_restart
	.comm	_rn5t618_restart_handler,8,2    ## @rn5t618_restart_handler
L_.str.4:                               ## @.str.4
	.asciz	"cannot register restart handler, %d\n"

	.no_dead_strip	_rn5t618_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rn5t618_i2c_probe
_rn5t618_i2c_probe:                     ; @rn5t618_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
Lloh0:
	adrp	x8, _rn5t618_of_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rn5t618_of_match@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	ldr	x8, [x21]
	str	x8, [x20]
Lloh6:
	adrp	x1, _rn5t618_regmap_config@GOTPAGE
Lloh7:
	ldr	x1, [x1, _rn5t618_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	w0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w0, [x20, #8]
	bl	_PTR_ERR
	mov	x20, x0
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_4:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, 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
	ret
LBB0_8:
Lloh16:
	adrp	x8, _rn5t618_cells@GOTPAGE
Lloh17:
	ldr	x8, [x8, _rn5t618_cells@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	w1, #-1
	mov	x2, x21
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_devm_mfd_add_devices
	cbz	w0, LBB0_10
; %bb.9:
	mov	x21, x0
	str	x21, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x20, x21
	b	LBB0_7
LBB0_10:
Lloh21:
	adrp	x8, _rn5t618_pm_power_off@GOTPAGE
Lloh22:
	ldr	x8, [x8, _rn5t618_pm_power_off@GOTPAGEOFF]
Lloh23:
	str	x20, [x8]
	ldr	w0, [x19]
	bl	_of_device_is_system_power_controller
	cbz	x0, LBB0_14
; %bb.11:
Lloh24:
	adrp	x8, _pm_power_off@GOTPAGE
Lloh25:
	ldr	x8, [x8, _pm_power_off@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_13
; %bb.12:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	b	LBB0_14
LBB0_13:
Lloh28:
	adrp	x9, _rn5t618_power_off@GOTPAGE
Lloh29:
	ldr	x9, [x9, _rn5t618_power_off@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	str	x9, [x8]
LBB0_14:
Lloh31:
	adrp	x8, _rn5t618_restart@GOTPAGE
Lloh32:
	ldr	x8, [x8, _rn5t618_restart@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x0, _rn5t618_restart_handler@GOTPAGE
Lloh35:
	ldr	x0, [x0, _rn5t618_restart_handler@GOTPAGEOFF]
	mov	w9, #192
	stp	w9, w8, [x0]
	bl	_register_restart_handler
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.15:
	str	x20, [sp]
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_rn5t618_of_match,4,2           ; @rn5t618_of_match
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to find matching DT ID\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_rn5t618_regmap_config,4,2      ; @rn5t618_regmap_config
l_.str.1:                               ; @.str.1
	.asciz	"regmap init failed: %d\n"

	.comm	_rn5t618_cells,4,2              ; @rn5t618_cells
l_.str.2:                               ; @.str.2
	.asciz	"failed to add sub-devices: %d\n"

	.comm	_rn5t618_pm_power_off,8,3       ; @rn5t618_pm_power_off
	.comm	_pm_power_off,8,3               ; @pm_power_off
	.comm	_rn5t618_power_off,8,3          ; @rn5t618_power_off
l_.str.3:                               ; @.str.3
	.asciz	"Poweroff callback already assigned\n"

	.comm	_rn5t618_restart,4,2            ; @rn5t618_restart
	.comm	_rn5t618_restart_handler,8,2    ; @rn5t618_restart_handler
l_.str.4:                               ; @.str.4
	.asciz	"cannot register restart handler, %d\n"

	.no_dead_strip	_rn5t618_i2c_probe
.subsections_via_symbols
