	.file	"711365.c"
	.intel_syntax noprefix
	.text
	.data
	.align 8
	.type	pcValidTxPower, @object
	.size	pcValidTxPower, 9
pcValidTxPower:
	.string	"\330\354\360\364\370\374"
	.ascii	"\003\004"
	.type	ucMaxValidTxPower, @object
	.size	ucMaxValidTxPower, 1
ucMaxValidTxPower:
	.byte	4
	.type	cMinvalidTxPower, @object
	.size	cMinvalidTxPower, 1
cMinvalidTxPower:
	.byte	-40
	.text
	.globl	cBluetoothStackGetValidTxPower
	.type	cBluetoothStackGetValidTxPower, @function
cBluetoothStackGetValidTxPower:
.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	BYTE PTR -20[rbp], al
	mov	BYTE PTR -5[rbp], 0
	movsx	edx, BYTE PTR -20[rbp]
	movzx	eax, BYTE PTR ucMaxValidTxPower[rip]
	movzx	eax, al
	cmp	edx, eax
	jl	.L2
	movzx	eax, BYTE PTR ucMaxValidTxPower[rip]
	mov	BYTE PTR -5[rbp], al
	jmp	.L3
.L2:
	movzx	eax, BYTE PTR cMinvalidTxPower[rip]
	cmp	BYTE PTR -20[rbp], al
	jg	.L4
	movzx	eax, BYTE PTR cMinvalidTxPower[rip]
	mov	BYTE PTR -5[rbp], al
	jmp	.L3
.L4:
	mov	BYTE PTR -4[rbp], 0
	movsx	eax, BYTE PTR -20[rbp]
	movzx	edx, BYTE PTR cMinvalidTxPower[rip]
	movsx	edx, dl
	sub	eax, edx
	cdq
	xor	eax, edx
	sub	eax, edx
	mov	BYTE PTR -3[rbp], al
	mov	BYTE PTR -2[rbp], 0
	jmp	.L5
.L8:
	movsx	edx, BYTE PTR -20[rbp]
	movzx	eax, BYTE PTR -2[rbp]
	cdqe
	lea	rcx, pcValidTxPower[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	movsx	ecx, al
	mov	eax, edx
	sub	eax, ecx
	cdq
	xor	eax, edx
	sub	eax, edx
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	cmp	al, BYTE PTR -3[rbp]
	jnb	.L6
	movzx	eax, BYTE PTR -2[rbp]
	jmp	.L7
.L6:
	movzx	eax, BYTE PTR -4[rbp]
.L7:
	mov	BYTE PTR -4[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	movzx	edx, BYTE PTR -3[rbp]
	cmp	BYTE PTR -3[rbp], al
	cmovbe	eax, edx
	mov	BYTE PTR -3[rbp], al
	movzx	eax, BYTE PTR -2[rbp]
	add	eax, 1
	mov	BYTE PTR -2[rbp], al
.L5:
	cmp	BYTE PTR -2[rbp], 8
	jbe	.L8
	movzx	eax, BYTE PTR -4[rbp]
	cdqe
	lea	rdx, pcValidTxPower[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	BYTE PTR -5[rbp], al
.L3:
	movzx	eax, BYTE PTR -5[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	cBluetoothStackGetValidTxPower, .-cBluetoothStackGetValidTxPower
	.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	"711365.c"
	.text
	.data
	.align	2
	.type	pcValidTxPower, %object
	.size	pcValidTxPower, 9
pcValidTxPower:
	.ascii	"\330\354\360\364\370\374\000\003\004"
	.type	ucMaxValidTxPower, %object
	.size	ucMaxValidTxPower, 1
ucMaxValidTxPower:
	.byte	4
	.type	cMinvalidTxPower, %object
	.size	cMinvalidTxPower, 1
cMinvalidTxPower:
	.byte	-40
	.text
	.align	2
	.global	cBluetoothStackGetValidTxPower
	.syntax unified
	.arm
	.fpu softvfp
	.type	cBluetoothStackGetValidTxPower, %function
cBluetoothStackGetValidTxPower:
	@ 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
	strb	r3, [fp, #-13]
	mov	r3, #0
	strb	r3, [fp, #-9]
	ldrsb	r3, [fp, #-13]
	ldr	r2, .L10
	ldrb	r2, [r2]	@ zero_extendqisi2
	cmp	r3, r2
	blt	.L2
	ldr	r3, .L10
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [fp, #-9]
	b	.L3
.L2:
	ldr	r3, .L10+4
	ldrsb	r3, [r3]
	ldrsb	r2, [fp, #-13]
	cmp	r2, r3
	bgt	.L4
	ldr	r3, .L10+4
	ldrb	r3, [r3]
	strb	r3, [fp, #-9]
	b	.L3
.L4:
	mov	r3, #0
	strb	r3, [fp, #-8]
	ldrsb	r3, [fp, #-13]
	ldr	r2, .L10+4
	ldrsb	r2, [r2]
	sub	r3, r3, r2
	cmp	r3, #0
	rsblt	r3, r3, #0
	strb	r3, [fp, #-7]
	mov	r3, #0
	strb	r3, [fp, #-6]
	b	.L5
.L8:
	ldrsb	r3, [fp, #-13]
	ldrb	r2, [fp, #-6]	@ zero_extendqisi2
	ldr	r1, .L10+8
	ldrsb	r2, [r1, r2]
	sub	r3, r3, r2
	cmp	r3, #0
	rsblt	r3, r3, #0
	strb	r3, [fp, #-5]
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	cmp	r2, r3
	bcs	.L6
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	b	.L7
.L6:
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
.L7:
	strb	r3, [fp, #-8]
	ldrb	r2, [fp, #-7]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r2, r3
	movcc	r3, r2
	movcs	r3, r3
	strb	r3, [fp, #-7]
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-6]
.L5:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #8
	bls	.L8
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	ldr	r2, .L10+8
	ldrb	r3, [r2, r3]
	strb	r3, [fp, #-9]
.L3:
	ldrsb	r3, [fp, #-9]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L11:
	.align	2
.L10:
	.word	ucMaxValidTxPower
	.word	cMinvalidTxPower
	.word	pcValidTxPower
	.size	cBluetoothStackGetValidTxPower, .-cBluetoothStackGetValidTxPower
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
