	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_cle_setup_node
_xgene_cle_setup_node:                  ## @xgene_cle_setup_node
	.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	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_xgene_init_ptree_dn@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	24(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_CLE_DRAM_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leal	(,%r14,4), %edx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	callq	_memset
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	$0, %r14d
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movl	%eax, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_xgene_cle_dn_to_hw
	movq	16(%r13), %rcx
	addq	%r12, %rcx
	movq	_PTREE_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_CLE_CMD_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$17, %edx
	callq	_xgene_cle_dram_wr
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	addq	$4, %rbx
	cmpq	%r12, %r14
	jne	LBB0_2
## %bb.4:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r14d
	xorl	%r12d, %r12d
LBB0_5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ebx
	callq	_memset
	movl	8(%r13), %eax
	addl	%ebx, %eax
	cmpl	%eax, %r14d
	jge	LBB0_11
## %bb.6:
	movl	%ebx, %ecx
	movl	%r14d, %ebx
	movslq	%ecx, %r12
	movq	%rbx, %rax
	subq	%r12, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_xgene_cle_kn_to_hw
	movq	16(%r13), %rcx
	addq	%rbx, %rcx
	movq	_PTREE_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_CLE_CMD_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$17, %edx
	callq	_xgene_cle_dram_wr
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	8(%r13), %rax
	addq	%r12, %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_7
## %bb.9:
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %r12d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_xgene_init_ptree_dn,8,3        ## @xgene_init_ptree_dn
	.comm	_CLE_DRAM_REGS,4,2              ## @CLE_DRAM_REGS
	.comm	_PTREE_RAM,4,2                  ## @PTREE_RAM
	.comm	_CLE_CMD_WR,4,2                 ## @CLE_CMD_WR
	.no_dead_strip	_xgene_cle_setup_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_cle_setup_node
_xgene_cle_setup_node:                  ; @xgene_cle_setup_node
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _xgene_init_ptree_dn@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xgene_init_ptree_dn@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x20, x0
	ldr	x24, [x19, #24]
Lloh6:
	adrp	x8, _CLE_DRAM_REGS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CLE_DRAM_REGS@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	lsl	w23, w12, #2
	mov	x0, x21
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x25, #0
Lloh11:
	adrp	x26, _PTREE_RAM@GOTPAGE
Lloh12:
	ldr	x26, [x26, _PTREE_RAM@GOTPAGEOFF]
Lloh13:
	adrp	x27, _CLE_CMD_WR@GOTPAGE
Lloh14:
	ldr	x27, [x27, _CLE_CMD_WR@GOTPAGEOFF]
	mov	w28, w20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x19]
	mov	x0, x22
	mov	x1, x21
	bl	_xgene_cle_dn_to_hw
	ldr	x8, [x19, #16]
	add	x3, x25, x8
	ldr	w4, [x26]
	ldr	w5, [x27]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #17
	bl	_xgene_cle_dram_wr
	cbnz	w0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #1
	add	x22, x22, #4
	cmp	x28, x25
	b.ne	LBB0_2
; %bb.4:
	mov	x22, x20
	b	LBB0_6
LBB0_5:
	mov	w22, #0
LBB0_6:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	mov	w0, #0
	ldr	w8, [x19, #8]
	add	w8, w8, w20
	cmp	w22, w8
	b.ge	LBB0_11
; %bb.7:
	mov	w23, w22
	sub	x8, x23, w20, sxtw
	add	x22, x24, x8, lsl #2
Lloh15:
	adrp	x24, _PTREE_RAM@GOTPAGE
Lloh16:
	ldr	x24, [x24, _PTREE_RAM@GOTPAGEOFF]
Lloh17:
	adrp	x25, _CLE_CMD_WR@GOTPAGE
Lloh18:
	ldr	x25, [x25, _CLE_CMD_WR@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_xgene_cle_kn_to_hw
	ldr	x8, [x19, #16]
	add	x3, x23, x8
	ldr	w4, [x24]
	ldr	w5, [x25]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #17
	bl	_xgene_cle_dram_wr
	cbnz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19, #8]
	add	x8, x8, w20, sxtw
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_8
; %bb.10:
	mov	w0, #0
LBB0_11:
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_xgene_init_ptree_dn,8,3        ; @xgene_init_ptree_dn
	.comm	_CLE_DRAM_REGS,4,2              ; @CLE_DRAM_REGS
	.comm	_PTREE_RAM,4,2                  ; @PTREE_RAM
	.comm	_CLE_CMD_WR,4,2                 ; @CLE_CMD_WR
	.no_dead_strip	_xgene_cle_setup_node
.subsections_via_symbols
