	.file	"428779.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	FindAvailable125kHzChannels, @function
FindAvailable125kHzChannels:
.LFB0:
	.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 -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	WORD PTR -20[rbp], ax
	cmp	QWORD PTR -32[rbp], 0
	je	.L2
	cmp	QWORD PTR -40[rbp], 0
	jne	.L3
.L2:
	mov	eax, 3
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], 0
	mov	BYTE PTR -1[rbp], 0
	jmp	.L5
.L7:
	movzx	edx, WORD PTR -20[rbp]
	movzx	eax, BYTE PTR -1[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -1[rbp]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], dl
.L6:
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L5:
	cmp	BYTE PTR -1[rbp], 7
	jbe	.L7
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	FindAvailable125kHzChannels, .-FindAvailable125kHzChannels
	.globl	RegionBaseUSComputeNext125kHzJoinChannel
	.type	RegionBaseUSComputeNext125kHzJoinChannel, @function
RegionBaseUSComputeNext125kHzJoinChannel:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	BYTE PTR -37[rbp], 0
	cmp	QWORD PTR -56[rbp], 0
	je	.L9
	cmp	QWORD PTR -64[rbp], 0
	je	.L9
	cmp	QWORD PTR -72[rbp], 0
	jne	.L10
.L9:
	mov	eax, 3
	jmp	.L20
