	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sysmgr_probe
_sysmgr_probe:                          ## @sysmgr_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, %r15
	movq	_altr_sysmgr_regmap_cfg@GOTPCREL(%rip), %rax
	movq	16(%rax), %rcx
	movq	%rcx, -48(%rbp)
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_resource_size
	subq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_device_is_compatible
	movq	(%r13), %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, 8(%r14)
	movq	_s10_protected_reg_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_s10_protected_reg_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	-64(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_devm_regmap_init
	jmp	LBB0_8
LBB0_3:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_6:
	movq	%r13, %rdi
	callq	_resource_size
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_devm_ioremap
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	8(%r13), %rcx
	subq	(%r13), %rcx
	addq	$-3, %rcx
	movq	%rcx, -64(%rbp)
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_devm_regmap_init_mmio
LBB0_8:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, (%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_altr_sysmgr_regmap_cfg,24,3    ## @altr_sysmgr_regmap_cfg
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"altr,sys-mgr-s10"

	.comm	_s10_protected_reg_read,4,2     ## @s10_protected_reg_read
	.comm	_s10_protected_reg_write,4,2    ## @s10_protected_reg_write
L_.str.1:                               ## @.str.1
	.asciz	"regmap init failed\n"

	.no_dead_strip	_sysmgr_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sysmgr_probe
_sysmgr_probe:                          ; @sysmgr_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _altr_sysmgr_regmap_cfg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _altr_sysmgr_regmap_cfg@GOTPAGEOFF]
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	x8, [x8, #16]
	str	x8, [sp, #16]
	ldr	x22, [x0]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	bl	_resource_size
	ldr	x8, [sp, #16]
	sub	x8, x0, x8
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_of_device_is_compatible
	ldr	x22, [x21]
	cbz	x0, LBB0_5
; %bb.3:
	str	x22, [x20, #8]
Lloh10:
	adrp	x8, _s10_protected_reg_read@GOTPAGE
Lloh11:
	ldr	x8, [x8, _s10_protected_reg_read@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _s10_protected_reg_write@GOTPAGE
Lloh14:
	ldr	x9, [x9, _s10_protected_reg_write@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	mov	x3, sp
	mov	x0, x19
	mov	x1, #0
	mov	x2, x22
	bl	_devm_regmap_init
	b	LBB0_7
LBB0_4:
Lloh16:
	adrp	x8, _ENOENT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	mov	x0, x21
	bl	_resource_size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_devm_ioremap
	str	x0, [x20, #8]
	cbz	x0, LBB0_9
; %bb.6:
	mov	x1, x0
	ldp	x9, x8, [x21]
	sub	x8, x8, x9
	sub	x8, x8, #3
	str	x8, [sp]
	mov	x2, sp
	mov	x0, x19
	bl	_devm_regmap_init_mmio
LBB0_7:
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.8:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	mov	x0, x21
	bl	_PTR_ERR
	b	LBB0_11
LBB0_9:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	add	sp, sp, #80
	ret
LBB0_12:
	str	x21, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_altr_sysmgr_regmap_cfg,24,3    ; @altr_sysmgr_regmap_cfg
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"altr,sys-mgr-s10"

	.comm	_s10_protected_reg_read,4,2     ; @s10_protected_reg_read
	.comm	_s10_protected_reg_write,4,2    ; @s10_protected_reg_write
l_.str.1:                               ; @.str.1
	.asciz	"regmap init failed\n"

	.no_dead_strip	_sysmgr_probe
.subsections_via_symbols
