	.file	"616856.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 16
	.type	LoRaMacMaxEirpTable, @object
	.size	LoRaMacMaxEirpTable, 16
LoRaMacMaxEirpTable:
	.ascii	"\b\n\f\r\016\020\022\024\025\030\032\033\035\036!$"
	.text
	.type	GetDutyCycle, @function
GetDutyCycle:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	QWORD PTR -48[rbp], rdx
	mov	QWORD PTR -40[rbp], rcx
	mov	BYTE PTR -28[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR -4[rbp], ax
	movzx	eax, BYTE PTR -28[rbp]
	xor	eax, 1
	test	al, al
	je	.L2
	mov	WORD PTR -2[rbp], 10000
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, 3599
	ja	.L3
	mov	WORD PTR -2[rbp], 100
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, 39599
	ja	.L5
	mov	WORD PTR -2[rbp], 1000
	jmp	.L4
.L5:
	mov	WORD PTR -2[rbp], 10000
.L4:
	movzx	eax, WORD PTR -4[rbp]
	cmp	WORD PTR -2[rbp], ax
	cmovnb	ax, WORD PTR -2[rbp]
	mov	WORD PTR -4[rbp], ax
.L2:
	cmp	WORD PTR -4[rbp], 0
	jne	.L6
	mov	WORD PTR -4[rbp], 1
.L6:
	movzx	eax, WORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	GetDutyCycle, .-GetDutyCycle
	.type	SetMaxTimeCredits, @function
SetMaxTimeCredits:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -56[rbp], rdi
	mov	eax, esi
	mov	QWORD PTR -80[rbp], rdx
	mov	QWORD PTR -72[rbp], rcx
	mov	ecx, r8d
	mov	edx, r9d
	mov	BYTE PTR -60[rbp], al
	mov	eax, ecx
	mov	BYTE PTR -64[rbp], al
	mov	eax, edx
	mov	BYTE PTR -84[rbp], al
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR -34[rbp], ax
	mov	QWORD PTR -32[rbp], 1800000
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	SysTimeToMs@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	mov	QWORD PTR -8[rbp], 0
	movzx	esi, BYTE PTR -60[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rdi, QWORD PTR -56[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	call	GetDutyCycle
	mov	WORD PTR -34[rbp], ax
	movzx	eax, BYTE PTR -60[rbp]
	xor	eax, 1
	test	al, al
	je	.L9
	cmp	WORD PTR -34[rbp], 100
	jne	.L10
	mov	QWORD PTR -32[rbp], 1800000
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L11
.L10:
	cmp	WORD PTR -34[rbp], 1000
	jne	.L12
	mov	QWORD PTR -32[rbp], 18000000
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L11
.L12:
	mov	QWORD PTR -32[rbp], 43200000
.L11:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	SysTimeFromMs@PLT
	mov	rdi, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR -72[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	call	SysTimeSub@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	movzx	eax, BYTE PTR -64[rbp]
	xor	eax, 1
	test	al, al
	je	.L13
	movzx	eax, BYTE PTR -84[rbp]
	xor	eax, 1
	test	al, al
	jne	.L14
.L13:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 32[rax]
	cmp	QWORD PTR -32[rbp], rax
	jne	.L14
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, 86399
	jbe	.L15
.L14:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, 125999
	jbe	.L15
	mov	rax, QWORD PTR -80[rbp]
	sub	rax, 126000
	movabs	rdx, -4454547087429121353
	mul	rdx
	mov	rax, rdx
	shr	rax, 16
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	imul	rax, rax, 86400
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 126000
	mov	QWORD PTR -16[rbp], rax
	mov	WORD PTR -8[rbp], 0
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	SysTimeToMs@PLT
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rdx], rax
	jmp	.L15
.L9:
	movzx	eax, BYTE PTR -64[rbp]
	xor	eax, 1
	test	al, al
	je	.L15
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 24[rax], rdx
.L15:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L16
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 24[rax], rdx
.L16:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 32[rax], rdx
	movzx	eax, WORD PTR -34[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	SetMaxTimeCredits, .-SetMaxTimeCredits
	.type	UpdateTimeCredits, @function
UpdateTimeCredits:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, ecx
	mov	QWORD PTR -64[rbp], r8
	mov	QWORD PTR -56[rbp], r9
	mov	ecx, esi
	mov	BYTE PTR -28[rbp], cl
	mov	BYTE PTR -32[rbp], dl
	mov	BYTE PTR -36[rbp], al
	movzx	r8d, BYTE PTR -36[rbp]
	movzx	ecx, BYTE PTR -32[rbp]
	movzx	esi, BYTE PTR -28[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rdi, QWORD PTR -24[rbp]
	mov	r9d, r8d
	mov	r8d, ecx
	mov	rcx, rdx
	mov	rdx, rax
	call	SetMaxTimeCredits
	mov	WORD PTR -2[rbp], ax
	cmp	BYTE PTR -28[rbp], 0
	je	.L19
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	TimerGetElapsedTime@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 24[rax], rdx
.L19:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	cmp	rdx, rax
	jbe	.L20
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 24[rax], rdx
.L20:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rbp]
	mov	QWORD PTR 8[rax], rdx
	movzx	eax, WORD PTR -2[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	UpdateTimeCredits, .-UpdateTimeCredits
	.type	CountChannels, @function
CountChannels:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	edx, esi
	mov	WORD PTR -20[rbp], ax
	mov	eax, edx
	mov	BYTE PTR -24[rbp], al
	mov	BYTE PTR -2[rbp], 0
	mov	BYTE PTR -1[rbp], 0
	jmp	.L23
.L25:
	movzx	edx, WORD PTR -20[rbp]
	movzx	eax, BYTE PTR -1[rbp]
	mov	esi, 1
	mov	ecx, eax
	sal	esi, cl
	mov	eax, esi
	and	edx, eax
	movzx	eax, BYTE PTR -1[rbp]
	mov	esi, 1
	mov	ecx, eax
	sal	esi, cl
	mov	eax, esi
	cmp	edx, eax
	jne	.L24
	movzx	eax, BYTE PTR -2[rbp]
	add	eax, 1
	mov	BYTE PTR -2[rbp], al
.L24:
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L23:
	movzx	eax, BYTE PTR -1[rbp]
	cmp	al, BYTE PTR -24[rbp]
	jb	.L25
	movzx	eax, BYTE PTR -2[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	CountChannels, .-CountChannels
	.globl	RegionCommonChanVerifyDr
	.type	RegionCommonChanVerifyDr, @function
RegionCommonChanVerifyDr:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, ecx
	mov	esi, r8d
	mov	QWORD PTR -48[rbp], r9
	mov	ecx, edi
	mov	BYTE PTR -20[rbp], cl
	mov	BYTE PTR -24[rbp], dl
	mov	BYTE PTR -36[rbp], al
	mov	eax, esi
	mov	BYTE PTR -40[rbp], al
	movsx	edx, BYTE PTR -40[rbp]
	movsx	ecx, BYTE PTR -36[rbp]
	movsx	eax, BYTE PTR -24[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	RegionCommonValueInRange
	test	al, al
	jne	.L28
	mov	eax, 0
	jmp	.L29
.L28:
	mov	BYTE PTR -3[rbp], 0
	mov	BYTE PTR -2[rbp], 0
	jmp	.L30
.L34:
	mov	BYTE PTR -1[rbp], 0
	jmp	.L31
.L33:
	movzx	eax, BYTE PTR -2[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	edx, ax
	movzx	eax, BYTE PTR -1[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L32
	movzx	edx, BYTE PTR -3[rbp]
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR 16[rax]
	sar	al, 4
	movsx	eax, al
	and	eax, 15
	mov	edx, eax
	movzx	ecx, BYTE PTR -3[rbp]
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, ecx
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	mov	rcx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR 16[rax]
	sal	eax, 4
	sar	al, 4
	movsx	eax, al
	and	eax, 15
	mov	ecx, eax
	movsx	eax, BYTE PTR -24[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	RegionCommonValueInRange
	cmp	al, 1
	jne	.L32
	mov	eax, 1
	jmp	.L29
.L32:
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L31:
	cmp	BYTE PTR -1[rbp], 15
	jbe	.L33
	add	BYTE PTR -3[rbp], 16
	movzx	eax, BYTE PTR -2[rbp]
	add	eax, 1
	mov	BYTE PTR -2[rbp], al
.L30:
	movzx	eax, BYTE PTR -3[rbp]
	cmp	al, BYTE PTR -20[rbp]
	jb	.L34
	mov	eax, 0
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	RegionCommonChanVerifyDr, .-RegionCommonChanVerifyDr
	.globl	RegionCommonValueInRange
	.type	RegionCommonValueInRange, @function
RegionCommonValueInRange:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	ecx, esi
	mov	eax, edx
	mov	edx, edi
	mov	BYTE PTR -4[rbp], dl
	mov	edx, ecx
	mov	BYTE PTR -8[rbp], dl
	mov	BYTE PTR -12[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	cmp	al, BYTE PTR -8[rbp]
	jl	.L36
	movzx	eax, BYTE PTR -4[rbp]
	cmp	al, BYTE PTR -12[rbp]
	jg	.L36
	mov	eax, 1
	jmp	.L37
.L36:
	mov	eax, 0
.L37:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	RegionCommonValueInRange, .-RegionCommonValueInRange
	.globl	RegionCommonChanDisable
	.type	RegionCommonChanDisable, @function
RegionCommonChanDisable:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	ecx, esi
	mov	eax, edx
	mov	edx, ecx
	mov	BYTE PTR -28[rbp], dl
	mov	BYTE PTR -32[rbp], al
	movzx	eax, BYTE PTR -28[rbp]
	shr	al, 4
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -32[rbp]
	shr	al, 4
	cmp	BYTE PTR -1[rbp], al
	ja	.L39
	movzx	eax, BYTE PTR -28[rbp]
	cmp	al, BYTE PTR -32[rbp]
	jb	.L40
.L39:
	mov	eax, 0
	jmp	.L41
.L40:
	movzx	eax, BYTE PTR -1[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	mov	esi, eax
	movzx	eax, BYTE PTR -28[rbp]
	and	eax, 15
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	not	eax
	and	esi, eax
	mov	edx, esi
	movzx	eax, BYTE PTR -1[rbp]
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	WORD PTR [rax], dx
	mov	eax, 1
.L41:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	RegionCommonChanDisable, .-RegionCommonChanDisable
	.globl	RegionCommonCountChannels
	.type	RegionCommonCountChannels, @function
RegionCommonCountChannels:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	ecx, esi
	mov	eax, edx
	mov	edx, ecx
	mov	BYTE PTR -28[rbp], dl
	mov	BYTE PTR -32[rbp], al
	mov	BYTE PTR -2[rbp], 0
	cmp	QWORD PTR -24[rbp], 0
	jne	.L43
	mov	eax, 0
	jmp	.L44
.L43:
	movzx	eax, BYTE PTR -28[rbp]
	mov	BYTE PTR -1[rbp], al
	jmp	.L45
.L46:
	movzx	eax, BYTE PTR -1[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	esi, 16
	mov	edi, eax
	call	CountChannels
	add	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L45:
	movzx	eax, BYTE PTR -1[rbp]
	cmp	al, BYTE PTR -32[rbp]
	jb	.L46
	movzx	eax, BYTE PTR -2[rbp]
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	RegionCommonCountChannels, .-RegionCommonCountChannels
	.globl	RegionCommonChanMaskCopy
	.type	RegionCommonChanMaskCopy, @function
RegionCommonChanMaskCopy:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, edx
	mov	BYTE PTR -36[rbp], al
	cmp	QWORD PTR -24[rbp], 0
	je	.L51
	cmp	QWORD PTR -32[rbp], 0
	je	.L51
	mov	BYTE PTR -1[rbp], 0
	jmp	.L49
.L50:
	movzx	eax, BYTE PTR -1[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR -1[rbp]
	lea	rcx, [rdx+rdx]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR [rdx], ax
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L49:
	movzx	eax, BYTE PTR -1[rbp]
	cmp	al, BYTE PTR -36[rbp]
	jb	.L50
.L51:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	RegionCommonChanMaskCopy, .-RegionCommonChanMaskCopy
	.globl	RegionCommonSetBandTxDone
	.type	RegionCommonSetBandTxDone, @function
RegionCommonSetBandTxDone:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	esi, edx
	mov	rax, rcx
	mov	rcx, r8
	mov	rdx, rcx
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	eax, esi
	mov	BYTE PTR -36[rbp], al
	movzx	esi, BYTE PTR -36[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rdi, QWORD PTR -24[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	call	GetDutyCycle
	mov	WORD PTR -2[rbp], ax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 24[rax]
	movzx	eax, WORD PTR -2[rbp]
	imul	rax, QWORD PTR -32[rbp]
	cmp	rdx, rax
	jbe	.L53
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 24[rax]
	movzx	eax, WORD PTR -2[rbp]
	imul	rax, QWORD PTR -32[rbp]
	sub	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 24[rax], rdx
	jmp	.L55
.L53:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 24[rax], 0
.L55:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	RegionCommonSetBandTxDone, .-RegionCommonSetBandTxDone
	.globl	RegionCommonUpdateBandTimeOff
	.type	RegionCommonUpdateBandTimeOff, @function
RegionCommonUpdateBandTimeOff:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -64[rbp], rsi
	mov	eax, ecx
	mov	esi, r8d
	mov	QWORD PTR -80[rbp], r9
	mov	ecx, edi
	mov	BYTE PTR -52[rbp], cl
	mov	BYTE PTR -56[rbp], dl
	mov	BYTE PTR -68[rbp], al
	mov	eax, esi
	mov	BYTE PTR -72[rbp], al
	mov	QWORD PTR -40[rbp], -1
	call	TimerGetCurrentTime@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], 0
	mov	WORD PTR -42[rbp], 1
	mov	BYTE PTR -44[rbp], 0
	mov	BYTE PTR -43[rbp], 0
	jmp	.L57
.L66:
	movzx	ecx, BYTE PTR -72[rbp]
	movzx	edi, BYTE PTR -68[rbp]
	movzx	esi, BYTE PTR -52[rbp]
	movzx	edx, BYTE PTR -43[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	lea	r10, [rdx+rax]
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR 24[rbp]
	sub	rsp, 8
	push	QWORD PTR -32[rbp]
	mov	r8, rax
	mov	r9, rdx
	mov	edx, edi
	mov	rdi, r10
	call	UpdateTimeCredits
	add	rsp, 16
	mov	WORD PTR -42[rbp], ax
	movzx	eax, WORD PTR -42[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	imul	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	movzx	edx, BYTE PTR -43[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 24[rax]
	cmp	QWORD PTR -24[rbp], rax
	jb	.L58
	movzx	eax, BYTE PTR -68[rbp]
	xor	eax, 1
	test	al, al
	je	.L59
	cmp	BYTE PTR -52[rbp], 0
	je	.L59
.L58:
	movzx	edx, BYTE PTR -43[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	BYTE PTR 40[rax], 1
	movzx	eax, BYTE PTR -44[rbp]
	add	eax, 1
	mov	BYTE PTR -44[rbp], al
	jmp	.L60
.L59:
	movzx	edx, BYTE PTR -43[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	BYTE PTR 40[rax], 0
	movzx	edx, BYTE PTR -43[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 32[rax]
	cmp	QWORD PTR -24[rbp], rax
	jnb	.L61
	movzx	edx, BYTE PTR -43[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, rdx
	cmp	QWORD PTR -40[rbp], rax
	cmovbe	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -40[rbp], rax
	movzx	eax, BYTE PTR -44[rbp]
	add	eax, 1
	mov	BYTE PTR -44[rbp], al
.L61:
	movzx	eax, BYTE PTR -52[rbp]
	xor	eax, 1
	test	al, al
	je	.L60
	mov	QWORD PTR -16[rbp], 0
	mov	WORD PTR -8[rbp], 0
	cmp	WORD PTR -42[rbp], 100
	jne	.L62
	mov	QWORD PTR -16[rbp], 3600
	jmp	.L63
.L62:
	cmp	WORD PTR -42[rbp], 1000
	jne	.L64
	mov	QWORD PTR -16[rbp], 39600
	jmp	.L63
.L64:
	mov	QWORD PTR -16[rbp], 126000
.L63:
	mov	rax, QWORD PTR 16[rbp]
	cmp	rax, 126000
	jbe	.L65
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rbp]
	sub	rax, 126000
	movabs	rdx, -4454547087429121353
	mul	rdx
	mov	rax, rdx
	shr	rax, 16
	add	rax, 1
	imul	rax, rax, 86400
	add	rax, rcx
	mov	QWORD PTR -16[rbp], rax
.L65:
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR 24[rbp]
	mov	rdi, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	call	SysTimeSub@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	SysTimeToMs@PLT
	mov	QWORD PTR -40[rbp], rax
.L60:
	movzx	eax, BYTE PTR -43[rbp]
	add	eax, 1
	mov	BYTE PTR -43[rbp], al
.L57:
	movzx	eax, BYTE PTR -43[rbp]
	cmp	al, BYTE PTR -56[rbp]
	jb	.L66
	cmp	BYTE PTR -44[rbp], 0
	jne	.L67
	mov	rax, -1
	jmp	.L68
.L67:
	mov	rax, QWORD PTR -40[rbp]
.L68:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	RegionCommonUpdateBandTimeOff, .-RegionCommonUpdateBandTimeOff
	.globl	RegionCommonParseLinkAdrReq
	.type	RegionCommonParseLinkAdrReq, @function
RegionCommonParseLinkAdrReq:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	BYTE PTR -1[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 3
	jne	.L70
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR 1[rax], dl
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR 1[rax]
	and	eax, 15
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR 2[rax], dl
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR 1[rax]
	shr	al, 4
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR 1[rax], dl
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	mov	WORD PTR 4[rax], dx
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, WORD PTR 4[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	WORD PTR 4[rax], dx
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	and	eax, 7
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR 3[rax], dl
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 15
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	mov	BYTE PTR -1[rbp], 5
.L70:
	movzx	eax, BYTE PTR -1[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	RegionCommonParseLinkAdrReq, .-RegionCommonParseLinkAdrReq
	.globl	RegionCommonLinkAdrReqVerifyParams
	.type	RegionCommonLinkAdrReqVerifyParams, @function
RegionCommonLinkAdrReqVerifyParams:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 8[rax]
	mov	BYTE PTR -4[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 10[rax]
	mov	BYTE PTR -3[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 11[rax]
	mov	BYTE PTR -2[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 12[rax]
	mov	BYTE PTR -1[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 9[rax]
	xor	eax, 1
	test	al, al
	je	.L73
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 15[rax]
	mov	BYTE PTR -1[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 13[rax]
	mov	BYTE PTR -3[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 14[rax]
	mov	BYTE PTR -2[rbp], al
.L73:
	cmp	BYTE PTR -4[rbp], 0
	je	.L74
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 33[rax]
	movsx	edi, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 32[rax]
	movsx	ecx, al
	movsx	edx, BYTE PTR -3[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 16[rax]
	movzx	eax, al
	mov	r9, r8
	mov	r8d, edi
	mov	edi, eax
	call	RegionCommonChanVerifyDr
	xor	eax, 1
	test	al, al
	je	.L75
	and	BYTE PTR -4[rbp], -3
.L75:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 48[rax]
	movsx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 49[rax]
	movsx	ecx, al
	movsx	eax, BYTE PTR -2[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	RegionCommonValueInRange
	test	al, al
	jne	.L74
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 49[rax]
	cmp	BYTE PTR -2[rbp], al
	jge	.L76
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 49[rax]
	mov	BYTE PTR -2[rbp], al
	jmp	.L74
.L76:
	and	BYTE PTR -4[rbp], -5
.L74:
	cmp	BYTE PTR -4[rbp], 7
	jne	.L77
	cmp	BYTE PTR -1[rbp], 0
	jne	.L77
	mov	BYTE PTR -1[rbp], 1
.L77:
	mov	rax, QWORD PTR -32[rbp]
	movzx	edx, BYTE PTR -3[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -40[rbp]
	movzx	edx, BYTE PTR -2[rbp]
	mov	BYTE PTR [rax], dl
	movzx	edx, BYTE PTR -1[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	RegionCommonLinkAdrReqVerifyParams, .-RegionCommonLinkAdrReqVerifyParams
	.globl	RegionCommonComputeSymbolTimeLoRa
	.type	RegionCommonComputeSymbolTimeLoRa, @function
RegionCommonComputeSymbolTimeLoRa:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	QWORD PTR -16[rbp], rsi
	mov	BYTE PTR -4[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	mov	edx, 1000000
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cdqe
	mov	edx, 0
	div	QWORD PTR -16[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	RegionCommonComputeSymbolTimeLoRa, .-RegionCommonComputeSymbolTimeLoRa
	.globl	RegionCommonComputeSymbolTimeFsk
	.type	RegionCommonComputeSymbolTimeFsk, @function
RegionCommonComputeSymbolTimeFsk:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	movzx	ecx, BYTE PTR -4[rbp]
	mov	eax, 8000
	mov	edx, 0
	div	rcx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	RegionCommonComputeSymbolTimeFsk, .-RegionCommonComputeSymbolTimeFsk
	.globl	RegionCommonComputeRxWindowParameters
	.type	RegionCommonComputeRxWindowParameters, @function
RegionCommonComputeRxWindowParameters:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, esi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	QWORD PTR -40[rbp], r8
	mov	QWORD PTR -48[rbp], r9
	mov	BYTE PTR -12[rbp], al
	movzx	ecx, BYTE PTR -12[rbp]
	movzx	eax, BYTE PTR -12[rbp]
	sub	eax, 4
	add	eax, eax
	cdqe
	imul	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, rax, 2000
	add	rax, rdx
	test	rax, rax
	je	.L84
	movzx	eax, BYTE PTR -12[rbp]
	sub	eax, 4
	add	eax, eax
	cdqe
	imul	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, rax, 2000
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	sub	rax, 1
	mov	edx, 0
	div	QWORD PTR -8[rbp]
	jmp	.L85
.L84:
	movzx	eax, BYTE PTR -12[rbp]
	sub	eax, 4
	add	eax, eax
	cdqe
	imul	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, rax, 2000
	add	rax, rdx
	mov	edx, 0
	div	QWORD PTR -8[rbp]
.L85:
	cmp	rax, rcx
	cmovnb	rcx, rax
	mov	rdx, rcx
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	imul	rax, QWORD PTR -8[rbp]
	test	rax, rax
	je	.L86
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	imul	rax, QWORD PTR -8[rbp]
	add	rax, 1
	shr	rax
	jmp	.L87
.L86:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	imul	rax, QWORD PTR -8[rbp]
	shr	rax
.L87:
	sub	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	imul	rax, rax, 1000
	mov	rcx, rax
	mov	rax, rdx
	sub	rax, rcx
	test	rax, rax
	jle	.L88
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	imul	rax, QWORD PTR -8[rbp]
	test	rax, rax
	je	.L89
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	imul	rax, QWORD PTR -8[rbp]
	add	rax, 1
	shr	rax
	jmp	.L90
.L89:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	imul	rax, QWORD PTR -8[rbp]
	shr	rax
.L90:
	sub	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	imul	rax, rax, 1000
	mov	rcx, rax
	mov	rax, rdx
	sub	rax, rcx
	lea	rcx, 999[rax]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	jmp	.L91
.L88:
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	imul	rax, QWORD PTR -8[rbp]
	test	rax, rax
	je	.L92
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	imul	rax, QWORD PTR -8[rbp]
	add	rax, 1
	shr	rax
	jmp	.L93
.L92:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	imul	rax, QWORD PTR -8[rbp]
	shr	rax
.L93:
	sub	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	imul	rax, rax, 1000
	mov	rcx, rdx
	sub	rcx, rax
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
.L91:
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR [rdx], rax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	RegionCommonComputeRxWindowParameters, .-RegionCommonComputeRxWindowParameters
	.globl	RegionCommonComputeTxPower
	.type	RegionCommonComputeTxPower, @function
RegionCommonComputeTxPower:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	eax, edi
	movss	DWORD PTR -24[rbp], xmm0
	movss	DWORD PTR -28[rbp], xmm1
	mov	BYTE PTR -20[rbp], al
	mov	BYTE PTR -1[rbp], 0
	movsx	eax, BYTE PTR -20[rbp]
	add	eax, eax
	mov	eax, eax
	test	rax, rax
	js	.L95
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	jmp	.L96
.L95:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
.L96:
	movss	xmm1, DWORD PTR -24[rbp]
	subss	xmm1, xmm0
	subss	xmm1, DWORD PTR -28[rbp]
	movaps	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	call	floor@PLT
	cvttsd2si	eax, xmm0
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	RegionCommonComputeTxPower, .-RegionCommonComputeTxPower
	.globl	RegionCommonRxBeaconSetup
	.type	RegionCommonRxBeaconSetup, @function
RegionCommonRxBeaconSetup:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	BYTE PTR -2[rbp], 1
	mov	rax, QWORD PTR Radio[rip+88]
	call	rax
	mov	rdx, QWORD PTR Radio[rip+24]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	rdx
	mov	rdx, QWORD PTR Radio[rip+168]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 16[rax]
	movzx	eax, al
	mov	esi, eax
	mov	edi, 1
	call	rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L99
	mov	BYTE PTR -2[rbp], 0
.L99:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 17[rax]
	movzx	eax, al
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1[rbp], al
	mov	r10, QWORD PTR Radio[rip+48]
	movzx	edi, BYTE PTR -2[rbp]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 16[rax]
	movzx	esi, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 32[rax]
	movzx	ecx, ax
	movzx	edx, BYTE PTR -1[rbp]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 18[rax]
	movzx	eax, al
	push	rdi
	push	0
	push	0
	push	0
	push	0
	push	rsi
	push	1
	push	rcx
	mov	r9d, 10
	mov	r8d, 0
	mov	ecx, 1
	mov	rsi, rax
	mov	edi, 1
	call	r10
	add	rsp, 64
	mov	rdx, QWORD PTR Radio[rip+104]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	RegionCommonRxBeaconSetup, .-RegionCommonRxBeaconSetup
	.globl	RegionCommonCountNbOfEnabledChannels
	.type	RegionCommonCountNbOfEnabledChannels, @function
RegionCommonCountNbOfEnabledChannels:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	BYTE PTR -5[rbp], 0
	mov	BYTE PTR -4[rbp], 0
	mov	BYTE PTR -3[rbp], 0
	mov	BYTE PTR -2[rbp], 0
	jmp	.L101
.L109:
	mov	BYTE PTR -1[rbp], 0
	jmp	.L102
.L108:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	movzx	eax, BYTE PTR -2[rbp]
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	edx, ax
	movzx	eax, BYTE PTR -1[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L103
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 16[rax]
	movzx	edx, BYTE PTR -3[rbp]
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L110
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	xor	eax, 1
	test	al, al
	je	.L105
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L105
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 40[rax]
	movzx	eax, BYTE PTR -2[rbp]
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	edx, ax
	movzx	eax, BYTE PTR -1[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L111
.L105:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 16[rax]
	movzx	edx, BYTE PTR -3[rbp]
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	movzx	eax, BYTE PTR 16[rax]
	sar	al, 4
	movsx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR 16[rax]
	movzx	ecx, BYTE PTR -3[rbp]
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, ecx
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 3
	add	rax, rsi
	movzx	eax, BYTE PTR 16[rax]
	sal	eax, 4
	sar	al, 4
	movsx	ecx, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 1[rax]
	movsx	eax, al
	mov	esi, ecx
	mov	edi, eax
	call	RegionCommonValueInRange
	test	al, al
	je	.L112
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR 16[rax]
	movzx	edx, BYTE PTR -3[rbp]
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rsi
	movzx	eax, BYTE PTR 17[rax]
	movzx	edx, al
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	movzx	eax, BYTE PTR 40[rax]
	xor	eax, 1
	test	al, al
	je	.L107
	movzx	eax, BYTE PTR -4[rbp]
	add	eax, 1
	mov	BYTE PTR -4[rbp], al
	jmp	.L103
.L107:
	movzx	eax, BYTE PTR -5[rbp]
	lea	edx, 1[rax]
	mov	BYTE PTR -5[rbp], dl
	movzx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR -3[rbp]
	movzx	edx, BYTE PTR -1[rbp]
	add	edx, ecx
	mov	BYTE PTR [rax], dl
	jmp	.L103
.L110:
	nop
	jmp	.L103
.L111:
	nop
	jmp	.L103
.L112:
	nop
.L103:
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L102:
	cmp	BYTE PTR -1[rbp], 15
	jbe	.L108
	add	BYTE PTR -3[rbp], 16
	movzx	eax, BYTE PTR -2[rbp]
	add	eax, 1
	mov	BYTE PTR -2[rbp], al
.L101:
	movzx	edx, BYTE PTR -3[rbp]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 32[rax]
	cmp	dx, ax
	jb	.L109
	mov	rax, QWORD PTR -40[rbp]
	movzx	edx, BYTE PTR -5[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -48[rbp]
	movzx	edx, BYTE PTR -4[rbp]
	mov	BYTE PTR [rax], dl
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	RegionCommonCountNbOfEnabledChannels, .-RegionCommonCountNbOfEnabledChannels
	.globl	RegionCommonIdentifyChannels
	.type	RegionCommonIdentifyChannels, @function
RegionCommonIdentifyChannels:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	QWORD PTR -64[rbp], r9
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	TimerGetElapsedTime@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	sub	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR -48[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L114
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L115
.L114:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	r9, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 40[rax]
	movzx	r8d, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 16[rax]
	movzx	ecx, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 17[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rsi, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 56[rax]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	rdi, QWORD PTR -24[rbp]
	push	QWORD PTR 32[rdi]
	push	QWORD PTR 24[rdi]
	mov	edi, eax
	call	RegionCommonUpdateBandTimeOff
	add	rsp, 16
	mov	rdx, QWORD PTR -64[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	RegionCommonCountNbOfEnabledChannels
.L115:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L116
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], 0
	mov	eax, 0
	jmp	.L117
.L116:
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L118
	mov	eax, 11
	jmp	.L117
.L118:
	mov	eax, 12
.L117:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	RegionCommonIdentifyChannels, .-RegionCommonIdentifyChannels
	.globl	RegionCommonGetNextLowerTxDr
	.type	RegionCommonGetNextLowerTxDr, @function
RegionCommonGetNextLowerTxDr:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 2[rax]
	cmp	dl, al
	jne	.L120
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 2[rax]
	jmp	.L121
.L120:
	movzx	eax, BYTE PTR -1[rbp]
	sub	eax, 1
	mov	BYTE PTR -1[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 2[rax]
	cmp	BYTE PTR -1[rbp], al
	je	.L122
	mov	rax, QWORD PTR -24[rbp]
	mov	r8, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 1[rax]
	movsx	edi, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 2[rax]
	movsx	ecx, al
	movsx	edx, BYTE PTR -1[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 3[rax]
	movzx	eax, al
	mov	r9, r8
	mov	r8d, edi
	mov	edi, eax
	call	RegionCommonChanVerifyDr
	xor	eax, 1
	test	al, al
	jne	.L120
.L122:
	movzx	eax, BYTE PTR -1[rbp]
.L121:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	RegionCommonGetNextLowerTxDr, .-RegionCommonGetNextLowerTxDr
	.globl	RegionCommonLimitTxPower
	.type	RegionCommonLimitTxPower, @function
RegionCommonLimitTxPower:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, edi
	mov	eax, esi
	mov	BYTE PTR -4[rbp], dl
	mov	BYTE PTR -8[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	movzx	edx, BYTE PTR -8[rbp]
	cmp	BYTE PTR -8[rbp], al
	cmovge	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	RegionCommonLimitTxPower, .-RegionCommonLimitTxPower
	.globl	RegionCommonGetBandwidth
	.type	RegionCommonGetBandwidth, @function
RegionCommonGetBandwidth:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	rax, 250000
	je	.L126
	cmp	rax, 500000
	je	.L127
	mov	eax, 0
	jmp	.L128
.L126:
	mov	eax, 1
	jmp	.L128
.L127:
	mov	eax, 2
.L128:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	RegionCommonGetBandwidth, .-RegionCommonGetBandwidth
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"616856.c"
	.text
	.section	.rodata
	.align	2
	.type	LoRaMacMaxEirpTable, %object
	.size	LoRaMacMaxEirpTable, 16
LoRaMacMaxEirpTable:
	.ascii	"\010\012\014\015\016\020\022\024\025\030\032\033\035"
	.ascii	"\036!$"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetDutyCycle, %function
GetDutyCycle:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	mov	r0, r1
	sub	r1, fp, #28
	stm	r1, {r2, r3}
	mov	r3, r0
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3]	@ movhi
	strh	r3, [fp, #-8]	@ movhi
	ldrb	r3, [fp, #-17]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L8
	strh	r3, [fp, #-6]	@ movhi
	ldr	r3, [fp, #-28]
	cmp	r3, #3600
	bcs	.L3
	mov	r3, #100
	strh	r3, [fp, #-6]	@ movhi
	b	.L4
.L3:
	ldr	r3, [fp, #-28]
	ldr	r2, .L8+4
	cmp	r3, r2
	bhi	.L5
	mov	r3, #1000
	strh	r3, [fp, #-6]	@ movhi
	b	.L4
.L5:
	ldr	r3, .L8
	strh	r3, [fp, #-6]	@ movhi
.L4:
	ldrh	r2, [fp, #-6]
	ldrh	r3, [fp, #-8]
	cmp	r2, r3
	movcs	r3, r2
	movcc	r3, r3
	strh	r3, [fp, #-8]	@ movhi
.L2:
	ldrh	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L6
	mov	r3, #1
	strh	r3, [fp, #-8]	@ movhi
.L6:
	ldrh	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L9:
	.align	2
.L8:
	.word	10000
	.word	39599
	.size	GetDutyCycle, .-GetDutyCycle
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	SetMaxTimeCredits, %function
SetMaxTimeCredits:
	@ args = 8, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-40]
	mov	r0, r1
	sub	r1, fp, #52
	stm	r1, {r2, r3}
	mov	r3, r0
	strb	r3, [fp, #-41]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	ldrh	r3, [r3]	@ movhi
	strh	r3, [fp, #-34]	@ movhi
	ldr	r3, .L21+4
	str	r3, [fp, #-32]
	sub	r3, fp, #52
	ldm	r3, {r0, r1}
	bl	SysTimeToMs
	str	r0, [fp, #-28]
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	ldrb	r1, [fp, #-41]	@ zero_extendqisi2
	sub	r3, fp, #52
	ldm	r3, {r2, r3}
	ldr	r0, [fp, #-40]
	bl	GetDutyCycle
	mov	r3, r0
	strh	r3, [fp, #-34]	@ movhi
	ldrb	r3, [fp, #-41]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L11
	ldrh	r3, [fp, #-34]
	cmp	r3, #100
	bne	.L12
	ldr	r3, .L21+4
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #8]
	b	.L13
.L12:
	ldrh	r3, [fp, #-34]
	cmp	r3, #1000
	bne	.L14
	ldr	r3, .L21+8
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #8]
	b	.L13
.L14:
	ldr	r3, .L21+12
	str	r3, [fp, #-32]
.L13:
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #8]
	sub	r3, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	SysTimeFromMs
	sub	r0, fp, #24
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	sub	r2, fp, #52
	ldm	r2, {r1, r2}
	bl	SysTimeSub
	ldrb	r3, [fp, #4]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L15
	ldrb	r3, [fp, #8]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L16
.L15:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L16
	ldr	r3, [fp, #-24]
	ldr	r2, .L21+16
	cmp	r3, r2
	bcc	.L17
.L16:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-52]
	ldr	r2, .L21+20
	cmp	r3, r2
	bls	.L17
	ldr	r3, [fp, #-52]
	sub	r3, r3, #125952
	sub	r3, r3, #48
	ldr	r2, .L21+24
	umull	r1, r3, r2, r3
	lsr	r3, r3, #16
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	sub	r3, r3, r2
	lsl	r3, r3, #7
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	add	r3, r3, #125952
	add	r3, r3, #48
	str	r3, [fp, #-24]
	mov	r3, #0
	strh	r3, [fp, #-20]	@ movhi
	sub	r3, fp, #24
	ldm	r3, {r0, r1}
	bl	SysTimeToMs
	mov	r2, r0
	ldr	r3, [fp, #-40]
	str	r2, [r3, #8]
	b	.L17
.L11:
	ldrb	r3, [fp, #4]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #12]
.L17:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #12]
.L18:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #16]
	ldrh	r3, [fp, #-34]
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	1800000
	.word	18000000
	.word	43200000
	.word	86400
	.word	125999
	.word	-1037155065
	.size	SetMaxTimeCredits, .-SetMaxTimeCredits
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	UpdateTimeCredits, %function
UpdateTimeCredits:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	mov	r0, r1
	mov	r1, r2
	mov	r2, r3
	mov	r3, r0
	strb	r3, [fp, #-17]
	mov	r3, r1
	strb	r3, [fp, #-18]
	mov	r3, r2
	strb	r3, [fp, #-19]
	ldrb	r1, [fp, #-17]	@ zero_extendqisi2
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	str	r3, [sp, #4]
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	str	r3, [sp]
	add	r3, fp, #4
	ldm	r3, {r2, r3}
	ldr	r0, [fp, #-16]
	bl	SetMaxTimeCredits
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	TimerGetElapsedTime
	mov	r2, r0
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #12]
.L24:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	cmp	r2, r3
	bls	.L25
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #12]
.L25:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #12]
	str	r2, [r3, #4]
	ldrh	r3, [fp, #-6]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	UpdateTimeCredits, .-UpdateTimeCredits
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CountChannels, %function
CountChannels:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	mov	r3, r0
	mov	r2, r1
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, r2
	strb	r3, [fp, #-15]
	mov	r3, #0
	strb	r3, [fp, #-6]
	mov	r3, #0
	strb	r3, [fp, #-5]
	b	.L28
.L30:
	ldrh	r2, [fp, #-14]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r1, #1
	lsl	r3, r1, r3
	and	r2, r2, r3
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r1, #1
	lsl	r3, r1, r3
	cmp	r2, r3
	bne	.L29
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-6]
.L29:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L28:
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L30
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	CountChannels, .-CountChannels
	.align	2
	.global	RegionCommonChanVerifyDr
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonChanVerifyDr, %function
RegionCommonChanVerifyDr:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r1, [fp, #-20]
	mov	r1, r2
	mov	r2, r3
	mov	r3, r0
	strb	r3, [fp, #-13]
	mov	r3, r1
	strb	r3, [fp, #-14]
	mov	r3, r2
	strb	r3, [fp, #-15]
	ldrsb	r2, [fp, #4]
	ldrsb	r1, [fp, #-15]
	ldrsb	r3, [fp, #-14]
	mov	r0, r3
	bl	RegionCommonValueInRange
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	mov	r3, #0
	b	.L34
.L33:
	mov	r3, #0
	strb	r3, [fp, #-7]
	mov	r3, #0
	strb	r3, [fp, #-6]
	b	.L35
.L39:
	mov	r3, #0
	strb	r3, [fp, #-5]
	b	.L36
.L38:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	asr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L37
	ldrb	r2, [fp, #-7]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r2, r3
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #8]
	add	r3, r3, r2
	ldrb	r3, [r3, #8]
	lsl	r3, r3, #4
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #4
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #15
	lsl	r3, r3, #24
	asr	r1, r3, #24
	ldrb	r2, [fp, #-7]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r2, r3
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #8]
	add	r3, r3, r2
	ldrb	r3, [r3, #8]
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #4
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #15
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldrsb	r3, [fp, #-14]
	mov	r0, r3
	bl	RegionCommonValueInRange
	mov	r3, r0
	cmp	r3, #1
	bne	.L37
	mov	r3, #1
	b	.L34
.L37:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L36:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #15
	bls	.L38
	ldrb	r3, [fp, #-7]
	add	r3, r3, #16
	strb	r3, [fp, #-7]
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-6]
.L35:
	ldrb	r2, [fp, #-7]	@ zero_extendqisi2
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L39
	mov	r3, #0
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	RegionCommonChanVerifyDr, .-RegionCommonChanVerifyDr
	.align	2
	.global	RegionCommonValueInRange
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonValueInRange, %function
RegionCommonValueInRange:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	mov	r3, r1
	strb	r3, [fp, #-6]
	mov	r3, r2
	strb	r3, [fp, #-7]
	ldrsb	r2, [fp, #-5]
	ldrsb	r3, [fp, #-6]
	cmp	r2, r3
	blt	.L41
	ldrsb	r2, [fp, #-5]
	ldrsb	r3, [fp, #-7]
	cmp	r2, r3
	bgt	.L41
	mov	r3, #1
	b	.L42
.L41:
	mov	r3, #0
.L42:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	RegionCommonValueInRange, .-RegionCommonValueInRange
	.align	2
	.global	RegionCommonChanDisable
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonChanDisable, %function
RegionCommonChanDisable:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, r1
	strb	r3, [fp, #-17]
	mov	r3, r2
	strb	r3, [fp, #-18]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	lsr	r3, r3, #4
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	cmp	r2, r3
	bhi	.L44
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L45
.L44:
	mov	r3, #0
	b	.L46
.L45:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrh	r3, [r3]
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	and	r3, r3, #15
	mov	r1, #1
	lsl	r3, r1, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mvn	r3, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	and	r3, r3, r2
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsl	r3, r3, #1
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	mov	r3, #1
.L46:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	RegionCommonChanDisable, .-RegionCommonChanDisable
	.align	2
	.global	RegionCommonCountChannels
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonCountChannels, %function
RegionCommonCountChannels:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, r1
	strb	r3, [fp, #-17]
	mov	r3, r2
	strb	r3, [fp, #-18]
	mov	r3, #0
	strb	r3, [fp, #-6]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L48
	mov	r3, #0
	b	.L49
.L48:
	ldrb	r3, [fp, #-17]
	strb	r3, [fp, #-5]
	b	.L50
.L51:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r1, #16
	mov	r0, r3
	bl	CountChannels
	mov	r3, r0
	mov	r2, r3
	ldrb	r3, [fp, #-6]
	add	r3, r2, r3
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L50:
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L51
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
.L49:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	RegionCommonCountChannels, .-RegionCommonCountChannels
	.align	2
	.global	RegionCommonChanMaskCopy
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonChanMaskCopy, %function
RegionCommonChanMaskCopy:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, r2
	strb	r3, [fp, #-21]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L56
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L56
	mov	r3, #0
	strb	r3, [fp, #-5]
	b	.L54
.L55:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r2, r2, r3
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsl	r3, r3, #1
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldrh	r2, [r2]
	strh	r2, [r3]	@ movhi
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L54:
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L55
.L56:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	RegionCommonChanMaskCopy, .-RegionCommonChanMaskCopy
	.align	2
	.global	RegionCommonSetBandTxDone
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonSetBandTxDone, %function
RegionCommonSetBandTxDone:
	@ args = 12, pretend = 8, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #8
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r3, [fp, #8]
	mov	r3, r2
	strb	r3, [fp, #-21]
	ldrb	r1, [fp, #-21]	@ zero_extendqisi2
	add	r3, fp, #8
	ldm	r3, {r2, r3}
	ldr	r0, [fp, #-16]
	bl	GetDutyCycle
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldrh	r3, [fp, #-6]
	ldr	r1, [fp, #-20]
	mul	r3, r1, r3
	cmp	r2, r3
	bls	.L58
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldrh	r3, [fp, #-6]
	ldr	r1, [fp, #-20]
	mul	r3, r1, r3
	sub	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #12]
	b	.L60
.L58:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #12]
.L60:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #8
	bx	lr
	.size	RegionCommonSetBandTxDone, .-RegionCommonSetBandTxDone
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	RegionCommonUpdateBandTimeOff
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonUpdateBandTimeOff, %function
RegionCommonUpdateBandTimeOff:
	@ args = 16, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	str	r1, [fp, #-52]
	mov	r1, r2
	mov	r2, r3
	mov	r3, r0
	strb	r3, [fp, #-45]
	mov	r3, r1
	strb	r3, [fp, #-46]
	mov	r3, r2
	strb	r3, [fp, #-47]
	ldr	r3, .L75
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-36]
	bl	TimerGetCurrentTime
	str	r0, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #1
	strh	r3, [fp, #-38]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-40]
	mov	r3, #0
	strb	r3, [fp, #-39]
	b	.L62
.L71:
	ldrb	r2, [fp, #-39]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	ip, r3, r2
	ldrb	r4, [fp, #4]	@ zero_extendqisi2
	ldrb	r2, [fp, #-47]	@ zero_extendqisi2
	ldrb	lr, [fp, #-45]	@ zero_extendqisi2
	ldr	r3, [fp, #-32]
	str	r3, [sp, #8]
	mov	r5, sp
	add	r3, fp, #8
	ldm	r3, {r0, r1}
	stm	r5, {r0, r1}
	mov	r3, r4
	mov	r1, lr
	mov	r0, ip
	bl	UpdateTimeCredits
	mov	r3, r0
	strh	r3, [fp, #-38]	@ movhi
	ldrh	r2, [fp, #-38]
	ldr	r3, [fp, #16]
	mul	r3, r2, r3
	str	r3, [fp, #-28]
	ldrb	r2, [fp, #-39]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bcc	.L63
	ldrb	r3, [fp, #-47]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L64
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L64
.L63:
	ldrb	r2, [fp, #-39]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	mov	r2, #1
	strb	r2, [r3, #20]
	ldrb	r3, [fp, #-40]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-40]
	b	.L65
.L64:
	ldrb	r2, [fp, #-39]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3, #20]
	ldrb	r2, [fp, #-39]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bcs	.L66
	ldrb	r2, [fp, #-39]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-28]
	sub	r3, r2, r3
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	movcc	r3, r2
	movcs	r3, r3
	str	r3, [fp, #-36]
	ldrb	r3, [fp, #-40]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-40]
.L66:
	ldrb	r3, [fp, #-45]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L65
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	strh	r3, [fp, #-20]	@ movhi
	ldrh	r3, [fp, #-38]
	cmp	r3, #100
	bne	.L67
	mov	r3, #3600
	str	r3, [fp, #-24]
	b	.L68
.L67:
	ldrh	r3, [fp, #-38]
	cmp	r3, #1000
	bne	.L69
	ldr	r3, .L75+4
	str	r3, [fp, #-24]
	b	.L68
.L69:
	ldr	r3, .L75+8
	str	r3, [fp, #-24]
.L68:
	ldr	r3, [fp, #8]
	ldr	r2, .L75+8
	cmp	r3, r2
	bls	.L70
	ldr	r1, [fp, #-24]
	ldr	r3, [fp, #8]
	sub	r3, r3, #125952
	sub	r3, r3, #48
	ldr	r2, .L75+12
	umull	r0, r3, r2, r3
	lsr	r3, r3, #16
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	sub	r3, r3, r2
	lsl	r3, r3, #7
	add	r3, r1, r3
	str	r3, [fp, #-24]
.L70:
	sub	r0, fp, #24
	ldr	r3, [fp, #12]
	str	r3, [sp]
	ldr	r3, [fp, #8]
	sub	r2, fp, #24
	ldm	r2, {r1, r2}
	bl	SysTimeSub
	sub	r3, fp, #24
	ldm	r3, {r0, r1}
	bl	SysTimeToMs
	str	r0, [fp, #-36]
.L65:
	ldrb	r3, [fp, #-39]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-39]
.L62:
	ldrb	r2, [fp, #-39]	@ zero_extendqisi2
	ldrb	r3, [fp, #-46]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L71
	ldrb	r3, [fp, #-40]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L72
	mvn	r3, #0
	b	.L73
.L72:
	ldr	r3, [fp, #-36]
.L73:
	ldr	r2, .L75
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L74
	bl	__stack_chk_fail
.L74:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L76:
	.align	2
.L75:
	.word	.LC1
	.word	39600
	.word	126000
	.word	-1037155065
	.size	RegionCommonUpdateBandTimeOff, .-RegionCommonUpdateBandTimeOff
	.align	2
	.global	RegionCommonParseLinkAdrReq
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonParseLinkAdrReq, %function
RegionCommonParseLinkAdrReq:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #3
	bne	.L78
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-20]
	strb	r2, [r3, #1]
	ldr	r3, [fp, #-20]
	ldrsb	r3, [r3, #1]
	and	r3, r3, #15
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-20]
	strb	r2, [r3, #2]
	ldr	r3, [fp, #-20]
	ldrsb	r3, [r3, #1]
	and	r3, r3, #255
	lsr	r3, r3, #4
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-20]
	strb	r2, [r3, #1]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-20]
	strh	r2, [r3, #4]	@ movhi
	ldr	r3, [fp, #-20]
	ldrh	r3, [r3, #4]
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-20]
	strh	r2, [r3, #4]	@ movhi
	ldr	r3, [fp, #-16]
	ldrb	r2, [r3, #4]	@ zero_extendqisi2
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	and	r3, r3, #7
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3, #3]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #15
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	mov	r3, #5
	strb	r3, [fp, #-5]
.L78:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	RegionCommonParseLinkAdrReq, .-RegionCommonParseLinkAdrReq
	.align	2
	.global	RegionCommonLinkAdrReqVerifyParams
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonLinkAdrReqVerifyParams, %function
RegionCommonLinkAdrReqVerifyParams:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #4]
	strb	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #6]
	strb	r3, [fp, #-7]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #7]
	strb	r3, [fp, #-6]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L81
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #11]
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #9]
	strb	r3, [fp, #-7]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #10]
	strb	r3, [fp, #-6]
.L81:
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L82
	ldr	r3, [fp, #-16]
	ldrb	r0, [r3, #12]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #-16]
	ldrsb	lr, [r3, #20]
	ldr	r3, [fp, #-16]
	ldrsb	r3, [r3, #21]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2, #24]
	ldrsb	ip, [fp, #-7]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	bl	RegionCommonChanVerifyDr
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L83
	ldrb	r3, [fp, #-8]
	bic	r3, r3, #2
	strb	r3, [fp, #-8]
.L83:
	ldr	r3, [fp, #-16]
	ldrsb	r1, [r3, #29]
	ldr	r3, [fp, #-16]
	ldrsb	r2, [r3, #28]
	ldrsb	r3, [fp, #-6]
	mov	r0, r3
	bl	RegionCommonValueInRange
	mov	r3, r0
	cmp	r3, #0
	bne	.L82
	ldr	r3, [fp, #-16]
	ldrsb	r3, [r3, #29]
	ldrsb	r2, [fp, #-6]
	cmp	r2, r3
	bge	.L84
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #29]
	strb	r3, [fp, #-6]
	b	.L82
.L84:
	ldrb	r3, [fp, #-8]
	bic	r3, r3, #4
	strb	r3, [fp, #-8]
.L82:
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	cmp	r3, #7
	bne	.L85
	ldrsb	r3, [fp, #-5]
	cmp	r3, #0
	bne	.L85
	mov	r3, #1
	strb	r3, [fp, #-5]
.L85:
	ldr	r3, [fp, #-20]
	ldrb	r2, [fp, #-7]
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldrb	r2, [fp, #-6]
	strb	r2, [r3]
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	ldr	r3, [fp, #-28]
	strb	r2, [r3]
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	RegionCommonLinkAdrReqVerifyParams, .-RegionCommonLinkAdrReqVerifyParams
	.global	__aeabi_uidiv
	.align	2
	.global	RegionCommonComputeSymbolTimeLoRa
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonComputeSymbolTimeLoRa, %function
RegionCommonComputeSymbolTimeLoRa:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	str	r1, [fp, #-12]
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, .L89
	lsl	r3, r2, r3
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L90:
	.align	2
.L89:
	.word	1000000
	.size	RegionCommonComputeSymbolTimeLoRa, .-RegionCommonComputeSymbolTimeLoRa
	.align	2
	.global	RegionCommonComputeSymbolTimeFsk
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonComputeSymbolTimeFsk, %function
RegionCommonComputeSymbolTimeFsk:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r1, r3
	mov	r0, #8000
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	RegionCommonComputeSymbolTimeFsk, .-RegionCommonComputeSymbolTimeFsk
	.align	2
	.global	RegionCommonComputeRxWindowParameters
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonComputeRxWindowParameters, %function
RegionCommonComputeRxWindowParameters:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, r1
	strb	r3, [fp, #-17]
	ldrb	r4, [fp, #-17]	@ zero_extendqisi2
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-16]
	mul	r1, r3, r2
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	lsl	r3, r3, #1
	cmp	r3, #0
	beq	.L94
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-16]
	mul	r1, r3, r2
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	lsl	r2, r3, #1
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	b	.L95
.L94:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-16]
	mul	r1, r3, r2
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	lsl	r3, r3, #1
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
.L95:
	cmp	r3, r4
	movcs	r2, r3
	movcc	r2, r4
	ldr	r3, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	cmp	r3, #0
	beq	.L96
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	add	r3, r3, #1
	lsr	r3, r3, #1
	b	.L97
.L96:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	lsr	r3, r3, #1
.L97:
	sub	r1, r1, r3
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r1, r3
	cmp	r3, #0
	ble	.L98
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	cmp	r3, #0
	beq	.L99
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	add	r3, r3, #1
	lsr	r3, r3, #1
	b	.L100
.L99:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	lsr	r3, r3, #1
.L100:
	sub	r1, r1, r3
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r1, r3
	add	r3, r3, #996
	add	r3, r3, #3
	ldr	r2, .L104
	smull	r1, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	b	.L101
.L98:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	cmp	r3, #0
	beq	.L102
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	add	r3, r3, #1
	lsr	r3, r3, #1
	b	.L103
.L102:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	lsr	r3, r3, #1
.L103:
	sub	r1, r1, r3
	ldr	r2, [fp, #-28]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r1, r3
	ldr	r2, .L104
	smull	r1, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
.L101:
	ldr	r2, [fp, #8]
	str	r3, [r2]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L105:
	.align	2
.L104:
	.word	274877907
	.size	RegionCommonComputeRxWindowParameters, .-RegionCommonComputeRxWindowParameters
	.global	__aeabi_ui2f
	.global	__aeabi_fsub
	.global	__aeabi_f2d
	.global	__aeabi_d2iz
	.align	2
	.global	RegionCommonComputeTxPower
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonComputeTxPower, %function
RegionCommonComputeTxPower:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r3, r0
	str	r1, [fp, #-20]	@ float
	str	r2, [fp, #-24]	@ float
	strb	r3, [fp, #-13]
	mov	r3, #0
	strb	r3, [fp, #-5]
	ldrsb	r3, [fp, #-13]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_ui2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	ldr	r1, [fp, #-24]	@ float
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	floor
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrsb	r3, [fp, #-5]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	RegionCommonComputeTxPower, .-RegionCommonComputeTxPower
	.align	2
	.global	RegionCommonRxBeaconSetup
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonRxBeaconSetup, %function
RegionCommonRxBeaconSetup:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-24]
	mov	r3, #1
	strb	r3, [fp, #-14]
	ldr	r3, .L110
	ldr	r3, [r3, #44]
	blx	r3
	ldr	r3, .L110
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #4]
	mov	r0, r2
	blx	r3
	ldr	r3, .L110
	ldr	r3, [r3, #84]
	ldr	r2, [fp, #-24]
	ldrb	r2, [r2, #8]	@ zero_extendqisi2
	mov	r1, r2
	mov	r0, #1
	blx	r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L109
	mov	r3, #0
	strb	r3, [fp, #-14]
.L109:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldrb	r2, [r2, #9]	@ zero_extendqisi2
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-13]
	ldr	r3, .L110
	ldr	r4, [r3, #24]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	mov	ip, r3
	ldrb	r0, [fp, #-13]	@ zero_extendqisi2
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3, #16]
	ldr	r2, [fp, #-24]
	ldrb	r2, [r2, #8]	@ zero_extendqisi2
	ldrb	r1, [fp, #-14]	@ zero_extendqisi2
	str	r1, [sp, #36]
	mov	r1, #0
	str	r1, [sp, #32]
	mov	r1, #0
	str	r1, [sp, #28]
	mov	r1, #0
	str	r1, [sp, #24]
	mov	r1, #0
	str	r1, [sp, #20]
	str	r2, [sp, #16]
	mov	r2, #1
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	mov	r3, #10
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #1
	mov	r2, r0
	mov	r1, ip
	mov	r0, #1
	blx	r4
	ldr	r3, .L110
	ldr	r3, [r3, #52]
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #12]
	mov	r0, r2
	blx	r3
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L111:
	.align	2
.L110:
	.word	Radio
	.size	RegionCommonRxBeaconSetup, .-RegionCommonRxBeaconSetup
	.align	2
	.global	RegionCommonCountNbOfEnabledChannels
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonCountNbOfEnabledChannels, %function
RegionCommonCountNbOfEnabledChannels:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	strb	r3, [fp, #-9]
	mov	r3, #0
	strb	r3, [fp, #-8]
	mov	r3, #0
	strb	r3, [fp, #-7]
	mov	r3, #0
	strb	r3, [fp, #-6]
	b	.L113
.L121:
	mov	r3, #0
	strb	r3, [fp, #-5]
	b	.L114
.L120:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	asr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L115
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldrb	r1, [fp, #-7]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r1, r3
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L122
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L117
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L117
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #20]
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	asr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L123
.L117:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r0, r3, #24
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldrb	r1, [fp, #-7]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r1, r3
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldrb	r3, [r3, #8]
	lsl	r3, r3, #4
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #4
	lsl	r3, r3, #24
	asr	r3, r3, #24
	mov	ip, r3
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldrb	r1, [fp, #-7]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r1, r3
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldrb	r3, [r3, #8]
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #4
	lsl	r3, r3, #24
	asr	r3, r3, #24
	mov	r2, r3
	mov	r1, ip
	bl	RegionCommonValueInRange
	mov	r3, r0
	cmp	r3, #0
	beq	.L124
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #8]
	ldrb	r0, [fp, #-7]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r0, r3
	mov	r0, r3
	mov	r3, r0
	lsl	r3, r3, #1
	add	r3, r3, r0
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldrb	r3, [r3, #20]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L119
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-8]
	b	.L115
.L119:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	add	r2, r3, #1
	strb	r2, [fp, #-9]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldrb	r1, [fp, #-7]
	ldrb	r2, [fp, #-5]
	add	r2, r1, r2
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L115
.L122:
	nop
	b	.L115
.L123:
	nop
	b	.L115
.L124:
	nop
.L115:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L114:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #15
	bls	.L120
	ldrb	r3, [fp, #-7]
	add	r3, r3, #16
	strb	r3, [fp, #-7]
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-6]
.L113:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3, #16]
	cmp	r2, r3
	bcc	.L121
	ldr	r3, [fp, #-24]
	ldrb	r2, [fp, #-9]
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	ldrb	r2, [fp, #-8]
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	RegionCommonCountNbOfEnabledChannels, .-RegionCommonCountNbOfEnabledChannels
	.align	2
	.global	RegionCommonIdentifyChannels
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonIdentifyChannels, %function
RegionCommonIdentifyChannels:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #44
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	TimerGetElapsedTime
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	sub	r2, r2, r3
	ldr	r3, [fp, #8]
	str	r2, [r3]
	ldr	r3, [fp, #4]
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L126
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bcc	.L127
.L126:
	ldr	r3, [fp, #-36]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #28]
	ldrb	ip, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #28]
	ldr	lr, [r3, #12]
	ldr	r3, [fp, #-32]
	ldrb	r4, [r3, #9]	@ zero_extendqisi2
	ldr	r3, [fp, #-32]
	ldrb	r5, [r3, #8]	@ zero_extendqisi2
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #20]	@ zero_extendqisi2
	ldr	r2, [fp, #-32]
	ldr	r2, [r2, #24]
	str	r2, [sp, #12]
	ldr	r2, [fp, #-32]
	add	r6, sp, #4
	add	r2, r2, #12
	ldm	r2, {r0, r1}
	stm	r6, {r0, r1}
	str	r3, [sp]
	mov	r3, r5
	mov	r2, r4
	mov	r1, lr
	mov	r0, ip
	bl	RegionCommonUpdateBandTimeOff
	mov	r2, r0
	ldr	r3, [fp, #8]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r0, [r3, #28]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-40]
	bl	RegionCommonCountNbOfEnabledChannels
.L127:
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L128
	ldr	r3, [fp, #8]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	b	.L129
.L128:
	ldr	r3, [fp, #4]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L130
	mov	r3, #11
	b	.L129
.L130:
	mov	r3, #12
.L129:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
	.size	RegionCommonIdentifyChannels, .-RegionCommonIdentifyChannels
	.align	2
	.global	RegionCommonGetNextLowerTxDr
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonGetNextLowerTxDr, %function
RegionCommonGetNextLowerTxDr:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-16]
	ldrsb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldrsb	r3, [r3, #2]
	cmp	r2, r3
	bne	.L132
	ldr	r3, [fp, #-16]
	ldrsb	r3, [r3, #2]
	b	.L133
.L132:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #1
	and	r3, r3, #255
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-16]
	ldrsb	r3, [r3, #2]
	ldrsb	r2, [fp, #-5]
	cmp	r2, r3
	beq	.L134
	ldr	r3, [fp, #-16]
	ldrb	r0, [r3, #3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-16]
	ldrsb	lr, [r3, #2]
	ldr	r3, [fp, #-16]
	ldrsb	r3, [r3, #1]
	ldr	r2, [fp, #-16]
	ldr	r2, [r2, #8]
	ldrsb	ip, [fp, #-5]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	bl	RegionCommonChanVerifyDr
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L132
.L134:
	ldrsb	r3, [fp, #-5]
.L133:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	RegionCommonGetNextLowerTxDr, .-RegionCommonGetNextLowerTxDr
	.align	2
	.global	RegionCommonLimitTxPower
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonLimitTxPower, %function
RegionCommonLimitTxPower:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	mov	r2, r1
	strb	r3, [fp, #-5]
	mov	r3, r2
	strb	r3, [fp, #-6]
	ldrsb	r2, [fp, #-6]
	ldrsb	r3, [fp, #-5]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	RegionCommonLimitTxPower, .-RegionCommonLimitTxPower
	.align	2
	.global	RegionCommonGetBandwidth
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionCommonGetBandwidth, %function
RegionCommonGetBandwidth:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L141
	cmp	r3, r2
	beq	.L138
	ldr	r2, .L141+4
	cmp	r3, r2
	beq	.L139
	mov	r3, #0
	b	.L140
.L138:
	mov	r3, #1
	b	.L140
.L139:
	mov	r3, #2
.L140:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L142:
	.align	2
.L141:
	.word	250000
	.word	500000
	.size	RegionCommonGetBandwidth, .-RegionCommonGetBandwidth
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
