	.file	"extr_ah.c_ath_hal_ini_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ath_hal_ini_write
	.type	ath_hal_ini_write, @function
ath_hal_ini_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	xor	edi, edi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	DWORD PTR [rsi], edx
	setg	dil
	call	HALASSERT@PLT
	mov	eax, DWORD PTR 4[rbp]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, r12d
	add	ebx, 1
	call	DMA_YIELD@PLT
	cmp	DWORD PTR 4[rbp], ebx
	jle	.L2
.L6:
	mov	edx, r13d
	mov	esi, ebx
	mov	rdi, rbp
	call	HAL_INI_VAL@PLT
	xor	edx, edx
	mov	esi, ebx
	mov	rdi, rbp
	mov	r15d, eax
	call	HAL_INI_VAL@PLT
	mov	edx, r15d
	mov	rdi, r14
	mov	esi, eax
	call	OS_REG_WRITE@PLT
	xor	edx, edx
	mov	esi, ebx
	mov	rdi, rbp
	call	HAL_INI_VAL@PLT
	cmp	eax, 30719
	jle	.L4
	xor	edx, edx
	mov	esi, ebx
	mov	rdi, rbp
	call	HAL_INI_VAL@PLT
	cmp	eax, 30975
	jg	.L4
	mov	edi, 100
	add	ebx, 1
	call	OS_DELAY@PLT
	mov	edi, r12d
	call	DMA_YIELD@PLT
	cmp	DWORD PTR 4[rbp], ebx
	jg	.L6
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ath_hal_ini_write, .-ath_hal_ini_write
	.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_ah.c_ath_hal_ini_write.c"
	.text
	.align	2
	.global	ath_hal_ini_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath_hal_ini_write, %function
ath_hal_ini_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r2
	mov	r5, r1
	ldr	r2, [r1]
	mov	r9, r0
	cmp	r2, r8
	movle	r0, #0
	movgt	r0, #1
	mov	r7, r3
	bl	HALASSERT
	ldr	r3, [r5, #4]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
	b	.L6
.L4:
	mov	r0, r7
	bl	DMA_YIELD
	ldr	r1, [r5, #4]
	add	r4, r4, #1
	cmp	r1, r4
	ble	.L2
.L6:
	mov	r2, #0
	mov	r1, r4
	mov	r0, r5
	bl	HAL_INI_VAL
	mov	r2, r8
	mov	r6, r0
	mov	r1, r4
	mov	r0, r5
	bl	HAL_INI_VAL
	mov	r1, r6
	mov	r2, r0
	mov	r0, r9
	bl	OS_REG_WRITE
	mov	r2, #0
	mov	r1, r4
	mov	r0, r5
	bl	HAL_INI_VAL
	cmp	r0, #30720
	blt	.L4
	mov	r2, #0
	mov	r1, r4
	mov	r0, r5
	bl	HAL_INI_VAL
	cmp	r0, #30976
	bge	.L4
	mov	r0, #100
	bl	OS_DELAY
	b	.L4
.L2:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	ath_hal_ini_write, .-ath_hal_ini_write
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
