	.file	"extr_chcr_core.c_chcr_dev_add.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	chcr_dev_add, @function
chcr_dev_add:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR CHCR_ATTACH[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xor	esi, esi
	mov	rbx, rdi
	add	rdi, 4
	mov	DWORD PTR 4[rdi], eax
	call	atomic_set@PLT
	lea	rdi, drv_data[rip]
	call	mutex_lock@PLT
	lea	rsi, drv_data[rip+16]
	mov	rdi, rbx
	call	list_move@PLT
	cmp	QWORD PTR drv_data[rip+8], 0
	je	.L5
	lea	rdi, drv_data[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	QWORD PTR drv_data[rip+8], rbx
	lea	rdi, drv_data[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	chcr_dev_add, .-chcr_dev_add
	.comm	drv_data,24,16
	.comm	CHCR_ATTACH,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_chcr_core.c_chcr_dev_add.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	chcr_dev_add, %function
chcr_dev_add:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L5
	ldr	r5, .L5+4
	ldr	r3, [r3]
	mov	r1, #0
	str	r3, [r4, #8]
	add	r0, r0, #4
	bl	atomic_set
	mov	r0, r5
	bl	mutex_lock
	mov	r0, r4
	add	r1, r5, #8
	bl	list_move
	ldr	r3, [r5, #4]
	ldr	r0, .L5+4
	cmp	r3, #0
	streq	r4, [r5, #4]
	pop	{r4, r5, r6, lr}
	b	mutex_unlock
.L6:
	.align	2
.L5:
	.word	CHCR_ATTACH
	.word	drv_data
	.size	chcr_dev_add, .-chcr_dev_add
	.comm	drv_data,12,4
	.comm	CHCR_ATTACH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
