	.file	"extr_cmd.c_lbs_get_channel.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"current radio channel is %d\n"
	.text
	.p2align 4
	.type	lbs_get_channel, @function
lbs_get_channel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	edx, 24
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	mov	rdi, r13
	call	memset@PLT
	mov	edi, 24
	call	cpu_to_le16@PLT
	mov	edi, DWORD PTR CMD_OPT_802_11_RF_CHANNEL_GET[rip]
	mov	QWORD PTR 16[rsp], rax
	call	cpu_to_le16@PLT
	mov	esi, DWORD PTR CMD_802_11_RF_CHANNEL[rip]
	mov	rdi, r12
	mov	rdx, r13
	mov	QWORD PTR 8[rsp], rax
	call	lbs_cmd_with_response@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR [rsp]
	call	le16_to_cpu@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	mov	r12d, eax
	call	lbs_deb_cmd@PLT
.L2:
	endbr64
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lbs_get_channel, .-lbs_get_channel
	.comm	CMD_OPT_802_11_RF_CHANNEL_GET,4,4
	.comm	CMD_802_11_RF_CHANNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cmd.c_lbs_get_channel.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"current radio channel is %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lbs_get_channel, %function
lbs_get_channel:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, lr}
	ldr	r2, .L7
	sub	sp, sp, #16
	mov	r4, r0
	mov	r0, #12
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r3, [sp]
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	bl	cpu_to_le16
	ldr	r3, .L7+4
	str	r0, [sp, #8]
	ldr	r0, [r3]
	bl	cpu_to_le16
	mov	r3, r0
	ldr	r1, .L7+8
	mov	r0, r4
	mov	r2, sp
	ldr	r1, [r1]
	str	r3, [sp, #4]
	bl	lbs_cmd_with_response
	subs	r4, r0, #0
	bne	.L1
	ldr	r0, [sp]
	bl	le16_to_cpu
	mov	r4, r0
	ldr	r0, .L7+12
	mov	r1, r4
	bl	lbs_deb_cmd
.L2:
.L1:
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	CMD_OPT_802_11_RF_CHANNEL_GET
	.word	CMD_802_11_RF_CHANNEL
	.word	.LC0
	.size	lbs_get_channel, .-lbs_get_channel
	.comm	CMD_OPT_802_11_RF_CHANNEL_GET,4,4
	.comm	CMD_802_11_RF_CHANNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
