	.file	"extr_intel_menlow.c_intel_menlow_memory_add.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Memory controller"
.LC1:
	.string	"thermal_cooling"
.LC2:
	.string	"device"
	.text
	.p2align 4
	.type	intel_menlow_memory_add, @function
intel_menlow_memory_add:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	r12d, DWORD PTR ENODEV[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	neg	r12d
	test	rdi, rdi
	je	.L12
	mov	esi, DWORD PTR MEMORY_GET_BANDWIDTH[rip]
	mov	rbp, rdi
	lea	r13, 4[rsp]
	mov	edi, DWORD PTR 16[rdi]
	mov	rdx, r13
	call	acpi_get_handle@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	je	.L13
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR MEMORY_SET_BANDWIDTH[rip]
	mov	rdx, r13
	call	acpi_get_handle@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L1
	lea	rdi, .LC0[rip]
	lea	rdx, memory_cooling_ops[rip]
	mov	rsi, rbp
	call	thermal_cooling_device_register@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L15
	mov	QWORD PTR 8[rbp], r13
	lea	rdx, .LC1[rip]
	mov	rsi, r13
	mov	rdi, rbp
	call	sysfs_create_link@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	lea	rdx, .LC2[rip]
	mov	rsi, rbp
	mov	rdi, r13
	call	sysfs_create_link@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	sysfs_remove_link@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r13
	call	thermal_cooling_device_unregister@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, r13
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	intel_menlow_memory_add, .-intel_menlow_memory_add
	.comm	memory_cooling_ops,4,4
	.comm	MEMORY_SET_BANDWIDTH,4,4
	.comm	MEMORY_GET_BANDWIDTH,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	AE_OK,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_intel_menlow.c_intel_menlow_memory_add.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Memory controller\000"
	.align	2
.LC1:
	.ascii	"thermal_cooling\000"
	.align	2
.LC2:
	.ascii	"device\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_menlow_memory_add, %function
intel_menlow_memory_add:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L16
	sub	sp, sp, #8
	ldr	r4, [r3]
	ldr	r3, .L16+4
	subs	r5, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L12
	ldr	r3, .L16+8
	mov	r2, sp
	ldr	r1, [r3]
	ldr	r0, [r5, #8]
	bl	acpi_get_handle
	bl	ACPI_FAILURE
	cmp	r0, #0
	rsb	r4, r4, #0
	beq	.L13
.L1:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, .L16+12
	mov	r2, sp
	ldr	r1, [r3]
	ldr	r0, [r5, #8]
	bl	acpi_get_handle
	bl	ACPI_FAILURE
	cmp	r0, #0
	bne	.L1
	mov	r1, r5
	ldr	r2, .L16+16
	ldr	r0, .L16+20
	bl	thermal_cooling_device_register
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L15
	mov	r1, r6
	mov	r0, r5
	ldr	r2, .L16+24
	str	r6, [r5, #4]
	bl	sysfs_create_link
	subs	r4, r0, #0
	bne	.L5
	mov	r1, r5
	mov	r0, r6
	ldr	r2, .L16+28
	bl	sysfs_create_link
	subs	r4, r0, #0
	beq	.L1
	mov	r0, r5
	ldr	r1, .L16+24
	bl	sysfs_remove_link
.L5:
	mov	r0, r6
	bl	thermal_cooling_device_unregister
	b	.L1
.L12:
	ldr	r3, .L16+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L15:
	mov	r0, r6
	bl	PTR_ERR
	mov	r4, r0
	b	.L1
.L14:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	ENODEV
	.word	.LC3
	.word	MEMORY_GET_BANDWIDTH
	.word	MEMORY_SET_BANDWIDTH
	.word	memory_cooling_ops
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	EINVAL
	.size	intel_menlow_memory_add, .-intel_menlow_memory_add
	.comm	memory_cooling_ops,4,4
	.comm	MEMORY_SET_BANDWIDTH,4,4
	.comm	MEMORY_GET_BANDWIDTH,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	AE_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
