	.file	"extr_power_meter.c_setup_attrs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	setup_attrs, @function
setup_attrs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	read_domain_devices@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR POWER_METER_CAN_MEASURE[rip], eax
	jne	.L23
.L3:
	test	DWORD PTR POWER_METER_CAN_CAP[rip], eax
	je	.L5
	cmp	QWORD PTR 8[rbp], 0
	jne	.L24
	mov	esi, DWORD PTR ro_cap_attrs[rip]
	mov	rdi, rbp
	call	register_ro_attrs@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
.L8:
	mov	esi, DWORD PTR misc_cap_attrs[rip]
	mov	rdi, rbp
	call	register_ro_attrs@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR 0[rbp]
.L5:
	test	DWORD PTR POWER_METER_CAN_TRIP[rip], eax
	je	.L10
	mov	esi, DWORD PTR trip_attrs[rip]
	mov	rdi, rbp
	call	register_rw_attrs@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
.L10:
	mov	esi, DWORD PTR misc_attrs[rip]
	mov	rdi, rbp
	call	register_ro_attrs@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	esi, DWORD PTR meter_ro_attrs[rip]
	mov	rdi, rbp
	call	register_ro_attrs@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L25
.L4:
	mov	rdi, rbp
	call	remove_domain_devices@PLT
	mov	rdi, rbp
	call	remove_attrs@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	esi, DWORD PTR rw_cap_attrs[rip]
	mov	rdi, rbp
	call	register_rw_attrs@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L8
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	mov	esi, DWORD PTR meter_rw_attrs[rip]
	mov	rdi, rbp
	call	register_rw_attrs@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR 0[rbp]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	setup_attrs, .-setup_attrs
	.comm	trip_attrs,4,4
	.comm	rw_cap_attrs,4,4
	.comm	ro_cap_attrs,4,4
	.comm	misc_cap_attrs,4,4
	.comm	misc_attrs,4,4
	.comm	meter_rw_attrs,4,4
	.comm	meter_ro_attrs,4,4
	.comm	POWER_METER_CAN_TRIP,4,4
	.comm	POWER_METER_CAN_MEASURE,4,4
	.comm	POWER_METER_CAN_CAP,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_power_meter.c_setup_attrs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_attrs, %function
setup_attrs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	read_domain_devices
	subs	r4, r0, #0
	bne	.L1
	ldr	r2, .L26
	ldr	r3, [r5]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L23
.L3:
	ldr	r2, .L26+4
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L5
	ldr	r3, [r5, #4]
	cmp	r3, #0
	bne	.L24
	ldr	r3, .L26+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	register_ro_attrs
	subs	r4, r0, #0
	bne	.L4
.L8:
	ldr	r3, .L26+12
	mov	r0, r5
	ldr	r1, [r3]
	bl	register_ro_attrs
	subs	r4, r0, #0
	ldreq	r3, [r5]
	bne	.L4
.L5:
	ldr	r2, .L26+16
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L10
	ldr	r3, .L26+20
	mov	r0, r5
	ldr	r1, [r3]
	bl	register_rw_attrs
	subs	r4, r0, #0
	bne	.L4
.L10:
	ldr	r3, .L26+24
	mov	r0, r5
	ldr	r1, [r3]
	bl	register_ro_attrs
	subs	r4, r0, #0
	bne	.L4
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L23:
	ldr	r3, .L26+28
	mov	r0, r5
	ldr	r1, [r3]
	bl	register_ro_attrs
	subs	r4, r0, #0
	beq	.L25
.L4:
	mov	r0, r5
	bl	remove_domain_devices
	mov	r0, r5
	bl	remove_attrs
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L24:
	ldr	r3, .L26+32
	mov	r0, r5
	ldr	r1, [r3]
	bl	register_rw_attrs
	subs	r4, r0, #0
	beq	.L8
	b	.L4
.L25:
	ldr	r3, .L26+36
	mov	r0, r5
	ldr	r1, [r3]
	bl	register_rw_attrs
	subs	r4, r0, #0
	bne	.L4
	ldr	r3, [r5]
	b	.L3
.L27:
	.align	2
.L26:
	.word	POWER_METER_CAN_MEASURE
	.word	POWER_METER_CAN_CAP
	.word	ro_cap_attrs
	.word	misc_cap_attrs
	.word	POWER_METER_CAN_TRIP
	.word	trip_attrs
	.word	misc_attrs
	.word	meter_ro_attrs
	.word	rw_cap_attrs
	.word	meter_rw_attrs
	.size	setup_attrs, .-setup_attrs
	.comm	trip_attrs,4,4
	.comm	rw_cap_attrs,4,4
	.comm	ro_cap_attrs,4,4
	.comm	misc_cap_attrs,4,4
	.comm	misc_attrs,4,4
	.comm	meter_rw_attrs,4,4
	.comm	meter_ro_attrs,4,4
	.comm	POWER_METER_CAN_TRIP,4,4
	.comm	POWER_METER_CAN_MEASURE,4,4
	.comm	POWER_METER_CAN_CAP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
