	.file	"extr_ar2316.c_ar2316GetMaxPower.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ar2316GetMaxPower, @function
ar2316GetMaxPower:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdi, QWORD PTR MAX_NUM_PDGAINS_PER_CHANNEL[rip]
	test	rdi, rdi
	je	.L5
	mov	rax, QWORD PTR [rsi]
	xor	edx, edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	rdx, 1
	add	rax, 16
	cmp	rdi, rdx
	je	.L5
.L4:
	movsx	rcx, DWORD PTR [rax]
	test	ecx, ecx
	jle	.L3
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -4[rax+rcx*4]
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	ar2316GetMaxPower, .-ar2316GetMaxPower
	.comm	MAX_NUM_PDGAINS_PER_CHANNEL,8,8
	.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_ar2316.c_ar2316GetMaxPower.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar2316GetMaxPower, %function
ar2316GetMaxPower:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L9
	ldr	r0, [r3]
	cmp	r0, #0
	bxeq	lr
	ldr	ip, [r1]
	mov	r3, #0
	mov	r1, ip
	b	.L4
.L3:
	cmp	r0, r3
	add	r1, r1, #8
	beq	.L8
.L4:
	ldr	r2, [ip, r3, lsl #3]
	add	r3, r3, #1
	cmp	r2, #0
	ble	.L3
	ldr	r3, [r1, #4]
	sub	r2, r2, #-1073741823
	ldr	r0, [r3, r2, lsl #2]
	bx	lr
.L8:
	mov	r0, #0
	bx	lr
.L10:
	.align	2
.L9:
	.word	MAX_NUM_PDGAINS_PER_CHANNEL
	.size	ar2316GetMaxPower, .-ar2316GetMaxPower
	.comm	MAX_NUM_PDGAINS_PER_CHANNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
