	.file	"extr_x86_energy_perf_policy.c_get_pkg_num.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"/sys/devices/system/cpu/cpu%d/topology/physical_package_id"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"r"
.LC2:
	.string	"%d\n"
.LC3:
	.string	"%s: failed to parse"
	.text
	.p2align 4
	.globl	get_pkg_num
	.type	get_pkg_num, @function
get_pkg_num:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, edi
	lea	rsi, .LC0[rip]
	sub	rsp, 160
	.cfi_def_cfa_offset 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	lea	r12, 16[rsp]
	mov	rdi, r12
	call	sprintf@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	call	fopen_or_die@PLT
	lea	rdx, 12[rsp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fscanf@PLT
	cmp	eax, 1
	je	.L2
	mov	rdx, r12
	lea	rsi, .LC3[rip]
	mov	edi, 1
	call	errx@PLT
.L2:
	mov	rcx, QWORD PTR 152[rsp]
	xor	rcx, QWORD PTR fs:40
	mov	eax, DWORD PTR 12[rsp]
	jne	.L9
	add	rsp, 160
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_pkg_num, .-get_pkg_num
	.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_x86_energy_perf_policy.c_get_pkg_num.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/sys/devices/system/cpu/cpu%d/topology/physical_pac"
	.ascii	"kage_id\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.ascii	"%s: failed to parse\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_pkg_num
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_pkg_num, %function
get_pkg_num:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	ldr	r3, .L10
	sub	sp, sp, #140
	mov	r2, r0
	ldr	r1, .L10+4
	add	r0, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #132]
	mov	r3,#0
	bl	sprintf
	ldr	r1, .L10+8
	add	r0, sp, #4
	bl	fopen_or_die
	mov	r2, sp
	ldr	r1, .L10+12
	bl	fscanf
	cmp	r0, #1
	beq	.L2
	mov	r0, #1
	ldr	r1, .L10+16
	add	r2, sp, #4
	bl	errx
.L2:
	ldr	r3, .L10
	ldr	r0, [sp]
	ldr	r2, [r3]
	ldr	r3, [sp, #132]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #140
	@ sp needed
	ldr	pc, [sp], #4
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	get_pkg_num, .-get_pkg_num
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
