	.file	"extr_dlpar.c_dlpar_parse_id_type.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" "
.LC1:
	.string	"indexed-count"
.LC2:
	.string	"No DRC count specified.\n"
.LC3:
	.string	"Invalid DRC count specified.\n"
.LC4:
	.string	"No DRC Index specified.\n"
.LC5:
	.string	"Invalid DRC Index specified.\n"
.LC6:
	.string	"index"
.LC7:
	.string	"count"
.LC8:
	.string	"Invalid id_type specified.\n"
	.text
	.p2align 4
	.type	dlpar_parse_id_type, @function
dlpar_parse_id_type:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	lea	rsi, .LC0[rip]
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	strsep@PLT
	test	rax, rax
	je	.L17
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	sysfs_streq@PLT
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR PSERIES_HP_ELOG_ID_DRC_IC[rip]
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	mov	DWORD PTR 32[rbx], eax
	call	strsep@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L18
	xor	esi, esi
	mov	rdx, rsp
	call	kstrtou32@PLT
	test	rax, rax
	jne	.L19
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	call	strsep@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L20
	xor	esi, esi
	lea	rdx, 4[rsp]
	call	kstrtou32@PLT
	test	rax, rax
	jne	.L21
	mov	edi, DWORD PTR [rsp]
	call	cpu_to_be32@PLT
	mov	edi, DWORD PTR 4[rsp]
	mov	QWORD PTR 24[rbx], rax
	call	cpu_to_be32@PLT
	mov	QWORD PTR 16[rbx], rax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	call	sysfs_streq@PLT
	test	rax, rax
	jne	.L23
	lea	rsi, .LC7[rip]
	mov	rdi, rbp
	call	sysfs_streq@PLT
	test	rax, rax
	je	.L12
	mov	eax, DWORD PTR PSERIES_HP_ELOG_ID_DRC_COUNT[rip]
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	mov	DWORD PTR 32[rbx], eax
	call	strsep@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L18
	xor	esi, esi
	mov	rdx, rsp
	call	kstrtou32@PLT
	test	rax, rax
	jne	.L19
	mov	edi, DWORD PTR [rsp]
	call	cpu_to_be32@PLT
	mov	QWORD PTR [rbx], rax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, .LC8[rip]
	call	pr_err@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L24
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	eax, DWORD PTR PSERIES_HP_ELOG_ID_DRC_INDEX[rip]
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	mov	DWORD PTR 32[rbx], eax
	call	strsep@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L20
	xor	esi, esi
	lea	rdx, 4[rsp]
	call	kstrtou32@PLT
	test	rax, rax
	jne	.L21
	mov	edi, DWORD PTR 4[rsp]
	call	cpu_to_be32@PLT
	mov	QWORD PTR 8[rbx], rax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rdi, .LC3[rip]
	call	pr_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, .LC5[rip]
	call	pr_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rdi, .LC2[rip]
	call	pr_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rdi, .LC4[rip]
	call	pr_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dlpar_parse_id_type, .-dlpar_parse_id_type
	.comm	PSERIES_HP_ELOG_ID_DRC_INDEX,4,4
	.comm	PSERIES_HP_ELOG_ID_DRC_IC,4,4
	.comm	PSERIES_HP_ELOG_ID_DRC_COUNT,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_dlpar.c_dlpar_parse_id_type.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	" \000"
	.align	2
.LC1:
	.ascii	"indexed-count\000"
	.align	2
.LC2:
	.ascii	"No DRC count specified.\012\000"
	.align	2
.LC3:
	.ascii	"Invalid DRC count specified.\012\000"
	.align	2
.LC4:
	.ascii	"No DRC Index specified.\012\000"
	.align	2
.LC5:
	.ascii	"Invalid DRC Index specified.\012\000"
	.align	2
.LC6:
	.ascii	"index\000"
	.align	2
.LC7:
	.ascii	"count\000"
	.align	2
