	.file	"extr_corgi_lcd.c_setup_gpio_backlight.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"BL_ON"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"failed to request GPIO%d for backlight_on\n"
	.section	.rodata.str1.1
.LC2:
	.string	"BL_CONT"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"failed to request GPIO%d for backlight_cont\n"
	.text
	.p2align 4
	.type	setup_gpio_backlight, @function
setup_gpio_backlight:
.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
	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
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	QWORD PTR [rdi], -1
	mov	r13, QWORD PTR 16[rdi]
	mov	edi, DWORD PTR [rsi]
	call	gpio_is_valid@PLT
	test	rax, rax
	je	.L2
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	call	gpio_request@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L15
	mov	edi, DWORD PTR [rbx]
	xor	esi, esi
	mov	DWORD PTR 0[rbp], edi
	call	gpio_direction_output@PLT
.L2:
	mov	edi, DWORD PTR 4[rbx]
	xor	r12d, r12d
	call	gpio_is_valid@PLT
	test	rax, rax
	jne	.L16
.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
.L16:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	lea	rsi, .LC2[rip]
	call	gpio_request@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L17
	mov	eax, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 0[rbp]
	mov	DWORD PTR 4[rbp], eax
	call	gpio_is_valid@PLT
	test	rax, rax
	je	.L7
	mov	DWORD PTR 8[rbp], 1
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, 1
	call	gpio_direction_output@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edx, DWORD PTR [rbx]
	mov	rdi, r13
	lea	rsi, .LC1[rip]
	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
.L17:
	.cfi_restore_state
	mov	edx, DWORD PTR 4[rbx]
	mov	rdi, r13
	lea	rsi, .LC3[rip]
	call	dev_err@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	gpio_is_valid@PLT
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR 0[rbp]
	call	gpio_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	DWORD PTR 8[rbp], 0
	mov	edi, DWORD PTR 4[rbp]
	xor	esi, esi
	call	gpio_direction_output@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	setup_gpio_backlight, .-setup_gpio_backlight
	.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_corgi_lcd.c_setup_gpio_backlight.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"BL_ON\000"
	.align	2
.LC1:
	.ascii	"failed to request GPIO%d for backlight_on\012\000"
	.align	2
.LC2:
	.ascii	"BL_CONT\000"
	.align	2
.LC3:
	.ascii	"failed to request GPIO%d for backlight_cont\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_gpio_backlight, %function
setup_gpio_backlight:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mvn	r3, #0
	mov	r5, r0
	ldr	r0, [r1]
	str	r3, [r5]
	str	r3, [r5, #4]
	mov	r6, r1
	ldr	r7, [r5, #12]
	bl	gpio_is_valid
	cmp	r0, #0
	beq	.L2
	ldr	r1, .L19
	ldr	r0, [r6]
	bl	gpio_request
	subs	r4, r0, #0
	bne	.L16
	ldr	r0, [r6]
	mov	r1, r4
	str	r0, [r5]
	bl	gpio_direction_output
.L2:
	ldr	r0, [r6, #4]
	bl	gpio_is_valid
	subs	r4, r0, #0
	bne	.L17
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r1, .L19+4
	ldr	r0, [r6, #4]
	bl	gpio_request
	subs	r4, r0, #0
	bne	.L18
	ldr	r3, [r6, #4]
	ldr	r0, [r5]
	str	r3, [r5, #4]
	bl	gpio_is_valid
	cmp	r0, #0
	movne	r1, #1
	moveq	r1, r4
	ldrne	r0, [r5, #4]
	ldreq	r0, [r5, #4]
	strne	r1, [r5, #8]
	streq	r4, [r5, #8]
	bl	gpio_direction_output
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	mov	r0, r7
	ldr	r2, [r6]
	ldr	r1, .L19+8
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	ldr	r2, [r6, #4]
	ldr	r1, .L19+12
	mov	r0, r7
	bl	dev_err
	ldr	r0, [r5]
	bl	gpio_is_valid
	cmp	r0, #0
	beq	.L1
	ldr	r0, [r5]
	bl	gpio_free
	b	.L1
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.word	.LC3
	.size	setup_gpio_backlight, .-setup_gpio_backlight
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
