	.file	"extr_module.c_gb_module_register_interface.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to activate interface %u: %d\n"
	.align 8
.LC1:
	.string	"failed to enable interface %u: %d\n"
	.text
	.p2align 4
	.type	gb_module_register_interface, @function
gb_module_register_interface:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	lea	r12, 8[rdi]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR 16[rdi]
	mov	r14d, DWORD PTR 12[rdi]
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	rdi, rbp
	call	gb_interface_activate@PLT
	test	eax, eax
	je	.L2
	mov	rdx, QWORD PTR GB_INTERFACE_TYPE_DUMMY[rip]
	cmp	QWORD PTR 0[rbp], rdx
	jne	.L9
.L3:
	mov	rdi, rbp
	call	gb_interface_add@PLT
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	ecx, eax
	mov	edx, r14d
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	dev_err@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbp
	call	gb_interface_add@PLT
	test	eax, eax
	jne	.L5
	mov	rdi, rbp
	call	gb_interface_enable@PLT
	test	eax, eax
	je	.L4
	mov	ecx, eax
	mov	edx, r14d
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	dev_err@PLT
.L5:
	mov	rdi, rbp
	call	gb_interface_deactivate@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	gb_module_register_interface, .-gb_module_register_interface
	.comm	GB_INTERFACE_TYPE_DUMMY,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_module.c_gb_module_register_interface.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to activate interface %u: %d\012\000"
	.align	2
.LC1:
	.ascii	"failed to enable interface %u: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gb_module_register_interface, %function
gb_module_register_interface:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	add	r5, r0, #4
	mov	r0, r5
	ldr	r6, [r4, #12]
	ldr	r7, [r4, #8]
	bl	mutex_lock
	mov	r0, r4
	bl	gb_interface_activate
	subs	r3, r0, #0
	beq	.L2
	ldr	r2, .L10
	ldr	r1, [r4]
	ldr	r2, [r2]
	cmp	r1, r2
	bne	.L9
.L3:
	mov	r0, r4
	bl	gb_interface_add
.L4:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	mutex_unlock
.L9:
	mov	r2, r7
	mov	r0, r6
	ldr	r1, .L10+4
	bl	dev_err
	b	.L3
.L2:
	mov	r0, r4
	bl	gb_interface_add
	cmp	r0, #0
	bne	.L5
	mov	r0, r4
	bl	gb_interface_enable
	subs	r3, r0, #0
	beq	.L4
	mov	r2, r7
	mov	r0, r6
	ldr	r1, .L10+8
	bl	dev_err
.L5:
	mov	r0, r4
	bl	gb_interface_deactivate
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	mutex_unlock
.L11:
	.align	2
.L10:
	.word	GB_INTERFACE_TYPE_DUMMY
	.word	.LC0
	.word	.LC1
	.size	gb_module_register_interface, .-gb_module_register_interface
	.comm	GB_INTERFACE_TYPE_DUMMY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
