	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vexpress_syscfg_regmap_init
_vexpress_syscfg_regmap_init:           ## @vexpress_syscfg_regmap_init
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %edi
	leaq	-104(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	leaq	-88(%rbp), %rcx
	callq	_vexpress_config_get_topo
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %edi
LBB0_2:
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_of_find_property
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rax), %r14d
	sarl	$4, %r14d
	movq	8(%rax), %rbx
	cmpl	$1, %r14d
	jne	LBB0_9
## %bb.6:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%rbx), %eax
	leaq	-64(%rbp), %r14
	movl	%eax, -64(%rbp)
	leaq	4(%rbx), %rdi
	movl	(%rbx), %eax
	movl	%eax, -56(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -60(%rbp)
	callq	_be32_to_cpup
	leaq	1(%rax), %rdi
	callq	_cpu_to_be32
	movl	%eax, -52(%rbp)
	movq	%r14, %rbx
	movl	$2, %r14d
	jmp	LBB0_9
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
	jmp	LBB0_2
LBB0_7:
	movl	$1, %r14d
LBB0_9:
	movq	_template@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r13
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%r15, 32(%rax)
	movl	%r14d, (%rax)
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_14
## %bb.12:
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_be32_to_cpup
	movq	%rax, %r14
	leaq	4(%rbx), %rdi
	callq	_be32_to_cpup
	movq	%rax, %r12
	movq	-104(%rbp), %rcx
	movq	-96(%rbp), %r8
	movq	-88(%rbp), %r9
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	pushq	%rax
	pushq	%r14
	callq	_dev_dbg
	addq	$16, %rsp
	movq	-88(%rbp), %rdi
	callq	_SYS_CFGCTRL_DCC
	movq	24(%r13), %rcx
	movl	%eax, (%rcx,%r15,4)
	movq	-104(%rbp), %rdi
	callq	_SYS_CFGCTRL_SITE
	movq	24(%r13), %rcx
	orl	%eax, (%rcx,%r15,4)
	movq	-96(%rbp), %rdi
	callq	_SYS_CFGCTRL_POSITION
	movq	24(%r13), %rcx
	orl	%eax, (%rcx,%r15,4)
	movq	%r14, %rdi
	callq	_SYS_CFGCTRL_FUNC
	movq	24(%r13), %rcx
	orl	%eax, (%rcx,%r15,4)
	movq	%r12, %rdi
	callq	_SYS_CFGCTRL_DEVICE
	movq	24(%r13), %rcx
	orl	%eax, (%rcx,%r15,4)
	incq	%r15
	addq	$8, %rbx
	cmpq	%r15, -120(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_13
LBB0_14:
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	decl	%eax
	movq	_vexpress_syscfg_regmap_config@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_regmap_init
	movq	%rax, 8(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	8(%r13), %rbx
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_17
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_16:
	movq	%r13, %rdi
	addq	$16, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	callq	_list_add
	movq	8(%r13), %rbx
	jmp	LBB0_17
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"arm,vexpress-sysreg,func"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"arm,vexpress-energy"

	.comm	_template,4,2                   ## @template
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"func %p: %u/%u/%u/%u/%u\n"

	.comm	_vexpress_syscfg_regmap_config,4,2 ## @vexpress_syscfg_regmap_config
	.no_dead_strip	_vexpress_syscfg_regmap_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vexpress_syscfg_regmap_init
_vexpress_syscfg_regmap_init:           ; @vexpress_syscfg_regmap_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w0, [x0]
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x3, sp
	bl	_vexpress_config_get_topo
	cbnz	w0, LBB0_15
; %bb.1:
	ldr	w0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_of_find_property
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x0]
	asr	w23, w8, #4
	ldr	x21, [x0, #8]
	cmp	w23, #1
	b.ne	LBB0_7
; %bb.3:
	ldr	w0, [x20]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_device_is_compatible
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w8, [x21]
	str	w8, [sp, #24]
	ldr	w8, [x21]
	str	w8, [sp, #32]
	ldr	w8, [x21, #4]!
	str	w8, [sp, #28]
	mov	x0, x21
	bl	_be32_to_cpup
	add	x0, x0, #1
	bl	_cpu_to_be32
	str	w0, [sp, #36]
	mov	w23, #2
	add	x21, sp, #24
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_6:
	mov	w23, #1
LBB0_7:
Lloh9:
	adrp	x8, _template@GOTPAGE
Lloh10:
	ldr	x8, [x8, _template@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x23
	bl	_struct_size
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.8:
	mov	x22, x0
	str	x19, [x0, #32]
	str	w23, [x0]
	subs	w26, w23, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x27, #0
	mov	w8, w23
	lsl	x28, x8, #2
Lloh15:
	adrp	x23, l_.str.2@PAGE
Lloh16:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_be32_to_cpup
	mov	x24, x0
	add	x0, x21, #4
	bl	_be32_to_cpup
	mov	x25, x0
	ldp	x4, x3, [sp, #8]
	ldr	x5, [sp]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x6, x24
	mov	x7, x25
	bl	_dev_dbg
	ldr	x0, [sp]
	bl	_SYS_CFGCTRL_DCC
	ldr	x8, [x22, #24]
	str	w0, [x8, x27]
	ldr	x0, [sp, #16]
	bl	_SYS_CFGCTRL_SITE
	ldr	x8, [x22, #24]
	ldr	w9, [x8, x27]
	orr	w9, w9, w0
	str	w9, [x8, x27]
	ldr	x0, [sp, #8]
	bl	_SYS_CFGCTRL_POSITION
	ldr	x8, [x22, #24]
	ldr	w9, [x8, x27]
	orr	w9, w9, w0
	str	w9, [x8, x27]
	mov	x0, x24
	bl	_SYS_CFGCTRL_FUNC
	ldr	x8, [x22, #24]
	ldr	w9, [x8, x27]
	orr	w9, w9, w0
	str	w9, [x8, x27]
	mov	x0, x25
	bl	_SYS_CFGCTRL_DEVICE
	ldr	x8, [x22, #24]
	ldr	w9, [x8, x27]
	orr	w9, w9, w0
	str	w9, [x8, x27]
	add	x27, x27, #4
	add	x21, x21, #8
	cmp	x28, x27
	b.ne	LBB0_10
LBB0_11:
Lloh17:
	adrp	x3, _vexpress_syscfg_regmap_config@GOTPAGE
Lloh18:
	ldr	x3, [x3, _vexpress_syscfg_regmap_config@GOTPAGEOFF]
	str	w26, [x3]
	mov	x0, x20
	mov	x1, #0
	mov	x2, x22
	bl	_regmap_init
	str	x0, [x22, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.12:
	ldr	x19, [x22, #8]
	mov	x0, x22
	bl	_kfree
	b	LBB0_16
LBB0_13:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	bl	_ERR_PTR
	mov	x19, x0
LBB0_16:
	ldr	x8, [sp, #40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.17:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_18:
	add	x0, x22, #16
	mov	x1, x19
	bl	_list_add
	ldr	x19, [x22, #8]
	b	LBB0_16
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"arm,vexpress-sysreg,func"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"arm,vexpress-energy"

	.comm	_template,4,2                   ; @template
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"func %p: %u/%u/%u/%u/%u\n"

	.comm	_vexpress_syscfg_regmap_config,4,2 ; @vexpress_syscfg_regmap_config
	.no_dead_strip	_vexpress_syscfg_regmap_init
.subsections_via_symbols
