	.file	"extr_as3722-regulator.c_as3722_sd_set_mode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Reg 0x%02x update failed: %d\n"
	.text
	.p2align 4
	.type	as3722_sd_set_mode, @function
as3722_sd_set_mode:
.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
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	rdev_get_drvdata@PLT
	mov	rdi, rbp
	mov	r13, QWORD PTR 8[rax]
	mov	rbx, rax
	call	rdev_get_id@PLT
	sal	rax, 4
	mov	rbp, rax
	add	rax, QWORD PTR as3722_reg_lookup[rip]
	mov	esi, DWORD PTR 8[rax]
	test	esi, esi
	je	.L9
	cmp	r12d, 128
	je	.L4
	cmp	r12d, 129
	jne	.L5
	mov	rcx, QWORD PTR [rax]
	mov	rdx, rcx
.L6:
	mov	rdi, r13
	call	as3722_update_bits@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L10
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdx, QWORD PTR [rax]
	xor	ecx, ecx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r12d, DWORD PTR ERANGE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rax, QWORD PTR as3722_reg_lookup[rip]
	mov	edi, DWORD PTR [rbx]
	mov	ecx, r12d
	lea	rsi, .LC0[rip]
	mov	edx, DWORD PTR 8[rax+rbp]
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	as3722_sd_set_mode, .-as3722_sd_set_mode
	.comm	as3722_reg_lookup,8,8
	.comm	ERANGE,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_as3722-regulator.c_as3722_sd_set_mode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Reg 0x%02x update failed: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	as3722_sd_set_mode, %function
as3722_sd_set_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r6, r0
	bl	rdev_get_drvdata
	mov	r5, r0
	mov	r0, r6
	ldr	r8, [r5, #4]
	bl	rdev_get_id
	ldr	r6, .L11
	ldr	r2, [r6]
	add	r3, r2, r0, lsl #3
	ldr	r1, [r3, #4]
	cmp	r1, #0
	beq	.L9
	cmp	r4, #128
	lsl	r7, r0, #3
	beq	.L4
	cmp	r4, #129
	bne	.L5
	ldr	r3, [r2, r0, lsl #3]
	mov	r2, r3
.L6:
	mov	r0, r8
	bl	as3722_update_bits
	subs	r4, r0, #0
	blt	.L10
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, .L11+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r3, #0
	ldr	r2, [r2, r0, lsl #3]
	b	.L6
.L9:
	ldr	r3, .L11+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, [r6]
	ldr	r0, [r5]
	add	r7, r3, r7
	ldr	r2, [r7, #4]
	mov	r3, r4
	ldr	r1, .L11+12
	bl	dev_err
	b	.L1
.L12:
	.align	2
.L11:
	.word	as3722_reg_lookup
	.word	EINVAL
	.word	ERANGE
	.word	.LC0
	.size	as3722_sd_set_mode, .-as3722_sd_set_mode
	.comm	as3722_reg_lookup,4,4
	.comm	ERANGE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
