	.file	"extr_sony-laptop.c_sony_nc_battery_care_limit_show.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.text
	.p2align 4
	.type	sony_nc_battery_care_limit_show, @function
sony_nc_battery_care_limit_show:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	esi, esi
	mov	rbp, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR bcare_ctl[rip]
	lea	rdx, 4[rsp]
	mov	edi, DWORD PTR [rax]
	call	sony_call_snc_handle@PLT
	test	rax, rax
	jne	.L12
	mov	eax, DWORD PTR 4[rsp]
	mov	ecx, eax
	and	ecx, 1
	jne	.L13
.L4:
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	call	snprintf@PLT
.L1:
	mov	rsi, QWORD PTR 8[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	shr	eax, 4
	and	eax, 3
	sub	eax, 1
	cmp	eax, 2
	ja	.L6
	lea	rdx, CSWTCH.7[rip]
	mov	ecx, DWORD PTR [rdx+rax*4]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
.L6:
	xor	ecx, ecx
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	sony_nc_battery_care_limit_show, .-sony_nc_battery_care_limit_show
	.section	.rodata
	.align 8
	.type	CSWTCH.7, @object
	.size	CSWTCH.7, 12
CSWTCH.7:
	.long	80
	.long	50
	.long	100
	.comm	bcare_ctl,8,8
	.comm	PAGE_SIZE,4,4
	.comm	EIO,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_sony-laptop.c_sony_nc_battery_care_limit_show.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sony_nc_battery_care_limit_show, %function
sony_nc_battery_care_limit_show:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r1, .L15
	sub	sp, sp, #8
	ldr	r0, [r1]
	ldr	r3, .L15+4
	mov	r4, r2
	mov	r1, #0
	mov	r2, sp
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	sony_call_snc_handle
	cmp	r0, #0
	bne	.L12
	ldr	r1, [sp]
	ands	r3, r1, #1
	bne	.L13
.L4:
	ldr	r2, .L15+8
	mov	r0, r4
	ldr	r1, [r2]
	ldr	r2, .L15+12
	bl	snprintf
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L13:
	lsr	r1, r1, #4
	and	r1, r1, #3
	sub	r1, r1, #1
	cmp	r1, #2
	ldrls	r3, .L15+16
	movhi	r3, r0
	ldrls	r3, [r3, r1, lsl #2]
	b	.L4
.L12:
	ldr	r3, .L15+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	bcare_ctl
	.word	.LC1
	.word	PAGE_SIZE
	.word	.LC0
	.word	.LANCHOR0
	.word	EIO
	.size	sony_nc_battery_care_limit_show, .-sony_nc_battery_care_limit_show
	.comm	bcare_ctl,4,4
	.comm	PAGE_SIZE,4,4
	.comm	EIO,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	CSWTCH.7, %object
	.size	CSWTCH.7, 12
CSWTCH.7:
	.word	80
	.word	50
	.word	100
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
