	.file	"extr_qemu_fw_cfg.c_fw_cfg_sysfs_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"by_key"
.LC1:
	.string	"by_name"
.LC2:
	.string	"fw_cfg: loaded.\n"
	.text
	.p2align 4
	.type	fw_cfg_sysfs_probe, @function
fw_cfg_sysfs_probe:
.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
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR fw_cfg_sel_ko[rip], 0
	je	.L2
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 24
	.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
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR fw_cfg_top_ko[rip]
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	call	kobject_create_and_add@PLT
	neg	r12d
	mov	QWORD PTR fw_cfg_sel_ko[rip], rax
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR fw_cfg_top_ko[rip]
	xor	esi, esi
	lea	rdi, .LC1[rip]
	call	kset_create_and_add@PLT
	mov	DWORD PTR fw_cfg_fname_kset[rip], eax
	test	eax, eax
	jne	.L18
.L4:
	endbr64
	mov	rdi, QWORD PTR fw_cfg_sel_ko[rip]
	call	fw_cfg_kobj_cleanup@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, rbp
	call	fw_cfg_do_platform_probe@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	edi, DWORD PTR FW_CFG_ID[rip]
	lea	rsi, 4[rsp]
	mov	ecx, 4
	xor	edx, edx
	call	fw_cfg_read_blob@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L5
	mov	edi, DWORD PTR 4[rsp]
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR fw_cfg_top_ko[rip]
	lea	rsi, fw_cfg_rev_attr[rip]
	mov	DWORD PTR fw_cfg_rev[rip], eax
	call	sysfs_create_file@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	xor	eax, eax
	call	fw_cfg_register_dir_entries@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L19
	lea	rdi, .LC2[rip]
	call	pr_debug@PLT
	jmp	.L1
.L19:
	xor	eax, eax
	call	fw_cfg_sysfs_cache_cleanup@PLT
	mov	edi, DWORD PTR fw_cfg_top_ko[rip]
	lea	rsi, fw_cfg_rev_attr[rip]
	call	sysfs_remove_file@PLT
.L6:
	xor	eax, eax
	call	fw_cfg_io_cleanup@PLT
.L5:
	mov	edi, DWORD PTR fw_cfg_fname_kset[rip]
	call	fw_cfg_kset_unregister_recursive@PLT
	mov	rdi, QWORD PTR fw_cfg_sel_ko[rip]
	call	fw_cfg_kobj_cleanup@PLT
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fw_cfg_sysfs_probe, .-fw_cfg_sysfs_probe
	.comm	fw_cfg_top_ko,4,4
	.comm	fw_cfg_sel_ko,8,8
	.comm	fw_cfg_rev_attr,4,4
	.comm	fw_cfg_rev,4,4
	.comm	fw_cfg_fname_kset,4,4
	.comm	FW_CFG_ID,4,4
	.comm	ENOMEM,4,4
	.comm	EBUSY,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_qemu_fw_cfg.c_fw_cfg_sysfs_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"by_key\000"
	.align	2
.LC1:
	.ascii	"by_name\000"
	.align	2
.LC2:
	.ascii	"fw_cfg: loaded.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fw_cfg_sysfs_probe, %function
fw_cfg_sysfs_probe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L20
	ldr	r3, .L20+4
	ldr	r5, [r7]
	sub	sp, sp, #8
	cmp	r5, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L2
	ldr	r3, .L20+8
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	ldr	r3, .L20+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r8, .L20+12
	ldr	r3, .L20+16
	mov	r6, r0
	ldr	r1, [r8]
	ldr	r0, .L20+20
	ldr	r4, [r3]
	bl	kobject_create_and_add
	cmp	r0, #0
	rsb	r4, r4, #0
	str	r0, [r7]
	beq	.L1
	mov	r1, r5
	ldr	r2, [r8]
	ldr	r0, .L20+24
	bl	kset_create_and_add
	ldr	r5, .L20+28
	cmp	r0, #0
	str	r0, [r5]
	bne	.L18
.L4:
	ldr	r0, [r7]
	bl	fw_cfg_kobj_cleanup
	b	.L1
.L18:
	mov	r0, r6
	bl	fw_cfg_do_platform_probe
	subs	r4, r0, #0
	bne	.L5
	ldr	r3, .L20+32
	mov	r2, r4
	ldr	r0, [r3]
	mov	r1, sp
	mov	r3, #4
	bl	fw_cfg_read_blob
	subs	r4, r0, #0
	blt	.L5
	ldr	r0, [sp]
	bl	le32_to_cpu
	ldr	r3, .L20+36
	ldr	r1, .L20+40
	str	r0, [r3]
	ldr	r0, [r8]
	bl	sysfs_create_file
	subs	r4, r0, #0
	bne	.L6
	bl	fw_cfg_register_dir_entries
	subs	r4, r0, #0
	bne	.L19
	ldr	r0, .L20+44
	bl	pr_debug
	b	.L1
.L19:
	bl	fw_cfg_sysfs_cache_cleanup
	ldr	r0, [r8]
	ldr	r1, .L20+40
	bl	sysfs_remove_file
.L6:
	bl	fw_cfg_io_cleanup
.L5:
	ldr	r0, [r5]
	bl	fw_cfg_kset_unregister_recursive
	ldr	r0, [r7]
	bl	fw_cfg_kobj_cleanup
	b	.L1
.L17:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	fw_cfg_sel_ko
	.word	.LC3
	.word	EBUSY
	.word	fw_cfg_top_ko
	.word	ENOMEM
	.word	.LC0
	.word	.LC1
	.word	fw_cfg_fname_kset
	.word	FW_CFG_ID
	.word	fw_cfg_rev
	.word	fw_cfg_rev_attr
	.word	.LC2
	.size	fw_cfg_sysfs_probe, .-fw_cfg_sysfs_probe
	.comm	fw_cfg_top_ko,4,4
	.comm	fw_cfg_sel_ko,4,4
	.comm	fw_cfg_rev_attr,4,4
	.comm	fw_cfg_rev,4,4
	.comm	fw_cfg_fname_kset,4,4
	.comm	FW_CFG_ID,4,4
	.comm	ENOMEM,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