.LC8:
	.ascii	"Invalid id_type specified.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dlpar_parse_id_type, %function
dlpar_parse_id_type:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L25
	sub	sp, sp, #16
	mov	r5, r1
	ldr	r1, .L25+4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r7, r0
	bl	strsep
	subs	r4, r0, #0
	beq	.L17
	ldr	r1, .L25+8
	bl	sysfs_streq
	subs	r6, r0, #0
	beq	.L4
	ldr	r3, .L25+12
	mov	r0, r7
	ldr	r3, [r3]
	ldr	r1, .L25+4
	str	r3, [r5, #16]
	bl	strsep
	cmp	r0, #0
	beq	.L18
	mov	r1, #0
	add	r2, sp, #4
	bl	kstrtou32
	subs	r4, r0, #0
	bne	.L19
	mov	r0, r7
	ldr	r1, .L25+4
	bl	strsep
	cmp	r0, #0
	beq	.L20
	mov	r1, r4
	add	r2, sp, #8
	bl	kstrtou32
	subs	r4, r0, #0
	bne	.L21
	ldr	r0, [sp, #4]
	bl	cpu_to_be32
	mov	r3, r0
	ldr	r0, [sp, #8]
	str	r3, [r5, #12]
	bl	cpu_to_be32
	str	r0, [r5, #8]
	b	.L1
.L4:
	mov	r0, r4
	ldr	r1, .L25+16
	bl	sysfs_streq
	subs	r8, r0, #0
	bne	.L23
	mov	r0, r4
	ldr	r1, .L25+20
	bl	sysfs_streq
	cmp	r0, #0
	beq	.L12
	ldr	r3, .L25+24
	mov	r0, r7
	ldr	r3, [r3]
	ldr	r1, .L25+4
	str	r3, [r5, #16]
	bl	strsep
	cmp	r0, #0
	beq	.L18
	mov	r1, r8
	add	r2, sp, #4
	bl	kstrtou32
	subs	r4, r0, #0
	bne	.L19
	ldr	r0, [sp, #4]
	bl	cpu_to_be32
	str	r0, [r5]
	b	.L1
.L12:
	ldr	r0, .L25+28
	bl	pr_err
.L17:
	ldr	r3, .L25+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	ldr	r3, .L25+36
	mov	r0, r7
	ldr	r3, [r3]
	ldr	r1, .L25+4
	str	r3, [r5, #16]
	bl	strsep
	cmp	r0, #0
	beq	.L20
	mov	r1, r6
	add	r2, sp, #8
	bl	kstrtou32
	subs	r4, r0, #0
	bne	.L21
	ldr	r0, [sp, #8]
	bl	cpu_to_be32
	str	r0, [r5, #4]
	b	.L1
.L19:
	ldr	r0, .L25+40
	bl	pr_err
	ldr	r3, .L25+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L21:
	ldr	r0, .L25+44
	bl	pr_err
	ldr	r3, .L25+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L18:
	ldr	r0, .L25+48
	bl	pr_err
	ldr	r3, .L25+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L20:
	ldr	r0, .L25+52
	bl	pr_err
	ldr	r3, .L25+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	PSERIES_HP_ELOG_ID_DRC_IC
	.word	.LC6
	.word	.LC7
	.word	PSERIES_HP_ELOG_ID_DRC_COUNT
	.word	.LC8
	.word	EINVAL
	.word	PSERIES_HP_ELOG_ID_DRC_INDEX
	.word	.LC3
	.word	.LC5
	.word	.LC2
	.word	.LC4
	.size	dlpar_parse_id_type, .-dlpar_parse_id_type
	.comm	PSERIES_HP_ELOG_ID_DRC_INDEX,4,4
	.comm	PSERIES_HP_ELOG_ID_DRC_IC,4,4
	.comm	PSERIES_HP_ELOG_ID_DRC_COUNT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
