	.file	"extr_gpio-cs5535.c_chip_gpio_request.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"pin %u is not available (check mask)\n"
	.text
	.p2align 4
	.type	chip_gpio_request, @function
chip_gpio_request:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	gpiochip_get_data@PLT
	xor	esi, esi
	mov	rdi, rax
	mov	rbp, rax
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR mask[rip]
	bt	eax, r12d
	jnc	.L6
	mov	edx, DWORD PTR GPIO_OUTPUT_AUX1[rip]
	mov	esi, r12d
	mov	rdi, rbp
	call	__cs5535_gpio_clear@PLT
	mov	edx, DWORD PTR GPIO_OUTPUT_AUX2[rip]
	mov	esi, r12d
	mov	rdi, rbp
	call	__cs5535_gpio_clear@PLT
	mov	edx, DWORD PTR GPIO_INPUT_AUX1[rip]
	mov	esi, r12d
	mov	rdi, rbp
	call	__cs5535_gpio_clear@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbp]
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	call	dev_info@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	chip_gpio_request, .-chip_gpio_request
	.comm	mask,4,4
	.comm	GPIO_OUTPUT_AUX2,4,4
	.comm	GPIO_OUTPUT_AUX1,4,4
	.comm	GPIO_INPUT_AUX1,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_gpio-cs5535.c_chip_gpio_request.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pin %u is not available (check mask)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	chip_gpio_request, %function
chip_gpio_request:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	bl	gpiochip_get_data
	mov	r1, #0
	mov	r4, r0
	bl	spin_lock_irqsave
	ldr	r3, .L7
	ldr	r3, [r3]
	asr	r3, r3, r5
	tst	r3, #1
	beq	.L6
	ldr	r3, .L7+4
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	bl	__cs5535_gpio_clear
	ldr	r3, .L7+8
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	bl	__cs5535_gpio_clear
	ldr	r3, .L7+12
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	bl	__cs5535_gpio_clear
	mov	r0, r4
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	mov	r2, r5
	ldr	r1, .L7+16
	ldr	r0, [r4, #4]
	bl	dev_info
	mov	r0, r4
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r3, .L7+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	mask
	.word	GPIO_OUTPUT_AUX1
	.word	GPIO_OUTPUT_AUX2
	.word	GPIO_INPUT_AUX1
	.word	.LC0
	.word	EINVAL
	.size	chip_gpio_request, .-chip_gpio_request
	.comm	mask,4,4
	.comm	GPIO_OUTPUT_AUX2,4,4
	.comm	GPIO_OUTPUT_AUX1,4,4
	.comm	GPIO_INPUT_AUX1,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
