	.file	"extr_sysfs.c_get_boolean.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"true"
.LC1:
	.string	"false"
.LC2:
	.string	"yes"
.LC3:
	.string	"no"
.LC4:
	.string	"off"
.LC5:
	.string	"on"
	.text
	.p2align 4
	.type	get_boolean, @function
get_boolean:
.LFB0:
	.cfi_startproc
	endbr64
	test	rsi, rsi
	jne	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	movzx	eax, BYTE PTR [rdi]
	cmp	al, 49
	je	.L7
	cmp	al, 48
	je	.L9
	mov	rbx, rsi
	cmp	rsi, 3
	ja	.L49
	je	.L11
	cmp	rsi, 2
	je	.L10
.L14:
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L49:
	.cfi_restore_state
	mov	edx, 4
	lea	rsi, .LC0[rip]
	call	memcmp@PLT
	test	rax, rax
	je	.L7
	cmp	rbx, 4
	je	.L11
	mov	edx, 5
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	memcmp@PLT
	test	rax, rax
	je	.L9
.L11:
	mov	edx, 3
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	memcmp@PLT
	test	rax, rax
	je	.L7
.L10:
	mov	edx, 2
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	memcmp@PLT
	test	rax, rax
	je	.L9
	mov	edx, 2
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	call	memcmp@PLT
	test	rax, rax
	je	.L7
	cmp	rbx, 2
	jbe	.L14
	mov	edx, 3
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	call	memcmp@PLT
	test	rax, rax
	jne	.L14
.L9:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_boolean, .-get_boolean
	.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_sysfs.c_get_boolean.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"true\000"
	.align	2
.LC1:
	.ascii	"false\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_boolean, %function
get_boolean:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r5, r1, #0
	beq	.L2
	ldrb	r3, [r0]	@ zero_extendqisi2
	mov	r4, r0
	cmp	r3, #49
	beq	.L18
	cmp	r3, #48
	beq	.L15
	cmp	r5, #3
	bls	.L4
	mov	r2, #4
	ldr	r1, .L39
	bl	memcmp
	cmp	r0, #0
	beq	.L18
	cmp	r5, #4
	beq	.L6
	mov	r2, #5
	mov	r0, r4
	ldr	r1, .L39+4
	bl	memcmp
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
.L6:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #121
	bne	.L9
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	cmp	r3, #101
	beq	.L37
.L9:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #110
	bne	.L19
	ldrb	r0, [r4, #1]	@ zero_extendqisi2
	subs	r0, r0, #111
	popeq	{r4, r5, r6, pc}
.L19:
	cmp	r3, #111
	beq	.L38
.L20:
	cmp	r5, #2
	bls	.L2
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L2
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	cmp	r3, #102
	bne	.L2
	ldrb	r0, [r4, #2]	@ zero_extendqisi2
	subs	r0, r0, #102
	popeq	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L39+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L37:
	ldrb	r3, [r4, #2]	@ zero_extendqisi2
	cmp	r3, #115
	bne	.L9
.L18:
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L4:
	beq	.L6
	cmp	r5, #2
	bne	.L2
	b	.L9
.L15:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L38:
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L18
	b	.L20
.L40:
	.align	2
.L39:
	.word	.LC0
	.word	.LC1
	.word	EINVAL
	.size	get_boolean, .-get_boolean
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