.L10:
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -36[rbp], al
.L18:
	movzx	eax, BYTE PTR -36[rbp]
	shr	al
	mov	BYTE PTR -35[rbp], al
	movzx	eax, BYTE PTR -36[rbp]
	and	eax, 1
	test	al, al
	jne	.L12
	movzx	eax, BYTE PTR -35[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	and	ax, 255
	mov	WORD PTR -34[rbp], ax
	jmp	.L13
.L12:
	movzx	eax, BYTE PTR -35[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	shr	ax, 8
	mov	WORD PTR -34[rbp], ax
.L13:
	movzx	eax, WORD PTR -34[rbp]
	lea	rdx, -37[rbp]
	lea	rcx, -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	FindAvailable125kHzChannels
	cmp	eax, 3
	jne	.L14
	mov	eax, 3
	jmp	.L20
.L14:
	movzx	eax, BYTE PTR -37[rbp]
	test	al, al
	je	.L15
	movzx	eax, BYTE PTR -36[rbp]
	lea	ebx, 0[0+rax*8]
	movzx	eax, BYTE PTR -37[rbp]
	movzx	eax, al
	sub	eax, 1
	cdqe
	mov	rsi, rax
	mov	edi, 0
	call	randr@PLT
	movzx	eax, BYTE PTR -32[rbp+rax]
	lea	edx, [rbx+rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	BYTE PTR [rax], dl
.L15:
	movzx	eax, BYTE PTR -36[rbp]
	add	eax, 1
	mov	BYTE PTR -36[rbp], al
	cmp	BYTE PTR -36[rbp], 7
	jbe	.L16
	mov	BYTE PTR -36[rbp], 0
.L16:
	movzx	eax, BYTE PTR -37[rbp]
	test	al, al
	jne	.L17
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -36[rbp], al
	jne	.L18
.L17:
	movzx	eax, BYTE PTR -37[rbp]
	test	al, al
	je	.L19
	mov	rax, QWORD PTR -64[rbp]
	movzx	edx, BYTE PTR -36[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, 0
	jmp	.L20
.L19:
	mov	eax, 3
.L20:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	RegionBaseUSComputeNext125kHzJoinChannel, .-RegionBaseUSComputeNext125kHzJoinChannel
	.globl	RegionBaseUSVerifyFrequencyGroup
	.type	RegionBaseUSVerifyFrequencyGroup, @function
RegionBaseUSVerifyFrequencyGroup:
.LFB2:
	.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	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jb	.L23
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	ja	.L23
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	div	QWORD PTR -32[rbp]
	mov	rax, rdx
	test	rax, rax
	je	.L24
.L23:
	mov	eax, 0
	jmp	.L25
.L24:
	mov	eax, 1
.L25:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	RegionBaseUSVerifyFrequencyGroup, .-RegionBaseUSVerifyFrequencyGroup
	.globl	RegionBaseUSCalcDownlinkFrequency
	.type	RegionBaseUSCalcDownlinkFrequency, @function
RegionBaseUSCalcDownlinkFrequency:
.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	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	BYTE PTR -4[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	imul	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	RegionBaseUSCalcDownlinkFrequency, .-RegionBaseUSCalcDownlinkFrequency
	.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	"428779.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	FindAvailable125kHzChannels, %function
FindAvailable125kHzChannels:
	@ 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
	mov	r3, r0
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	strh	r3, [fp, #-14]	@ movhi
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L3
.L2:
	mov	r3, #3
	b	.L4
.L3:
	ldr	r3, [fp, #-24]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	strb	r3, [fp, #-5]
	b	.L5
.L7:
	ldrh	r2, [fp, #-14]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	asr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldrb	r2, [fp, #-5]
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3]
.L6:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L5:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #7
	bls	.L7
	mov	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	FindAvailable125kHzChannels, .-FindAvailable125kHzChannels
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	RegionBaseUSComputeNext125kHzJoinChannel
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionBaseUSComputeNext125kHzJoinChannel, %function
RegionBaseUSComputeNext125kHzJoinChannel:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	strb	r3, [fp, #-29]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L10
.L9:
	mov	r3, #3
	b	.L20
.L10:
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]
	strb	r3, [fp, #-28]
.L18:
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	lsr	r3, r3, #1
	strb	r3, [fp, #-27]
	ldrb	r3, [fp, #-28]
	and	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L12
	ldrb	r3, [fp, #-27]	@ zero_extendqisi2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #255
	strh	r3, [fp, #-26]	@ movhi
	b	.L13
.L12:
	ldrb	r3, [fp, #-27]	@ zero_extendqisi2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrh	r3, [r3]
	lsr	r3, r3, #8
	strh	r3, [fp, #-26]	@ movhi
.L13:
	sub	r2, fp, #29
	sub	r1, fp, #24
	ldrh	r3, [fp, #-26]
	mov	r0, r3
	bl	FindAvailable125kHzChannels
	mov	r3, r0
	cmp	r3, #3
	bne	.L14
	mov	r3, #3
	b	.L20
.L14:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L15
	ldrb	r3, [fp, #-28]
	lsl	r3, r3, #3
	and	r4, r3, #255
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, #0
	bl	randr
	mov	r3, r0
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-12]	@ zero_extendqisi2
	add	r3, r4, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-48]
	strb	r2, [r3]
.L15:
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-28]
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	cmp	r3, #7
	bls	.L16
	mov	r3, #0
	strb	r3, [fp, #-28]
.L16:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-28]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L18
.L17:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-44]
	ldrb	r2, [fp, #-28]
	strb	r2, [r3]
	mov	r3, #0
	b	.L20
.L19:
	mov	r3, #3
.L20:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC0
	.size	RegionBaseUSComputeNext125kHzJoinChannel, .-RegionBaseUSComputeNext125kHzJoinChannel
	.global	__aeabi_uidivmod
	.align	2
	.global	RegionBaseUSVerifyFrequencyGroup
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionBaseUSVerifyFrequencyGroup, %function
RegionBaseUSVerifyFrequencyGroup:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcc	.L25
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bhi	.L25
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L26
.L25:
	mov	r3, #0
	b	.L27
.L26:
	mov	r3, #1
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	RegionBaseUSVerifyFrequencyGroup, .-RegionBaseUSVerifyFrequencyGroup
	.align	2
	.global	RegionBaseUSCalcDownlinkFrequency
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegionBaseUSCalcDownlinkFrequency, %function
RegionBaseUSCalcDownlinkFrequency:
	@ 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
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	mul	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	RegionBaseUSCalcDownlinkFrequency, .-RegionBaseUSCalcDownlinkFrequency
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
