	.file	"extr_extcon-arizona.c_arizona_extcon_set_mode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Set jack polarity to %d\n"
	.text
	.p2align 4
	.type	arizona_extcon_set_mode, @function
arizona_extcon_set_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	eax, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	cdq
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 24[rdi]
	idiv	DWORD PTR [rdi]
	movsx	rax, edx
	mov	r13, rax
	lea	rbp, [rax+rax*2]
	mov	rax, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR 16[rdi]
	sal	rbp, 2
	mov	esi, DWORD PTR 8[rax+rbp]
	call	gpiod_set_value_cansleep@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 4[r12]
	mov	ecx, DWORD PTR ARIZONA_MICD_BIAS_SRC_SHIFT[rip]
	mov	edx, DWORD PTR ARIZONA_MICD_BIAS_SRC_MASK[rip]
	mov	eax, DWORD PTR [rax+rbp]
	mov	esi, DWORD PTR ARIZONA_MIC_DETECT_1[rip]
	sal	eax, cl
	mov	ecx, eax
	call	regmap_update_bits@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 4[r12]
	mov	edx, DWORD PTR ARIZONA_ACCDET_SRC[rip]
	mov	esi, DWORD PTR ARIZONA_ACCESSORY_DETECT_MODE_1[rip]
	mov	ecx, DWORD PTR 4[rax+rbp]
	call	regmap_update_bits@PLT
	mov	DWORD PTR 4[rbx], r13d
	mov	edi, DWORD PTR [r12]
	mov	edx, r13d
	add	rsp, 8
	.cfi_def_cfa_offset 40
	lea	rsi, .LC0[rip]
	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
	jmp	dev_dbg@PLT
	.cfi_endproc
.LFE0:
	.size	arizona_extcon_set_mode, .-arizona_extcon_set_mode
	.comm	ARIZONA_MIC_DETECT_1,4,4
	.comm	ARIZONA_MICD_BIAS_SRC_SHIFT,4,4
	.comm	ARIZONA_MICD_BIAS_SRC_MASK,4,4
	.comm	ARIZONA_ACCESSORY_DETECT_MODE_1,4,4
	.comm	ARIZONA_ACCDET_SRC,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_extcon-arizona.c_arizona_extcon_set_mode.c"
	.text
	.global	__aeabi_idivmod
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Set jack polarity to %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arizona_extcon_set_mode, %function
arizona_extcon_set_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r0, r1
	ldr	r1, [r4]
	bl	__aeabi_idivmod
	mov	r5, r1
	ldr	r3, [r4, #8]
	add	r6, r1, r1, lsl #1
	add	r3, r3, r6, lsl #2
	ldr	r1, [r3, #8]
	ldr	r0, [r4, #12]
	ldr	r7, [r4, #16]
	bl	gpiod_set_value_cansleep
	ldr	r2, [r4, #8]
	ldr	r3, .L4
	lsl	r6, r6, #2
	ldr	r0, [r2, r6]
	ldr	r3, [r3]
	ldr	r2, .L4+4
	ldr	r1, .L4+8
	lsl	r3, r0, r3
	ldr	r2, [r2]
	ldr	r0, [r7, #4]
	ldr	r1, [r1]
	bl	regmap_update_bits
	ldr	r3, [r4, #8]
	ldr	r2, .L4+12
	ldr	r1, .L4+16
	add	r6, r3, r6
	ldr	r3, [r6, #4]
	ldr	r0, [r7, #4]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	regmap_update_bits
	ldr	r0, [r7]
	mov	r2, r5
	str	r5, [r4, #4]
	ldr	r1, .L4+20
	pop	{r4, r5, r6, r7, r8, lr}
	b	dev_dbg
.L5:
	.align	2
.L4:
	.word	ARIZONA_MICD_BIAS_SRC_SHIFT
	.word	ARIZONA_MICD_BIAS_SRC_MASK
	.word	ARIZONA_MIC_DETECT_1
	.word	ARIZONA_ACCDET_SRC
	.word	ARIZONA_ACCESSORY_DETECT_MODE_1
	.word	.LC0
	.size	arizona_extcon_set_mode, .-arizona_extcon_set_mode
	.comm	ARIZONA_MIC_DETECT_1,4,4
	.comm	ARIZONA_MICD_BIAS_SRC_SHIFT,4,4
	.comm	ARIZONA_MICD_BIAS_SRC_MASK,4,4
	.comm	ARIZONA_ACCESSORY_DETECT_MODE_1,4,4
	.comm	ARIZONA_ACCDET_SRC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
