	.file	"extr_ca8210.c_mlme_set_request_sync.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlme_set_request_sync, @function
mlme_set_request_sync:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	mov	rdx, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rsi, r12
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	add	rsp, -128
	.cfi_def_cfa_offset 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 120[rsp], rax
	xor	eax, eax
	call	tdme_checkpibattribute@PLT
	test	rax, rax
	jne	.L14
	cmp	QWORD PTR PHY_CURRENT_CHANNEL[rip], rbx
	je	.L4
.L7:
	cmp	QWORD PTR PHY_TRANSMIT_POWER[rip], rbx
	je	.L15
	mov	edi, DWORD PTR 24[rsp]
	mov	rdx, r12
	mov	rsi, rbp
	mov	QWORD PTR 48[rsp], rbx
	mov	rax, QWORD PTR SPI_MLME_SET_REQUEST[rip]
	mov	QWORD PTR 40[rsp], r14
	mov	QWORD PTR 32[rsp], r12
	mov	QWORD PTR [rsp], rax
	mov	eax, r12d
	sub	eax, DWORD PTR MAX_ATTRIBUTE_SIZE[rip]
	add	eax, 4
	mov	DWORD PTR 8[rsp], eax
	call	memcpy@PLT
	mov	eax, DWORD PTR 8[rsp]
	mov	rdi, rsp
	mov	rcx, r13
	lea	rdx, 64[rsp]
	lea	esi, 2[rax]
	call	cascoda_api_downstream@PLT
	test	rax, rax
	jne	.L9
	mov	rax, QWORD PTR SPI_MLME_SET_CONFIRM[rip]
	cmp	QWORD PTR 64[rsp], rax
	je	.L16
.L9:
	mov	rax, QWORD PTR MAC_SYSTEM_ERROR[rip]
.L1:
	mov	rcx, QWORD PTR 120[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L17
	sub	rsp, -128
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR MAC_INVALID_PARAMETER[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rax, QWORD PTR 80[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, QWORD PTR 0[rbp]
	mov	rsi, r13
	call	tdme_settxpower@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, QWORD PTR 0[rbp]
	mov	rsi, r13
	call	tdme_channelinit@PLT
	test	rax, rax
	je	.L7
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlme_set_request_sync, .-mlme_set_request_sync
	.comm	SPI_MLME_SET_REQUEST,8,8
	.comm	SPI_MLME_SET_CONFIRM,8,8
	.comm	PHY_TRANSMIT_POWER,8,8
	.comm	PHY_CURRENT_CHANNEL,8,8
	.comm	MAX_ATTRIBUTE_SIZE,4,4
	.comm	MAC_SYSTEM_ERROR,8,8
	.comm	MAC_INVALID_PARAMETER,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ca8210.c_mlme_set_request_sync.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlme_set_request_sync, %function
mlme_set_request_sync:
	@ args = 4, pretend = 0, frame = 64
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	mov	r6, r3
	mov	r2, r3
	ldr	r3, .L18
	sub	sp, sp, #64
	mov	r7, r1
	mov	r1, r4
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	mov	r5, r0
	ldr	r8, [sp, #88]
	bl	tdme_checkpibattribute
	cmp	r0, #0
	bne	.L14
	ldr	r3, .L18+4
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L4
.L7:
	ldr	r3, .L18+8
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L15
	ldr	r3, .L18+12
	ldr	r2, .L18+16
	ldr	r3, [r3]
	ldr	ip, [r2]
	rsb	r3, r3, #4
	add	r3, r3, r4
	mov	r1, r6
	mov	r2, r4
	ldr	r0, [sp, #16]
	str	r3, [sp, #8]
	str	ip, [sp, #4]
	str	r5, [sp, #28]
	str	r7, [sp, #24]
	str	r4, [sp, #20]
	bl	memcpy
	ldr	r1, [sp, #8]
	mov	r3, r8
	add	r1, r1, #2
	add	r2, sp, #32
	add	r0, sp, #4
	bl	cascoda_api_downstream
	cmp	r0, #0
	bne	.L9
	ldr	r3, .L18+20
	ldr	r2, [sp, #32]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L16
.L9:
	ldr	r3, .L18+24
	ldr	r0, [r3]
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #64
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r3, .L18+28
	ldr	r0, [r3]
	b	.L1
.L16:
	ldr	r0, [sp, #40]
	b	.L1
.L15:
	mov	r1, r8
	ldr	r0, [r6]
	bl	tdme_settxpower
	b	.L1
.L4:
	mov	r1, r8
	ldr	r0, [r6]
	bl	tdme_channelinit
	cmp	r0, #0
	beq	.L7
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	PHY_CURRENT_CHANNEL
	.word	PHY_TRANSMIT_POWER
	.word	MAX_ATTRIBUTE_SIZE
	.word	SPI_MLME_SET_REQUEST
	.word	SPI_MLME_SET_CONFIRM
	.word	MAC_SYSTEM_ERROR
	.word	MAC_INVALID_PARAMETER
	.size	mlme_set_request_sync, .-mlme_set_request_sync
	.comm	SPI_MLME_SET_REQUEST,4,4
	.comm	SPI_MLME_SET_CONFIRM,4,4
	.comm	PHY_TRANSMIT_POWER,4,4
	.comm	PHY_CURRENT_CHANNEL,4,4
	.comm	MAX_ATTRIBUTE_SIZE,4,4
	.comm	MAC_SYSTEM_ERROR,4,4
	.comm	MAC_INVALID_PARAMETER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
