	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsctrl_probe
_rsctrl_probe:                          ## @rsctrl_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), %r12
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	_pllctrl_regs@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	(%r13), %rdi
	jmp	LBB0_8
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_4:
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%r15, %rdi
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	_rspll_offset@GOTPCREL(%rip), %rcx
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	leaq	-52(%rbp), %rcx
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
LBB0_13:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_14:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_bool
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	_RSCFG_RSTYPE_HARD@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_RSCFG_RSTYPE_SOFT@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, -44(%rbp)
	xorl	%eax, %eax
	callq	_rsctrl_enable_rspll_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.18:
	movq	(%r13), %rdi
	movq	_RSCFG_RG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_rspll_offset@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.19:
	movq	(%r13), %rdi
	movq	_RSISO_RG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_rspll_offset@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.20:
	movq	_WDT_MUX_NUMBER@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_28
## %bb.21:
	xorl	%r13d, %r13d
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%r13d, %edx
	leaq	-44(%rbp), %rcx
	callq	_of_property_read_u32_index
	movq	_EOVERFLOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	testl	%r13d, %r13d
	je	LBB0_31
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=1
	testl	%eax, %eax
	jne	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	-44(%rbp), %esi
	cmpl	(%rbx), %esi
	jge	LBB0_32
## %bb.26:                              ##   in Loop: Header=BB0_22 Depth=1
	shll	$2, %esi
	addl	-52(%rbp), %esi
	movq	_RSMUX_OMODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RSMUX_LOCK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RSMUX_OMODE_RESET_ON@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_regmap_update_bits
	testl	%eax, %eax
	jne	LBB0_33
## %bb.27:                              ##   in Loop: Header=BB0_22 Depth=1
	incl	%r13d
	movq	_WDT_MUX_NUMBER@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %r13d
	jl	LBB0_22
LBB0_28:
	movq	_rsctrl_restart_nb@GOTPCREL(%rip), %rdi
	callq	_register_restart_handler
	testl	%eax, %eax
	je	LBB0_30
## %bb.29:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_30:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_31:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_13
LBB0_32:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_13
LBB0_33:
	movl	%eax, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ti,syscon-pll"

	.comm	_pllctrl_regs,8,3               ## @pllctrl_regs
L_.str.1:                               ## @.str.1
	.asciz	"ti,syscon-dev"

	.comm	_rspll_offset,4,2               ## @rspll_offset
L_.str.2:                               ## @.str.2
	.asciz	"couldn't read the reset pll offset!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"couldn't read the rsmux offset!\n"

L_.str.4:                               ## @.str.4
	.asciz	"ti,soft-reset"

	.comm	_RSCFG_RSTYPE_SOFT,4,2          ## @RSCFG_RSTYPE_SOFT
	.comm	_RSCFG_RSTYPE_HARD,4,2          ## @RSCFG_RSTYPE_HARD
	.comm	_RSCFG_RG,4,2                   ## @RSCFG_RG
	.comm	_RSISO_RG,4,2                   ## @RSISO_RG
	.comm	_WDT_MUX_NUMBER,4,2             ## @WDT_MUX_NUMBER
L_.str.5:                               ## @.str.5
	.asciz	"ti,wdt-list"

	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
L_.str.6:                               ## @.str.6
	.asciz	"ti,wdt-list property has to contain atleast one entry\n"

L_.str.7:                               ## @.str.7
	.asciz	"ti,wdt-list property can contain only numbers < 4\n"

	.comm	_RSMUX_OMODE_MASK,4,2           ## @RSMUX_OMODE_MASK
	.comm	_RSMUX_OMODE_RESET_ON,4,2       ## @RSMUX_OMODE_RESET_ON
	.comm	_RSMUX_LOCK_SET,4,2             ## @RSMUX_LOCK_SET
	.comm	_rsctrl_restart_nb,4,2          ## @rsctrl_restart_nb
L_.str.8:                               ## @.str.8
	.asciz	"cannot register restart handler (err=%d)\n"

	.no_dead_strip	_rsctrl_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsctrl_probe
_rsctrl_probe:                          ; @rsctrl_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x20, [x0]
	cbz	x20, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_syscon_regmap_lookup_by_phandle
Lloh2:
	adrp	x25, _pllctrl_regs@GOTPAGE
Lloh3:
	ldr	x25, [x25, _pllctrl_regs@GOTPAGEOFF]
	str	x0, [x25]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x25]
	b	LBB0_8
LBB0_3:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_syscon_regmap_lookup_by_phandle
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x21
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_9:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
Lloh10:
	adrp	x22, _rspll_offset@GOTPAGE
Lloh11:
	ldr	x22, [x22, _rspll_offset@GOTPAGEOFF]
	mov	x0, x20
	mov	w2, #1
	mov	x3, x22
	bl	_of_property_read_u32_index
	cbz	w0, LBB0_11
; %bb.10:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_11:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x3, sp, #8
	mov	x0, x20
	mov	w2, #1
	bl	_of_property_read_u32_index
	cbz	w0, LBB0_14
; %bb.12:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_dev_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_14:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_bool
Lloh22:
	adrp	x8, _RSCFG_RSTYPE_SOFT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RSCFG_RSTYPE_SOFT@GOTPAGEOFF]
