	.file	"extr_atkbdc_isa.c_atkbdc_isa_add_child.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"irq"
	.text
	.p2align 4
	.type	atkbdc_isa_add_child, @function
atkbdc_isa_add_child:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	device_get_softc@PLT
	mov	esi, DWORD PTR M_ATKBDDEV[rip]
	mov	edx, DWORD PTR M_NOWAIT[rip]
	mov	edi, 4
	mov	rax, QWORD PTR [rax]
	or	edx, DWORD PTR M_ZERO[rip]
	mov	QWORD PTR 8[rsp], rax
	call	malloc@PLT
	test	rax, rax
	je	.L12
	mov	rdi, r12
	mov	ecx, r14d
	mov	rdx, r13
	mov	rsi, rbx
	mov	rbp, rax
	call	device_add_child_ordered@PLT
	mov	r12, rax
	test	rax, rax
	je	.L18
	lea	r15, 8[rbp]
	mov	rdi, r15
	call	resource_list_init@PLT
	cmp	QWORD PTR KBDC_RID_KBD[rip], rbx
	mov	QWORD PTR 0[rbp], rbx
	je	.L19
.L5:
	mov	esi, r14d
	mov	rdi, r13
	call	resource_disabled@PLT
	test	rax, rax
	jne	.L20
.L10:
	mov	rsi, rbp
	mov	rdi, r12
	call	device_set_ivars@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L22
	call	rman_get_start@PLT
	mov	DWORD PTR 20[rsp], eax
	mov	ecx, eax
.L8:
	test	ecx, ecx
	jle	.L5
	mov	esi, DWORD PTR SYS_RES_IRQ[rip]
	mov	rdx, QWORD PTR 0[rbp]
	mov	rdi, r15
	mov	r8d, ecx
	mov	r9d, 1
	call	resource_list_add@PLT
	mov	esi, r14d
	mov	rdi, r13
	call	resource_disabled@PLT
	test	rax, rax
	je	.L10
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, r12
	call	device_disable@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rcx, 20[rsp]
	lea	rdx, .LC0[rip]
	mov	esi, r14d
	mov	rdi, r13
	call	resource_int_value@PLT
	test	rax, rax
	je	.L23
	mov	DWORD PTR 20[rsp], -1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	esi, DWORD PTR M_ATKBDDEV[rip]
	mov	rdi, rbp
	call	free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	ecx, DWORD PTR 20[rsp]
	jmp	.L8
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	atkbdc_isa_add_child, .-atkbdc_isa_add_child
	.comm	SYS_RES_IRQ,4,4
	.comm	M_ZERO,4,4
	.comm	M_NOWAIT,4,4
	.comm	M_ATKBDDEV,4,4
	.comm	KBDC_RID_KBD,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_atkbdc_isa.c_atkbdc_isa_add_child.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"irq\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atkbdc_isa_add_child, %function
atkbdc_isa_add_child:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r3
	ldr	r3, .L23
	sub	sp, sp, #16
	mov	r6, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r0
	bl	device_get_softc
	mov	r3, r0
	ldr	r1, .L23+4
	ldr	r2, .L23+8
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r9, .L23+12
	orr	r2, r1, r2
	mov	r0, #4
	ldr	r1, [r9]
	ldr	r10, [r3]
	bl	malloc
	subs	r4, r0, #0
	moveq	r5, r4
	beq	.L1
	mov	r0, r5
	mov	r3, r8
	mov	r2, r7
	mov	r1, r6
	bl	device_add_child_ordered
	subs	r5, r0, #0
	beq	.L18
	add	r9, r4, #4
	mov	r0, r9
	bl	resource_list_init
	ldr	r3, .L23+16
	str	r6, [r4]
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L19
.L5:
	mov	r1, r8
	mov	r0, r7
	bl	resource_disabled
	cmp	r0, #0
	bne	.L20
.L10:
	mov	r1, r4
	mov	r0, r5
	bl	device_set_ivars
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	ldr	r0, [r10]
	cmp	r0, #0
	beq	.L22
	bl	rman_get_start
	mov	r3, r0
	str	r0, [sp, #8]
.L8:
	cmp	r3, #0
	ble	.L5
	mov	ip, #1
	ldr	r2, [r4]
	stm	sp, {r3, ip}
	ldr	r1, .L23+20
	mov	r0, r9
	ldr	r1, [r1]
	bl	resource_list_add
	b	.L5
.L20:
	mov	r0, r5
	bl	device_disable
	b	.L10
.L22:
	add	r3, sp, #8
	mov	r1, r8
	mov	r0, r7
	ldr	r2, .L23+24
	bl	resource_int_value
	cmp	r0, #0
	mvnne	r3, #0
	strne	r3, [sp, #8]
	bne	.L5
	ldr	r3, [sp, #8]
	b	.L8
.L18:
	mov	r0, r4
	ldr	r1, [r9]
	bl	free
	b	.L1
.L21:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC1
	.word	M_NOWAIT
	.word	M_ZERO
	.word	M_ATKBDDEV
	.word	KBDC_RID_KBD
	.word	SYS_RES_IRQ
	.word	.LC0
	.size	atkbdc_isa_add_child, .-atkbdc_isa_add_child
	.comm	SYS_RES_IRQ,4,4
	.comm	M_ZERO,4,4
	.comm	M_NOWAIT,4,4
	.comm	M_ATKBDDEV,4,4
	.comm	KBDC_RID_KBD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
