	.file	"extr_patch_sigmatel.c_stac_capture_led_hook.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stac_capture_led_hook, @function
stac_capture_led_hook:
.LFB0:
	.cfi_startproc
	endbr64
	test	rsi, rsi
	je	.L1
	mov	rdx, QWORD PTR [rsi]
	mov	rax, QWORD PTR [rdi]
	cmp	QWORD PTR [rdx], 0
	mov	ecx, DWORD PTR [rax]
	jne	.L3
	cmp	QWORD PTR 8[rdx], 0
	jne	.L3
	cmp	ecx, 1
	je	.L1
	mov	ecx, DWORD PTR 4[rax]
	or	ecx, DWORD PTR 16[rax]
	mov	DWORD PTR [rax], 1
	mov	edx, DWORD PTR 8[rax]
	mov	esi, DWORD PTR 12[rax]
	mov	DWORD PTR 4[rax], ecx
	jmp	stac_gpio_set@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	test	ecx, ecx
	je	.L1
	mov	ecx, DWORD PTR 16[rax]
	mov	edx, DWORD PTR 8[rax]
	mov	DWORD PTR [rax], 0
	mov	esi, DWORD PTR 12[rax]
	not	ecx
	and	ecx, DWORD PTR 4[rax]
	mov	DWORD PTR 4[rax], ecx
	jmp	stac_gpio_set@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	stac_capture_led_hook, .-stac_capture_led_hook
	.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_patch_sigmatel.c_stac_capture_led_hook.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stac_capture_led_hook, %function
stac_capture_led_hook:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	cmp	r1, #0
	bxeq	lr
	ldr	r3, [r1]
	ldr	r1, [r0]
	ldr	r2, [r3]
	ldr	ip, [r1]
	cmp	r2, #0
	bne	.L3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L3
	cmp	ip, #1
	bxeq	lr
	mov	ip, #1
	ldr	r3, [r1, #4]
	ldr	r2, [r1, #16]
	str	ip, [r1]
	orr	r3, r3, r2
	str	r3, [r1, #4]
	ldr	r2, [r1, #8]
	ldr	r1, [r1, #12]
	b	stac_gpio_set
.L3:
	cmp	ip, #0
	bxeq	lr
	mov	ip, #0
	ldr	r2, [r1, #16]
	ldr	r3, [r1, #4]
	str	ip, [r1]
	bic	r3, r3, r2
	str	r3, [r1, #4]
	ldr	r2, [r1, #8]
	ldr	r1, [r1, #12]
	b	stac_gpio_set
	.size	stac_capture_led_hook, .-stac_capture_led_hook
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