Lloh24:
	adrp	x9, _RSCFG_RSTYPE_HARD@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RSCFG_RSTYPE_HARD@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	ldr	w24, [x8]
	str	w24, [sp, #12]
	bl	_rsctrl_enable_rspll_write
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.15:
	ldr	x0, [x25]
	ldr	w8, [x22]
Lloh26:
	adrp	x9, _RSCFG_RG@GOTPAGE
Lloh27:
	ldr	x9, [x9, _RSCFG_RG@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	add	w1, w9, w8
	mov	x2, x24
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.16:
	ldr	x0, [x25]
	ldr	w8, [x22]
Lloh29:
	adrp	x9, _RSISO_RG@GOTPAGE
Lloh30:
	ldr	x9, [x9, _RSISO_RG@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	add	w1, w9, w8
	mov	w2, #0
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.17:
Lloh32:
	adrp	x25, _WDT_MUX_NUMBER@GOTPAGE
Lloh33:
	ldr	x25, [x25, _WDT_MUX_NUMBER@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.18:
	mov	w22, #0
Lloh34:
	adrp	x26, _EOVERFLOW@GOTPAGE
Lloh35:
	ldr	x26, [x26, _EOVERFLOW@GOTPAGEOFF]
Lloh36:
	adrp	x24, l_.str.5@PAGE
Lloh37:
	add	x24, x24, l_.str.5@PAGEOFF
Lloh38:
	adrp	x28, _RSMUX_OMODE_RESET_ON@GOTPAGE
Lloh39:
	ldr	x28, [x28, _RSMUX_OMODE_RESET_ON@GOTPAGEOFF]
Lloh40:
	adrp	x27, _RSMUX_LOCK_SET@GOTPAGE
Lloh41:
	ldr	x27, [x27, _RSMUX_LOCK_SET@GOTPAGEOFF]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x24
	mov	x2, x22
	bl	_of_property_read_u32_index
	ldr	w8, [x26]
	cmn	w0, w8
	ccmp	w22, #0, #0, eq
	b.eq	LBB0_26
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	cbnz	w0, LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x25]
	cmp	w8, w9
	b.ge	LBB0_27
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w9, [sp, #8]
	add	w1, w9, w8, lsl #2
Lloh42:
	adrp	x8, _RSMUX_OMODE_MASK@GOTPAGE
Lloh43:
	ldr	x8, [x8, _RSMUX_OMODE_MASK@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	ldr	w8, [x28]
	ldr	w9, [x27]
	orr	w3, w9, w8
	mov	x0, x21
	bl	_regmap_update_bits
	cbnz	w0, LBB0_28
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	add	w22, w22, #1
	ldr	w8, [x25]
	cmp	w22, w8
	b.lt	LBB0_19
LBB0_24:
Lloh45:
	adrp	x0, _rsctrl_restart_nb@GOTPAGE
Lloh46:
	ldr	x0, [x0, _rsctrl_restart_nb@GOTPAGEOFF]
	bl	_register_restart_handler
	mov	x23, x0
	cbz	w0, LBB0_5
; %bb.25:
	str	x23, [sp]
Lloh47:
	adrp	x1, l_.str.8@PAGE
Lloh48:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_5
LBB0_26:
Lloh49:
	adrp	x1, l_.str.6@PAGE
Lloh50:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_27:
Lloh51:
	adrp	x1, l_.str.7@PAGE
Lloh52:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_13
LBB0_28:
	mov	x23, x0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ti,syscon-pll"

	.comm	_pllctrl_regs,8,3               ; @pllctrl_regs
l_.str.1:                               ; @.str.1
	.asciz	"ti,syscon-dev"

	.comm	_rspll_offset,4,2               ; @rspll_offset
l_.str.2:                               ; @.str.2
	.asciz	"couldn't read the reset pll offset!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"couldn't read the rsmux offset!\n"

l_.str.4:                               ; @.str.4
	.asciz	"ti,soft-reset"

	.comm	_RSCFG_RSTYPE_SOFT,4,2          ; @RSCFG_RSTYPE_SOFT
	.comm	_RSCFG_RSTYPE_HARD,4,2          ; @RSCFG_RSTYPE_HARD
	.comm	_RSCFG_RG,4,2                   ; @RSCFG_RG
	.comm	_RSISO_RG,4,2                   ; @RSISO_RG
	.comm	_WDT_MUX_NUMBER,4,2             ; @WDT_MUX_NUMBER
l_.str.5:                               ; @.str.5
	.asciz	"ti,wdt-list"

	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
l_.str.6:                               ; @.str.6
	.asciz	"ti,wdt-list property has to contain atleast one entry\n"

l_.str.7:                               ; @.str.7
	.asciz	"ti,wdt-list property can contain only numbers < 4\n"

	.comm	_RSMUX_OMODE_MASK,4,2           ; @RSMUX_OMODE_MASK
	.comm	_RSMUX_OMODE_RESET_ON,4,2       ; @RSMUX_OMODE_RESET_ON
	.comm	_RSMUX_LOCK_SET,4,2             ; @RSMUX_LOCK_SET
	.comm	_rsctrl_restart_nb,4,2          ; @rsctrl_restart_nb
l_.str.8:                               ; @.str.8
	.asciz	"cannot register restart handler (err=%d)\n"

	.no_dead_strip	_rsctrl_probe
.subsections_via_symbols
