	.file	"extr_pmem.c_pmem_drc_add_node.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Attempting to add pmem node, drc index: %x\n"
	.align 8
.LC1:
	.string	"Failed to acquire DRC, rc: %d, drc index: %x\n"
	.align 8
.LC2:
	.string	"configure-connector failed for drc %x\n"
	.align 8
.LC3:
	.string	"Failed to attach node %pOF, rc: %d, drc index: %x\n"
	.align 8
.LC4:
	.string	"Successfully added %pOF, drc index: %x\n"
	.text
	.p2align 4
	.type	pmem_drc_add_node, @function
pmem_drc_add_node:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, edi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edi
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	pr_debug@PLT
	mov	edi, r12d
	call	dlpar_acquire_drc@PLT
	test	eax, eax
	jne	.L11
	mov	ebp, DWORD PTR pmem_node[rip]
	mov	edi, r12d
	call	cpu_to_be32@PLT
	mov	edi, eax
	mov	esi, ebp
	call	dlpar_configure_connector@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L12
	mov	esi, DWORD PTR pmem_node[rip]
	mov	rdi, rax
	call	dlpar_attach_node@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L13
	mov	edx, r12d
	mov	rsi, rbp
	lea	rdi, .LC4[rip]
	call	pr_info@PLT
.L1:
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edx, r12d
	mov	esi, eax
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	pr_err@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	neg	r13d
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edx, eax
	lea	rdi, .LC3[rip]
	xor	eax, eax
	mov	ecx, r12d
	mov	esi, ebp
	call	pr_err@PLT
	mov	edi, r12d
	call	dlpar_release_drc@PLT
	test	rax, rax
	je	.L1
	mov	rdi, rbp
	call	dlpar_free_cc_nodes@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, r12d
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	pr_err@PLT
	mov	edi, r12d
	call	dlpar_release_drc@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	neg	r13d
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pmem_drc_add_node, .-pmem_drc_add_node
	.comm	pmem_node,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_pmem.c_pmem_drc_add_node.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Attempting to add pmem node, drc index: %x\012\000"
	.align	2
.LC1:
	.ascii	"Failed to acquire DRC, rc: %d, drc index: %x\012\000"
	.align	2
.LC2:
	.ascii	"configure-connector failed for drc %x\012\000"
	.align	2
.LC3:
	.ascii	"Failed to attach node %pOF, rc: %d, drc index: %x\012"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"Successfully added %pOF, drc index: %x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmem_drc_add_node, %function
pmem_drc_add_node:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, .L14
	mov	r1, r4
	bl	pr_debug
	mov	r0, r4
	bl	dlpar_acquire_drc
	subs	r1, r0, #0
	bne	.L11
	ldr	r5, .L14+4
	mov	r0, r4
	bl	cpu_to_be32
	ldr	r1, [r5]
	bl	dlpar_configure_connector
	subs	r6, r0, #0
	beq	.L12
	ldr	r1, [r5]
	bl	dlpar_attach_node
	subs	r5, r0, #0
	bne	.L13
	mov	r2, r4
	mov	r1, r6
	ldr	r0, .L14+8
	bl	pr_info
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L11:
	mov	r2, r4
	ldr	r0, .L14+12
	bl	pr_err
	ldr	r3, .L14+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L13:
	mov	r3, r4
	mov	r2, r5
	mov	r1, r6
	ldr	r0, .L14+20
	bl	pr_err
	mov	r0, r4
	bl	dlpar_release_drc
	cmp	r0, #0
	beq	.L1
	mov	r0, r6
	bl	dlpar_free_cc_nodes
	b	.L1
.L12:
	mov	r1, r4
	ldr	r0, .L14+24
	bl	pr_err
	mov	r0, r4
	bl	dlpar_release_drc
	ldr	r3, .L14+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	pmem_node
	.word	.LC4
	.word	.LC1
	.word	EINVAL
	.word	.LC3
	.word	.LC2
	.size	pmem_drc_add_node, .-pmem_drc_add_node
	.comm	pmem_node,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
