	.file	"extr_ds2780_battery.c_ds2780_set_pio_pin.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Invalid pio_pin setting (0 or 1)\n"
	.text
	.p2align 4
	.type	ds2780_set_pio_pin, @function
ds2780_set_pio_pin:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r13, 4[rsp]
	call	to_power_supply@PLT
	mov	rdi, rax
	call	to_ds2780_device_info@PLT
	xor	esi, esi
	mov	rdx, r13
	mov	rdi, rbp
	mov	r12, rax
	call	kstrtou8@PLT
	test	eax, eax
	js	.L1
	cmp	DWORD PTR 4[rsp], 1
	ja	.L7
	mov	edx, DWORD PTR DS2780_SFR_REG[rip]
	mov	ecx, 4
	mov	rsi, r13
	mov	rdi, r12
	call	ds2780_write@PLT
	test	eax, eax
	cmovns	eax, ebx
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR [r12]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ds2780_set_pio_pin, .-ds2780_set_pio_pin
	.comm	EINVAL,4,4
	.comm	DS2780_SFR_REG,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_ds2780_battery.c_ds2780_set_pio_pin.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid pio_pin setting (0 or 1)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ds2780_set_pio_pin, %function
ds2780_set_pio_pin:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r5, r3
	ldr	r3, .L9
	sub	sp, sp, #12
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	to_power_supply
	bl	to_ds2780_device_info
	mov	ip, r0
	mov	r2, sp
	mov	r0, r4
	mov	r1, #0
	mov	r4, ip
	bl	kstrtou8
	cmp	r0, #0
	blt	.L1
	ldr	r3, [sp]
	cmp	r3, #1
	bhi	.L7
	ldr	r3, .L9+4
	mov	r1, sp
	ldr	r2, [r3]
	mov	r0, r4
	mov	r3, #4
	bl	ds2780_write
	cmp	r0, #0
	movge	r0, r5
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	ldr	r0, [r4]
	ldr	r1, .L9+8
	bl	dev_err
	ldr	r3, .L9+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	DS2780_SFR_REG
	.word	.LC0
	.word	EINVAL
	.size	ds2780_set_pio_pin, .-ds2780_set_pio_pin
	.comm	EINVAL,4,4
	.comm	DS2780_SFR_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
