	.file	"extr_gpio-pch.c_pch_gpio_direction_output.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pch_gpio_direction_output, @function
pch_gpio_direction_output:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, 1
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	gpiochip_get_data@PLT
	mov	rsi, r13
	lea	r12, 8[rax]
	mov	rbp, rax
	mov	rdi, r12
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 16[rbp]
	lea	rdi, 4[rax]
	call	ioread32@PLT
	mov	ecx, r14d
	mov	edx, ebx
	sal	edx, cl
	mov	r14d, edx
	mov	edx, eax
	mov	edi, r14d
	or	edx, r14d
	not	edi
	and	edi, eax
	test	r15d, r15d
	mov	rax, QWORD PTR 16[rbp]
	cmovne	edi, edx
	lea	rsi, 4[rax]
	call	iowrite32@PLT
	mov	rdi, QWORD PTR 16[rbp]
	call	ioread32@PLT
	mov	rcx, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR gpio_pins[rip]
	mov	rsi, QWORD PTR 16[rbp]
	mov	ecx, DWORD PTR [rdx+rcx*4]
	sal	ebx, cl
	lea	edi, -1[rbx]
	and	edi, eax
	or	edi, r14d
	call	iowrite32@PLT
	mov	rsi, r13
	mov	rdi, r12
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pch_gpio_direction_output, .-pch_gpio_direction_output
	.comm	gpio_pins,8,8
	.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_gpio-pch.c_pch_gpio_direction_output.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pch_gpio_direction_output, %function
pch_gpio_direction_output:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	mov	r5, r1
	bl	gpiochip_get_data
	mov	r4, r0
	add	r7, r0, #4
	mov	r1, #0
	mov	r0, r7
	bl	spin_lock_irqsave
	ldr	r0, [r4, #8]
	add	r0, r0, #4
	bl	ioread32
	mov	r1, #1
	lsl	r5, r1, r5
	ldr	r1, [r4, #8]
	cmp	r6, #0
	orrne	r0, r0, r5
	biceq	r0, r0, r5
	add	r1, r1, #4
	bl	iowrite32
	ldr	r0, [r4, #8]
	bl	ioread32
	mvn	r2, #0
	ldr	r3, .L6
	ldr	ip, [r4]
	ldr	r3, [r3]
	ldr	r1, [r4, #8]
	ldr	r3, [r3, ip, lsl #2]
	bic	r0, r0, r2, lsl r3
	orr	r0, r0, r5
	bl	iowrite32
	mov	r0, r7
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	gpio_pins
	.size	pch_gpio_direction_output, .-pch_gpio_direction_output
	.comm	gpio_pins,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
