	.file	"extr_pinctrl-lochnagar.c_lochnagar_pin_set_mux.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to get channel for %s: %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Set pin %s to 0x%x\n"
.LC2:
	.string	"Failed to set %s mux: %d\n"
	.text
	.p2align 4
	.type	lochnagar_pin_set_mux, @function
lochnagar_pin_set_mux:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 8[rdi]
	cmp	DWORD PTR [rax], 128
	je	.L2
	mov	esi, edx
	call	lochnagar2_get_gpio_chan@PLT
	mov	r12d, eax
	mov	r13d, eax
	test	eax, eax
	js	.L10
.L2:
	mov	edx, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rbx]
	mov	ecx, r13d
	lea	rsi, .LC1[rip]
	call	dev_dbg@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, r13d
	mov	edi, DWORD PTR 4[rax]
	call	regmap_write@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L11
.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
.L11:
	.cfi_restore_state
	mov	edx, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rbx]
	mov	ecx, eax
	lea	rsi, .LC2[rip]
	xor	r12d, r12d
	call	dev_err@PLT
	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
.L10:
	.cfi_restore_state
	mov	edx, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rbx]
	mov	ecx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	lochnagar_pin_set_mux, .-lochnagar_pin_set_mux
	.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_pinctrl-lochnagar.c_lochnagar_pin_set_mux.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to get channel for %s: %d\012\000"
	.align	2
.LC1:
	.ascii	"Set pin %s to 0x%x\012\000"
	.align	2
.LC2:
	.ascii	"Failed to set %s mux: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lochnagar_pin_set_mux, %function
lochnagar_pin_set_mux:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r5, r0
	cmp	r3, #128
	mov	r6, r1
	mov	r4, r2
	beq	.L2
	mov	r1, r2
	bl	lochnagar2_get_gpio_chan
	subs	r4, r0, #0
	blt	.L13
.L2:
	mov	r3, r4
	ldr	r2, [r6]
	ldr	r1, .L15
	ldr	r0, [r5]
	bl	dev_dbg
	ldr	r3, [r5, #4]
	mov	r2, r4
	ldr	r0, [r3, #4]
	ldr	r1, [r6, #4]
	bl	regmap_write
	subs	r4, r0, #0
	bne	.L14
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L14:
	mov	r3, r4
	mov	r4, #0
	ldr	r2, [r6]
	ldr	r0, [r5]
	ldr	r1, .L15+4
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L13:
	mov	r3, r4
	ldr	r2, [r6]
	ldr	r0, [r5]
	ldr	r1, .L15+8
	bl	dev_err
	b	.L1
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	lochnagar_pin_set_mux, .-lochnagar_pin_set_mux
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
