	.file	"extr_counter.c_counter_global_attr_register.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"num_counts"
.LC1:
	.string	"num_signals"
	.text
	.p2align 4
	.type	counter_global_attr_register, @function
counter_global_attr_register:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	esi, DWORD PTR 8[rsi]
	mov	rbp, rdi
	call	counter_name_attribute_create@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L9
.L1:
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR 4[r13]
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	call	counter_size_attribute_create@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	mov	esi, DWORD PTR 0[r13]
	lea	rdx, .LC1[rip]
	mov	rdi, rbp
	call	counter_size_attribute_create@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L10
.L3:
	mov	rdi, rbp
	call	counter_device_attr_list_free@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rsi, r13
	mov	rdi, rbp
	call	counter_device_ext_register@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	counter_global_attr_register, .-counter_global_attr_register
	.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_counter.c_counter_global_attr_register.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"num_counts\000"
	.align	2
.LC1:
	.ascii	"num_signals\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	counter_global_attr_register, %function
counter_global_attr_register:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r1, [r1, #8]
	mov	r6, r0
	bl	counter_name_attribute_create
	subs	r4, r0, #0
	beq	.L9
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	mov	r0, r6
	ldr	r2, .L11
	ldr	r1, [r5, #4]
	bl	counter_size_attribute_create
	subs	r4, r0, #0
	bne	.L3
	mov	r0, r6
	ldr	r2, .L11+4
	ldr	r1, [r5]
	bl	counter_size_attribute_create
	subs	r4, r0, #0
	beq	.L10
.L3:
	mov	r0, r6
	bl	counter_device_attr_list_free
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	mov	r1, r5
	mov	r0, r6
	bl	counter_device_ext_register
	subs	r4, r0, #0
	beq	.L1
	b	.L3
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	.LC1
	.size	counter_global_attr_register, .-counter_global_attr_register
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
