	.file	"extr_rpadlpar_sysfs.c_remove_slot_store.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	remove_slot_store, @function
remove_slot_store:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rsi, rdx
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	.cfi_offset 3, -24
	mov	rbx, rcx
	sub	rsp, 24
	movsx	rcx, DWORD PTR MAX_DRC_NAME_LEN[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rdi, rsp
	lea	rax, 15[rcx]
	mov	rdx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rdx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L3
.L14:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L14
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L15
	xor	eax, eax
	cmp	rcx, rbx
	ja	.L16
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rsi, QWORD PTR -24[rbp]
	xor	rsi, QWORD PTR fs:40
	jne	.L17
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdx, rbx
	mov	rdi, rsp
	call	memcpy@PLT
	mov	esi, 10
	mov	rdi, rsp
	call	strchr@PLT
	lea	rdx, [rsp+rbx]
	mov	rdi, rsp
	test	rax, rax
	cmove	rax, rdx
	mov	BYTE PTR [rax], 0
	call	dlpar_remove_slot@PLT
	test	eax, eax
	cmove	eax, ebx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	or	QWORD PTR -8[rsp+rdx], 0
	xor	eax, eax
	cmp	rcx, rbx
	jbe	.L1
	jmp	.L16
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	remove_slot_store, .-remove_slot_store
	.comm	MAX_DRC_NAME_LEN,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_rpadlpar_sysfs.c_remove_slot_store.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_slot_store, %function
remove_slot_store:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	mov	r4, r3
	ldr	r3, .L9
	ldr	r1, [r3]
	ldr	r3, .L9+4
	cmp	r1, r4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	add	r3, r1, #7
	bic	r3, r3, #7
	movls	r0, #0
	sub	sp, sp, r3
	bls	.L1
	mov	r1, r2
	mov	r0, sp
	mov	r2, r4
	bl	memcpy
	mov	r1, #10
	mov	r0, sp
	bl	strchr
	mov	r5, sp
	mov	r2, #0
	subs	r3, r0, #0
	addeq	r3, sp, r4
	mov	r0, r5
	strb	r2, [r3]
	bl	dlpar_remove_slot
	cmp	r0, #0
	moveq	r0, r4
.L1:
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	MAX_DRC_NAME_LEN
	.word	.LC0
	.size	remove_slot_store, .-remove_slot_store
	.comm	MAX_DRC_NAME_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
