	.file	"extr_hp_sdc.c_hp_sdc_request_timer_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	hp_sdc_request_timer_irq
	.type	hp_sdc_request_timer_irq, @function
hp_sdc_request_timer_irq:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L2
	cmp	QWORD PTR hp_sdc[rip+24], 0
	je	.L2
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	lea	rdi, hp_sdc[rip+8]
	call	write_lock_irq@PLT
	cmp	QWORD PTR hp_sdc[rip+16], 0
	je	.L5
	lea	rdi, hp_sdc[rip+8]
	call	write_unlock_irq@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR HP_SDC_IM_TIMERS[rip]
	mov	edx, DWORD PTR HP_SDC_IM_FH[rip]
	lea	rdi, hp_sdc[rip+8]
	mov	QWORD PTR hp_sdc[rip+16], rbx
	mov	DWORD PTR hp_sdc[rip], 1
	or	edx, DWORD PTR HP_SDC_IM_PT[rip]
	not	edx
	not	eax
	and	eax, DWORD PTR hp_sdc[rip+12]
	and	eax, edx
	mov	DWORD PTR hp_sdc[rip+12], eax
	call	write_unlock_irq@PLT
	lea	rdi, hp_sdc[rip+4]
	call	tasklet_schedule@PLT
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore 3
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	hp_sdc_request_timer_irq, .-hp_sdc_request_timer_irq
	.comm	hp_sdc,32,32
	.comm	HP_SDC_IM_TIMERS,4,4
	.comm	HP_SDC_IM_PT,4,4
	.comm	HP_SDC_IM_FH,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,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_hp_sdc.c_hp_sdc_request_timer_irq.c"
	.text
	.align	2
	.global	hp_sdc_request_timer_irq
	.syntax unified
	.arm
	.fpu softvfp
	.type	hp_sdc_request_timer_irq, %function
hp_sdc_request_timer_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r6, r0, #0
	beq	.L2
	ldr	r5, .L11
	ldr	r3, [r5, #20]
	cmp	r3, #0
	beq	.L2
	add	r0, r5, #8
	bl	write_lock_irq
	ldr	r4, [r5, #16]
	cmp	r4, #0
	beq	.L5
	add	r0, r5, #8
	bl	write_unlock_irq
	ldr	r3, .L11+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	mov	r0, r5
	mov	ip, #1
	ldr	r2, .L11+8
	ldr	r3, .L11+12
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L11+16
	str	ip, [r0], #8
	ldr	ip, [r3]
	ldr	r3, [r5, #12]
	orr	r2, r2, ip
	bic	r3, r3, r1
	bic	r3, r3, r2
	str	r3, [r5, #12]
	str	r6, [r5, #16]
	bl	write_unlock_irq
	add	r0, r5, #4
	bl	tasklet_schedule
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L11+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	hp_sdc
	.word	EBUSY
	.word	HP_SDC_IM_TIMERS
	.word	HP_SDC_IM_FH
	.word	HP_SDC_IM_PT
	.word	EINVAL
	.size	hp_sdc_request_timer_irq, .-hp_sdc_request_timer_irq
	.comm	hp_sdc,24,4
	.comm	HP_SDC_IM_TIMERS,4,4
	.comm	HP_SDC_IM_PT,4,4
	.comm	HP_SDC_IM_FH,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
