	.file	"extr_parse-filter.c_create_arg_item.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to allocate filter arg"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"failed to allocate string filter arg"
	.section	.rodata.str1.1
.LC2:
	.string	"expected a value but found %s"
	.text
	.p2align 4
	.type	create_arg_item, @function
create_arg_item:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	allocate_arg@PLT
	test	rax, rax
	je	.L16
	mov	rbp, rax
	cmp	ebx, 129
	je	.L4
	mov	eax, ebx
	and	eax, -3
	cmp	eax, 128
	je	.L17
	mov	rdi, rbp
	call	free_arg@PLT
	mov	rdx, r12
	mov	rdi, r15
	xor	eax, eax
	lea	rsi, .LC2[rip]
	call	show_error@PLT
	mov	eax, DWORD PTR TEP_ERRNO__UNEXPECTED_TYPE[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	movsx	edi, BYTE PTR [r12]
	call	isdigit@PLT
	test	eax, eax
	jne	.L18
	mov	rsi, r12
	mov	rdi, r14
	call	tep_find_any_field@PLT
	test	rax, rax
	je	.L19
.L10:
	mov	rdx, QWORD PTR TEP_FILTER_ARG_FIELD[rip]
	mov	QWORD PTR 0[rbp], rax
	mov	QWORD PTR 8[rbp], rdx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR TEP_FILTER_ARG_VALUE[rip]
	cmp	ebx, 130
	mov	rdi, r12
	mov	QWORD PTR 8[rbp], rax
	mov	eax, DWORD PTR TEP_FILTER_STRING[rip]
	cmovne	eax, DWORD PTR TEP_FILTER_CHAR[rip]
	mov	DWORD PTR 24[rbp], eax
	call	strdup@PLT
	mov	DWORD PTR 28[rbp], eax
	test	eax, eax
	je	.L20
.L8:
	mov	QWORD PTR 0[r13], rbp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rax, QWORD PTR TEP_FILTER_ARG_VALUE[rip]
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r12
	mov	QWORD PTR 8[rbp], rax
	mov	eax, DWORD PTR TEP_FILTER_NUMBER[rip]
	mov	DWORD PTR 24[rbp], eax
	call	strtoull@PLT
	mov	DWORD PTR 20[rbp], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	xor	eax, eax
	call	show_error@PLT
	mov	eax, DWORD PTR TEP_ERRNO__MEM_ALLOC_FAILED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, rbp
	call	free_arg@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, r15
	xor	eax, eax
	call	show_error@PLT
	mov	eax, DWORD PTR TEP_ERRNO__MEM_ALLOC_FAILED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	esi, DWORD PTR COMM[rip]
	mov	rdi, r12
	call	strcmp@PLT
	mov	r8d, eax
	lea	rax, comm[rip]
	test	r8d, r8d
	je	.L10
	mov	esi, DWORD PTR CPU[rip]
	mov	rdi, r12
	call	strcmp@PLT
	test	eax, eax
	je	.L12
	mov	rax, QWORD PTR TEP_FILTER_ARG_BOOLEAN[rip]
	mov	QWORD PTR 8[rbp], rax
	mov	eax, DWORD PTR TEP_FILTER_FALSE[rip]
	mov	DWORD PTR 16[rbp], eax
	jmp	.L8
.L12:
	lea	rax, cpu[rip]
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	create_arg_item, .-create_arg_item
	.comm	cpu,4,4
	.comm	comm,4,4
	.comm	TEP_FILTER_STRING,4,4
	.comm	TEP_FILTER_NUMBER,4,4
	.comm	TEP_FILTER_FALSE,4,4
	.comm	TEP_FILTER_CHAR,4,4
	.comm	TEP_FILTER_ARG_VALUE,8,8
	.comm	TEP_FILTER_ARG_FIELD,8,8
	.comm	TEP_FILTER_ARG_BOOLEAN,8,8
	.comm	TEP_ERRNO__UNEXPECTED_TYPE,4,4
	.comm	TEP_ERRNO__MEM_ALLOC_FAILED,4,4
	.comm	CPU,4,4
	.comm	COMM,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_parse-filter.c_create_arg_item.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to allocate filter arg\000"
	.align	2
.LC1:
	.ascii	"failed to allocate string filter arg\000"
	.align	2
.LC2:
	.ascii	"expected a value but found %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_arg_item, %function
create_arg_item:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r0
	mov	r6, r1
	mov	r5, r2
	mov	r7, r3
	bl	allocate_arg
	subs	r4, r0, #0
	beq	.L15
	cmp	r5, #129
	beq	.L4
	bic	r3, r5, #2
	cmp	r3, #128
	beq	.L16
	bl	free_arg
	mov	r2, r6
	ldr	r1, .L20
	ldr	r0, [sp, #24]
	bl	show_error
	ldr	r3, .L20+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldrb	r0, [r6]	@ zero_extendqisi2
	bl	isdigit
	cmp	r0, #0
	bne	.L17
	mov	r0, r8
	mov	r1, r6
	bl	tep_find_any_field
	cmp	r0, #0
	beq	.L18
.L10:
	ldr	r3, .L20+8
	ldr	r3, [r3]
	stm	r4, {r0, r3}
	b	.L8
.L16:
	ldr	r3, .L20+12
	cmp	r5, #130
	ldr	r3, [r3]
	mov	r0, r6
	str	r3, [r4, #4]
	ldreq	r3, .L20+16
	ldrne	r3, .L20+20
	ldr	r3, [r3]
	str	r3, [r4, #16]
	bl	strdup
	cmp	r0, #0
	str	r0, [r4, #20]
	beq	.L19
.L8:
	mov	r0, #0
	str	r4, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r2, #0
	ldr	r1, .L20+12
	ldr	r3, .L20+24
	ldr	r1, [r1]
	ldr	r3, [r3]
	str	r1, [r4, #4]
	mov	r0, r6
	mov	r1, r2
	str	r3, [r4, #16]
	bl	strtoull
	str	r0, [r4, #12]
	b	.L8
.L15:
	ldr	r1, .L20+28
	ldr	r0, [sp, #24]
	bl	show_error
	ldr	r3, .L20+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	ldr	r3, .L20+36
	mov	r0, r6
	ldr	r1, [r3]
	bl	strcmp
	cmp	r0, #0
	ldreq	r0, .L20+40
	beq	.L10
	ldr	r3, .L20+44
	mov	r0, r6
	ldr	r1, [r3]
	bl	strcmp
	cmp	r0, #0
	beq	.L12
	ldr	r2, .L20+48
	ldr	r3, .L20+52
	ldr	r2, [r2]
	ldr	r3, [r3]
	stmib	r4, {r2, r3}
	b	.L8
.L12:
	ldr	r0, .L20+56
	b	.L10
.L19:
	mov	r0, r4
	bl	free_arg
	ldr	r1, .L20+60
	ldr	r0, [sp, #24]
	bl	show_error
	ldr	r3, .L20+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	.align	2
.L20:
	.word	.LC2
	.word	TEP_ERRNO__UNEXPECTED_TYPE
	.word	TEP_FILTER_ARG_FIELD
	.word	TEP_FILTER_ARG_VALUE
	.word	TEP_FILTER_STRING
	.word	TEP_FILTER_CHAR
	.word	TEP_FILTER_NUMBER
	.word	.LC0
	.word	TEP_ERRNO__MEM_ALLOC_FAILED
	.word	COMM
	.word	comm
	.word	CPU
	.word	TEP_FILTER_ARG_BOOLEAN
	.word	TEP_FILTER_FALSE
	.word	cpu
	.word	.LC1
	.size	create_arg_item, .-create_arg_item
	.comm	cpu,4,4
	.comm	comm,4,4
	.comm	TEP_FILTER_STRING,4,4
	.comm	TEP_FILTER_NUMBER,4,4
	.comm	TEP_FILTER_FALSE,4,4
	.comm	TEP_FILTER_CHAR,4,4
	.comm	TEP_FILTER_ARG_VALUE,4,4
	.comm	TEP_FILTER_ARG_FIELD,4,4
	.comm	TEP_FILTER_ARG_BOOLEAN,4,4
	.comm	TEP_ERRNO__UNEXPECTED_TYPE,4,4
	.comm	TEP_ERRNO__MEM_ALLOC_FAILED,4,4
	.comm	CPU,4,4
	.comm	COMM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
