	.file	"extr_menu_driver.c_menu_driver_init_internal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	menu_driver_init_internal, @function
menu_driver_init_internal:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	rax, QWORD PTR menu_driver_ctx[rip]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L2
	mov	esi, edi
	lea	rdi, menu_userdata[rip]
	call	rax
	mov	rdi, rax
	mov	QWORD PTR menu_driver_data[rip], rax
	mov	eax, DWORD PTR menu_userdata[rip]
	mov	DWORD PTR 8[rdi], eax
	mov	rax, QWORD PTR menu_driver_ctx[rip]
	mov	QWORD PTR [rdi], rax
.L3:
	call	menu_init@PLT
	test	eax, eax
	jne	.L13
.L5:
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xor	eax, eax
	call	config_get_ptr@PLT
	mov	rdx, QWORD PTR menu_driver_ctx[rip]
	mov	edi, DWORD PTR [rax]
	mov	esi, DWORD PTR 8[rdx]
	mov	edx, 4
	call	strlcpy@PLT
	mov	rax, QWORD PTR menu_driver_ctx[rip]
	mov	rdx, QWORD PTR [rax]
	mov	eax, 1
	test	rdx, rdx
	je	.L1
	mov	rdi, QWORD PTR menu_driver_data[rip]
	call	rdx
	test	eax, eax
	setne	al
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	movzx	eax, al
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR menu_driver_data[rip]
	test	rdi, rdi
	je	.L5
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	menu_driver_init_internal, .-menu_driver_init_internal
	.comm	menu_userdata,4,4
	.comm	menu_driver_data,8,8
	.comm	menu_driver_ctx,8,8
	.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_menu_driver.c_menu_driver_init_internal.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	menu_driver_init_internal, %function
menu_driver_init_internal:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L13
	ldr	r3, [r4]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L2
	ldr	r5, .L13+4
	mov	r1, r0
	mov	r0, r5
	blx	r3
	ldr	r2, [r5]
	ldr	r3, [r4]
	ldr	r5, .L13+8
	str	r2, [r0, #4]
	str	r0, [r5]
	str	r3, [r0]
.L3:
	bl	menu_init
	cmp	r0, #0
	bne	.L12
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	bl	config_get_ptr
	ldr	r3, [r4]
	mov	r2, #4
	ldr	r1, [r3, #4]
	ldr	r0, [r0]
	bl	strlcpy
	ldr	r3, [r4]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L6
	ldr	r0, [r5]
	blx	r3
	subs	r0, r0, #0
	movne	r0, #1
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r5, .L13+8
	ldr	r0, [r5]
	cmp	r0, #0
	bne	.L3
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	menu_driver_ctx
	.word	menu_userdata
	.word	menu_driver_data
	.size	menu_driver_init_internal, .-menu_driver_init_internal
	.comm	menu_userdata,4,4
	.comm	menu_driver_data,4,4
	.comm	menu_driver_ctx,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
