	.file	"extr_acpiphp_core.c_acpiphp_register_hotplug_slot.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%u"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"pci_hp_register failed with error %d\n"
	.section	.rodata.str1.1
.LC2:
	.string	"Slot [%s] registered\n"
	.text
	.p2align 4
	.globl	acpiphp_register_hotplug_slot
	.type	acpiphp_register_hotplug_slot, @function
acpiphp_register_hotplug_slot:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	movsx	rdx, DWORD PTR SLOT_NAME_SIZE[rip]
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rcx, rsp
	add	rdx, 15
	mov	rax, rdx
	and	rdx, -4096
	sub	rcx, rdx
	and	rax, -16
	mov	rdx, rcx
	cmp	rsp, rdx
	je	.L3
.L15:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rdx
	jne	.L15
.L3:
	and	eax, 4095
	sub	rsp, rax
	test	rax, rax
	jne	.L16
.L4:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 24
	neg	r12d
	call	kzalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L1
	mov	QWORD PTR 16[r13], rbx
	mov	esi, DWORD PTR SLOT_NAME_SIZE[rip]
	mov	ecx, r14d
	mov	rdi, rsp
	lea	rax, acpi_hotplug_slot_ops[rip]
	lea	rdx, .LC0[rip]
	mov	QWORD PTR 8[r13], rax
	mov	QWORD PTR 8[rbx], r13
	mov	DWORD PTR 0[r13], r14d
	call	snprintf@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	lea	rdi, 8[r13]
	mov	rcx, rsp
	call	pci_hp_register@PLT
	mov	r12d, eax
	add	eax, DWORD PTR EBUSY[rip]
	je	.L7
	test	r12d, r12d
	jne	.L17
	mov	rdi, r13
	call	slot_name@PLT
	lea	rdi, .LC2[rip]
	mov	esi, eax
	call	pr_info@PLT
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	lea	rsp, -32[rbp]
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	esi, r12d
	lea	rdi, .LC1[rip]
	call	pr_err@PLT
.L7:
	mov	rdi, r13
	call	kfree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	or	QWORD PTR -8[rsp+rax], 0
	jmp	.L4
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	acpiphp_register_hotplug_slot, .-acpiphp_register_hotplug_slot
	.comm	acpi_hotplug_slot_ops,4,4
	.comm	SLOT_NAME_SIZE,4,4
	.comm	GFP_KERNEL,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_acpiphp_core.c_acpiphp_register_hotplug_slot.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%u\000"
	.align	2
.LC1:
	.ascii	"pci_hp_register failed with error %d\012\000"
	.align	2
.LC2:
	.ascii	"Slot [%s] registered\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	acpiphp_register_hotplug_slot
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpiphp_register_hotplug_slot, %function
acpiphp_register_hotplug_slot:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #12
	ldr	r8, .L11
	ldr	r3, .L11+4
	ldr	r2, [r8]
	ldr	ip, .L11+8
	add	r2, r2, #7
	bic	r2, r2, #7
	mov	r7, r1
	ldr	r1, [r3]
	ldr	r3, .L11+12
	mov	r6, r0
	sub	sp, sp, r2
	mov	r0, #12
	ldr	r5, [ip]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	bl	kzalloc
	subs	r4, r0, #0
	rsbeq	r5, r5, #0
	beq	.L1
	mov	r5, r4
	ldr	r3, .L11+16
	ldr	r1, [r8]
	str	r3, [r4, #4]
	str	r6, [r4, #8]
	mov	r3, r7
	ldr	r2, .L11+20
	str	r4, [r6, #8]
	mov	r0, sp
	str	r7, [r5], #4
	bl	snprintf
	mov	r3, sp
	mov	r0, r5
	ldr	r2, [r6]
	ldr	r1, [r6, #4]
	bl	pci_hp_register
	ldr	r3, .L11+24
	mov	r5, r0
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L4
	cmp	r0, #0
	bne	.L9
	mov	r0, r4
	bl	slot_name
	mov	r1, r0
	ldr	r0, .L11+28
	bl	pr_info
.L1:
	ldr	r3, .L11+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r5
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L9:
	mov	r1, r0
	ldr	r0, .L11+32
	bl	pr_err
.L4:
	mov	r0, r4
	bl	kfree
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	SLOT_NAME_SIZE
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	.LC3
	.word	acpi_hotplug_slot_ops
	.word	.LC0
	.word	EBUSY
	.word	.LC2
	.word	.LC1
	.size	acpiphp_register_hotplug_slot, .-acpiphp_register_hotplug_slot
	.comm	acpi_hotplug_slot_ops,4,4
	.comm	SLOT_NAME_SIZE,4,4
	.comm	GFP_KERNEL,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
