	.file	"extr_horizon.c_hrz_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hrz_reset, @function
hrz_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR CONTROL_0_REG[rip]
	call	rd_regl@PLT
	mov	esi, DWORD PTR CONTROL_0_REG[rip]
	and	eax, DWORD PTR RESET_HORIZON[rip]
	mov	rdi, rbp
	mov	edx, eax
	mov	r12d, eax
	call	wr_regl@PLT
	test	DWORD PTR RESET_HORIZON[rip], r12d
	je	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR CONTROL_0_REG[rip]
	mov	rdi, rbp
	call	rd_regl@PLT
	mov	r12d, eax
	test	DWORD PTR RESET_HORIZON[rip], eax
	jne	.L3
.L2:
	mov	esi, DWORD PTR CONTROL_0_REG[rip]
	mov	edx, DWORD PTR RESET_ATM[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR RESET_RX[rip]
	or	edx, DWORD PTR RESET_TX[rip]
	or	edx, DWORD PTR RESET_HOST[rip]
	or	edx, r12d
	call	wr_regl@PLT
	mov	edi, 1000
	call	udelay@PLT
	mov	esi, DWORD PTR CONTROL_0_REG[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	edx, r12d
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	wr_regl@PLT
	.cfi_endproc
.LFE0:
	.size	hrz_reset, .-hrz_reset
	.comm	RESET_TX,4,4
	.comm	RESET_RX,4,4
	.comm	RESET_HOST,4,4
	.comm	RESET_HORIZON,4,4
	.comm	RESET_ATM,4,4
	.comm	CONTROL_0_REG,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_horizon.c_hrz_reset.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hrz_reset, %function
hrz_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L10
	mov	r5, r0
	ldr	r1, [r6]
	bl	rd_regl
	mov	r4, r0
	ldr	r7, .L10+4
	mov	r0, r5
	ldr	r3, [r7]
	ldr	r1, [r6]
	and	r4, r4, r3
	mov	r2, r4
	bl	wr_regl
	ldr	r3, [r7]
	tst	r4, r3
	beq	.L2
.L3:
	mov	r0, r5
	ldr	r1, [r6]
	bl	rd_regl
	ldr	r3, [r7]
	mov	r4, r0
	tst	r0, r3
	bne	.L3
.L2:
	ldr	r3, .L10+8
	ldr	r2, .L10+12
	ldr	r1, .L10+16
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r3, .L10+20
	ldr	r1, [r1]
	ldr	r3, [r3]
	orr	r2, r2, r0
	orr	r2, r2, r1
	orr	r2, r2, r3
	ldr	r1, [r6]
	orr	r2, r2, r4
	mov	r0, r5
	bl	wr_regl
	mov	r0, #1000
	bl	udelay
	mov	r2, r4
	mov	r0, r5
	ldr	r1, [r6]
	pop	{r4, r5, r6, r7, r8, lr}
	b	wr_regl
.L11:
	.align	2
.L10:
	.word	CONTROL_0_REG
	.word	RESET_HORIZON
	.word	RESET_RX
	.word	RESET_ATM
	.word	RESET_TX
	.word	RESET_HOST
	.size	hrz_reset, .-hrz_reset
	.comm	RESET_TX,4,4
	.comm	RESET_RX,4,4
	.comm	RESET_HOST,4,4
	.comm	RESET_HORIZON,4,4
	.comm	RESET_ATM,4,4
	.comm	CONTROL_0_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
