	.file	"extr_core.c_device_add_attrs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	device_add_attrs, @function
device_add_attrs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR 16[rdi]
	mov	rbp, QWORD PTR 8[rdi]
	test	rbx, rbx
	je	.L6
	mov	esi, DWORD PTR [rbx]
	call	device_add_groups@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
.L6:
	test	rbp, rbp
	je	.L27
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r13
	call	device_add_groups@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L7
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, r13
	call	device_add_groups@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L11
.L12:
	mov	rdi, r13
	call	device_supports_offline@PLT
	test	rax, rax
	je	.L10
	mov	eax, DWORD PTR 4[r13]
	test	eax, eax
	jne	.L10
	lea	rsi, dev_attr_online[rip]
	mov	rdi, r13
	call	device_create_file@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L28
	.p2align 4,,10
	.p2align 3
.L10:
	xor	r12d, r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L28:
	.cfi_restore_state
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, r13
	call	device_remove_groups@PLT
	test	rbp, rbp
	je	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r13
	call	device_remove_groups@PLT
.L7:
	test	rbx, rbx
	je	.L1
.L29:
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r13
	call	device_remove_groups@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L27:
	.cfi_restore_state
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, r13
	call	device_add_groups@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L12
	test	rbx, rbx
	jne	.L29
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	device_add_attrs, .-device_add_attrs
	.comm	dev_attr_online,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_core.c_device_add_attrs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	device_add_attrs, %function
device_add_attrs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0, #12]
	mov	r7, r0
	cmp	r5, #0
	ldr	r6, [r0, #8]
	beq	.L6
	ldr	r1, [r5]
	bl	device_add_groups
	subs	r4, r0, #0
	bne	.L1
.L6:
	cmp	r6, #0
	beq	.L27
	mov	r0, r7
	ldr	r1, [r6]
	bl	device_add_groups
	subs	r4, r0, #0
	bne	.L7
	mov	r0, r7
	ldr	r1, [r7]
	bl	device_add_groups
	subs	r4, r0, #0
	bne	.L11
.L12:
	mov	r0, r7
	bl	device_supports_offline
	cmp	r0, #0
	beq	.L10
	ldr	r3, [r7, #4]
	cmp	r3, #0
	bne	.L10
	mov	r0, r7
	ldr	r1, .L30
	bl	device_create_file
	subs	r4, r0, #0
	bne	.L28
.L10:
	mov	r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L28:
	mov	r0, r7
	ldr	r1, [r7]
	bl	device_remove_groups
	cmp	r6, #0
	beq	.L7
.L11:
	mov	r0, r7
	ldr	r1, [r6]
	bl	device_remove_groups
.L7:
	cmp	r5, #0
	beq	.L1
.L29:
	mov	r0, r7
	ldr	r1, [r5]
	bl	device_remove_groups
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L27:
	mov	r0, r7
	ldr	r1, [r7]
	bl	device_add_groups
	subs	r4, r0, #0
	beq	.L12
	cmp	r5, #0
	bne	.L29
	b	.L1
.L31:
	.align	2
.L30:
	.word	dev_attr_online
	.size	device_add_attrs, .-device_add_attrs
	.comm	dev_attr_online,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
