	.file	"extr_addi_apci_1500.c_apci1500_timer_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	apci1500_timer_enable, @function
apci1500_timer_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, DWORD PTR Z8536_CFG_CTRL_CT1E[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edx
	test	esi, esi
	je	.L3
	mov	ebp, DWORD PTR Z8536_CFG_CTRL_CT2E[rip]
	cmp	esi, 1
	mov	r14d, ebp
	cmovne	r14d, DWORD PTR Z8536_CFG_CTRL_PCE_CT3E[rip]
.L3:
	mov	esi, DWORD PTR Z8536_CFG_CTRL_REG[rip]
	mov	rdi, r12
	call	z8536_read@PLT
	mov	ebp, eax
	test	ebx, ebx
	je	.L5
	or	ebp, r14d
.L6:
	mov	edx, DWORD PTR Z8536_CFG_CTRL_REG[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	esi, ebp
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	z8536_write@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, r13d
	not	r14d
	call	Z8536_CT_CMDSTAT_REG@PLT
	xor	esi, esi
	mov	rdi, r12
	and	ebp, r14d
	mov	edx, eax
	call	z8536_write@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	apci1500_timer_enable, .-apci1500_timer_enable
	.comm	Z8536_CFG_CTRL_REG,4,4
	.comm	Z8536_CFG_CTRL_PCE_CT3E,4,4
	.comm	Z8536_CFG_CTRL_CT2E,4,4
	.comm	Z8536_CFG_CTRL_CT1E,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_addi_apci_1500.c_apci1500_timer_enable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	apci1500_timer_enable, %function
apci1500_timer_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r7, r1, #0
	mov	r5, r0
	mov	r8, r2
	bne	.L2
	ldr	r3, .L10
	ldr	r9, [r3]
.L3:
	ldr	r6, .L10+4
	mov	r0, r5
	ldr	r1, [r6]
	bl	z8536_read
	cmp	r8, #0
	mov	r4, r0
	orrne	r4, r9, r0
	beq	.L9
.L6:
	mov	r1, r4
	mov	r0, r5
	ldr	r2, [r6]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	z8536_write
.L2:
	cmp	r7, #1
	ldreq	r3, .L10+8
	ldrne	r3, .L10+12
	ldr	r9, [r3]
	b	.L3
.L9:
	mov	r0, r7
	bl	Z8536_CT_CMDSTAT_REG
	mov	r1, r8
	mov	r2, r0
	mov	r0, r5
	bic	r4, r4, r9
	bl	z8536_write
	b	.L6
.L11:
	.align	2
.L10:
	.word	Z8536_CFG_CTRL_CT1E
	.word	Z8536_CFG_CTRL_REG
	.word	Z8536_CFG_CTRL_CT2E
	.word	Z8536_CFG_CTRL_PCE_CT3E
	.size	apci1500_timer_enable, .-apci1500_timer_enable
	.comm	Z8536_CFG_CTRL_REG,4,4
	.comm	Z8536_CFG_CTRL_PCE_CT3E,4,4
	.comm	Z8536_CFG_CTRL_CT2E,4,4
	.comm	Z8536_CFG_CTRL_CT1E,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
