	.file	"extr_iface.c_ieee802154_setup_hw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ieee802154_setup_hw, @function
ieee802154_setup_hw:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR 40[rdi]
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR IEEE802154_HW_PROMISCUOUS[rip], eax
	jne	.L24
	test	DWORD PTR IEEE802154_HW_AFILT[rip], eax
	jne	.L25
.L4:
	test	DWORD PTR IEEE802154_HW_LBT[rip], eax
	jne	.L26
	test	DWORD PTR IEEE802154_HW_CSMA_PARAMS[rip], eax
	jne	.L27
.L6:
	and	eax, DWORD PTR IEEE802154_HW_FRAME_RETRIES[rip]
	jne	.L28
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, rbp
	call	drv_set_lbt_mode@PLT
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR IEEE802154_HW_CSMA_PARAMS[rip], eax
	je	.L6
.L27:
	mov	ecx, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR 8[rbx]
	mov	rdi, rbp
	mov	esi, DWORD PTR 12[rbx]
	call	drv_set_csma_params@PLT
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR 0[rbp]
	and	eax, DWORD PTR IEEE802154_HW_FRAME_RETRIES[rip]
	je	.L1
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, DWORD PTR 32[rdi]
	mov	rdi, rbp
	call	drv_set_promiscuous_mode@PLT
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR IEEE802154_HW_AFILT[rip], eax
	je	.L4
.L25:
	mov	esi, DWORD PTR 28[rbx]
	mov	rdi, rbp
	call	drv_set_pan_id@PLT
	test	eax, eax
	js	.L1
	mov	esi, DWORD PTR 24[rbx]
	mov	rdi, rbp
	call	drv_set_extended_addr@PLT
	test	eax, eax
	js	.L1
	mov	esi, DWORD PTR 20[rbx]
	mov	rdi, rbp
	call	drv_set_short_addr@PLT
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR 0[rbp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L28:
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rbp
	call	drv_set_max_frame_retries@PLT
	mov	edx, 0
	test	eax, eax
	cmovg	eax, edx
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ieee802154_setup_hw, .-ieee802154_setup_hw
	.comm	IEEE802154_HW_PROMISCUOUS,4,4
	.comm	IEEE802154_HW_LBT,4,4
	.comm	IEEE802154_HW_FRAME_RETRIES,4,4
	.comm	IEEE802154_HW_CSMA_PARAMS,4,4
	.comm	IEEE802154_HW_AFILT,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_iface.c_ieee802154_setup_hw.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ieee802154_setup_hw, %function
ieee802154_setup_hw:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L28
	ldr	r5, [r0, #36]
	ldr	r2, [r3]
	ldr	r3, [r5]
	mov	r4, r0
	tst	r3, r2
	bne	.L24
	ldr	r2, .L28+4
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L25
.L4:
	ldr	r2, .L28+8
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L26
	ldr	r2, .L28+12
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L27
.L6:
	ldr	r2, .L28+16
	ldr	r0, [r2]
	ands	r0, r3, r0
	popeq	{r4, r5, r6, pc}
	mov	r0, r5
	ldr	r1, [r4]
	bl	drv_set_max_frame_retries
	and	r0, r0, r0, asr #31
	pop	{r4, r5, r6, pc}
.L26:
	mov	r0, r5
	ldr	r1, [r4, #16]
	bl	drv_set_lbt_mode
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	ldr	r2, .L28+12
	ldr	r3, [r5]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L6
.L27:
	mov	r0, r5
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	bl	drv_set_csma_params
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	ldr	r3, [r5]
	b	.L6
.L24:
	ldr	r1, [r0, #32]
	mov	r0, r5
	bl	drv_set_promiscuous_mode
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	ldr	r2, .L28+4
	ldr	r3, [r5]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L4
.L25:
	mov	r0, r5
	ldr	r1, [r4, #28]
	bl	drv_set_pan_id
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	mov	r0, r5
	ldr	r1, [r4, #24]
	bl	drv_set_extended_addr
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	mov	r0, r5
	ldr	r1, [r4, #20]
	bl	drv_set_short_addr
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	ldr	r3, [r5]
	b	.L4
.L29:
	.align	2
.L28:
	.word	IEEE802154_HW_PROMISCUOUS
	.word	IEEE802154_HW_AFILT
	.word	IEEE802154_HW_LBT
	.word	IEEE802154_HW_CSMA_PARAMS
	.word	IEEE802154_HW_FRAME_RETRIES
	.size	ieee802154_setup_hw, .-ieee802154_setup_hw
	.comm	IEEE802154_HW_PROMISCUOUS,4,4
	.comm	IEEE802154_HW_LBT,4,4
	.comm	IEEE802154_HW_FRAME_RETRIES,4,4
	.comm	IEEE802154_HW_CSMA_PARAMS,4,4
	.comm	IEEE802154_HW_AFILT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
