	.file	"extr_mac802154_hwsim.c_hwsim_add_one.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hwsim_add_one, @function
hwsim_add_one:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	mov	edi, 32
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	lea	rsi, hwsim_ops[rip]
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r15d, DWORD PTR hwsim_radio_idx[rip]
	mov	DWORD PTR 12[rsp], edx
	lea	eax, 1[r15]
	mov	DWORD PTR hwsim_radio_idx[rip], eax
	call	ieee802154_alloc_hw@PLT
	test	rax, rax
	je	.L13
	mov	r12, QWORD PTR 24[rax]
	mov	rdi, QWORD PTR 16[rax]
	mov	rbp, rax
	movabs	rdx, 8791932272639
	mov	QWORD PTR 8[r12], rax
	mov	rax, QWORD PTR 8[rdi]
	add	rdi, 4
	or	QWORD PTR [rax], rdx
	movabs	rdx, 70364449212415
	or	DWORD PTR 24[rax], 4194303
	or	QWORD PTR 8[rax], rdx
	movabs	rdx, 1095216726015
	or	QWORD PTR 16[rax], rdx
	call	ieee802154_random_extended_addr@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	mov	DWORD PTR [rax], 13
	call	kzalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L14
	mov	edi, DWORD PTR 24[r12]
	mov	rsi, rax
	call	rcu_assign_pointer@PLT
	mov	DWORD PTR [r12], r15d
	lea	rdi, 20[r12]
	call	INIT_LIST_HEAD@PLT
	mov	eax, DWORD PTR IEEE802154_HW_PROMISCUOUS[rip]
	mov	QWORD PTR 0[rbp], rbx
	mov	rdi, rbp
	mov	DWORD PTR 8[rbp], eax
	call	ieee802154_register_hw@PLT
	mov	ebx, eax
	test	eax, eax
	jne	.L6
	lea	rdi, hwsim_phys_lock[rip]
	call	mutex_lock@PLT
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L7
	mov	rdi, r12
	call	hwsim_subscribe_all_others@PLT
	mov	ebx, eax
	test	eax, eax
	js	.L15
.L7:
	lea	rsi, hwsim_phys[rip]
	lea	rdi, 16[r12]
	mov	ebx, r15d
	call	list_add_tail@PLT
	lea	rdi, hwsim_phys_lock[rip]
	call	mutex_unlock@PLT
	mov	rsi, r12
	mov	rdi, r14
	call	hwsim_mcast_new_radio@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	ebx, DWORD PTR ENOMEM[rip]
	neg	ebx
.L5:
	mov	rdi, QWORD PTR 8[r12]
	call	ieee802154_free_hw@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, ebx
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	ebx, DWORD PTR ENOMEM[rip]
	neg	ebx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, hwsim_phys_lock[rip]
	call	mutex_unlock@PLT
	mov	rdi, QWORD PTR 8[r12]
	call	ieee802154_unregister_hw@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r13
	call	kfree@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	hwsim_add_one, .-hwsim_add_one
	.comm	hwsim_radio_idx,4,4
	.comm	hwsim_phys_lock,4,4
	.comm	hwsim_phys,4,4
	.comm	hwsim_ops,4,4
	.comm	IEEE802154_HW_PROMISCUOUS,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_mac802154_hwsim.c_hwsim_add_one.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hwsim_add_one, %function
hwsim_add_one:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, [r3]
	mov	r6, r0
	add	r0, r7, #1
	str	r0, [r3]
	mov	r9, r1
	mov	r0, #20
	ldr	r1, .L16+4
	mov	r8, r2
	bl	ieee802154_alloc_hw
	subs	r4, r0, #0
	beq	.L13
	ldr	r0, [r4, #8]
	ldr	r5, [r4, #12]
	ldr	r3, [r0, #8]
	ldr	r10, .L16+8
	ldr	lr, [r3]
	ldr	ip, [r3, #12]
	mvn	lr, lr, lsr #27
	ldr	r1, [r3, #16]
	mvn	ip, ip, lsr #14
	mvn	r1, r1, lsr #16
	ldr	r2, [r3, #24]
	mvn	lr, lr, lsl #27
	mvn	r2, r2, lsr #22
	mvn	ip, ip, lsl #14
	mvn	r1, r1, lsl #16
	mvn	r2, r2, lsl #22
	str	r4, [r5, #4]
	str	lr, [r3]
	ldr	lr, [r3, #4]
	str	ip, [r3, #12]
	orr	ip, lr, r10
	str	ip, [r3, #4]
	str	r1, [r3, #16]
	ldr	ip, [r3, #8]
	ldr	r1, [r3, #20]
	orr	ip, ip, r10
	orr	r1, r1, #255
	str	ip, [r3, #8]
	str	r1, [r3, #20]
	str	r2, [r3, #24]
	add	r0, r0, #4
	bl	ieee802154_random_extended_addr
	mov	r1, #13
	ldr	r2, [r4, #8]
	ldr	r3, .L16+12
	str	r1, [r2]
	mov	r0, #4
	ldr	r1, [r3]
	bl	kzalloc
	subs	r10, r0, #0
	beq	.L14
	mov	r1, r10
	ldr	r0, [r5, #16]
	bl	rcu_assign_pointer
	mov	r0, r5
	str	r7, [r0], #12
	bl	INIT_LIST_HEAD
	ldr	r3, .L16+16
	mov	r0, r4
	ldr	r3, [r3]
	str	r9, [r4]
	str	r3, [r4, #4]
	bl	ieee802154_register_hw
	subs	r4, r0, #0
	bne	.L6
	ldr	r0, .L16+20
	bl	mutex_lock
	cmp	r8, #0
	beq	.L7
	mov	r0, r5
	bl	hwsim_subscribe_all_others
	subs	r4, r0, #0
	blt	.L15
.L7:
	mov	r4, r7
	ldr	r1, .L16+24
	add	r0, r5, #8
	bl	list_add_tail
	ldr	r0, .L16+20
	bl	mutex_unlock
	mov	r1, r5
	mov	r0, r6
	bl	hwsim_mcast_new_radio
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	ldr	r3, .L16+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L5:
	ldr	r0, [r5, #4]
	bl	ieee802154_free_hw
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	ldr	r3, .L16+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	ldr	r0, .L16+20
	bl	mutex_unlock
	ldr	r0, [r5, #4]
	bl	ieee802154_unregister_hw
.L6:
	mov	r0, r10
	bl	kfree
	b	.L5
.L17:
	.align	2
.L16:
	.word	hwsim_radio_idx
	.word	hwsim_ops
	.word	2047
	.word	GFP_KERNEL
	.word	IEEE802154_HW_PROMISCUOUS
	.word	hwsim_phys_lock
	.word	hwsim_phys
	.word	ENOMEM
	.size	hwsim_add_one, .-hwsim_add_one
	.comm	hwsim_radio_idx,4,4
	.comm	hwsim_phys_lock,4,4
	.comm	hwsim_phys,4,4
	.comm	hwsim_ops,4,4
	.comm	IEEE802154_HW_PROMISCUOUS,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
