	.file	"extr_kern_memorystatus.c_memorystatus_kill_elevated_process.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unknown"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"%lu.%03d memorystatus: killing_top_process_elevated%d pid %d [%s] (%s %d) - memorystatus_available_pages: %llu\n"
	.text
	.p2align 4
	.type	memorystatus_kill_elevated_process, @function
memorystatus_kill_elevated_process:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	r15, QWORD PTR FALSE[rip]
	mov	edi, DWORD PTR DBG_BSD_MEMSTAT[rip]
	mov	DWORD PTR 36[rsp], esi
	mov	esi, DWORD PTR BSD_MEMSTAT_JETSAM[rip]
	lea	rbx, 60[rsp]
	mov	DWORD PTR 60[rsp], edx
	mov	rbp, QWORD PTR memorystatus_available_pages[rip]
	mov	DWORD PTR 56[rsp], ecx
	mov	QWORD PTR 48[rsp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 24[rsp], r15
	call	BSDDBG_CODE@PLT
	or	eax, DWORD PTR DBG_FUNC_START[rip]
	xor	r9d, r9d
	xor	ecx, ecx
	mov	edi, eax
	xor	r8d, r8d
	xor	edx, edx
	mov	rsi, rbp
	call	KERNEL_DEBUG_CONSTANT@PLT
	xor	eax, eax
	call	proc_list_lock@PLT
	mov	rsi, QWORD PTR FALSE[rip]
	mov	rdi, rbx
	call	memorystatus_get_first_proc_locked@PLT
	test	rax, rax
	je	.L12
	mov	r14, rax
	lea	rax, 0[0+r13*4]
	mov	QWORD PTR 16[rsp], r15
	mov	QWORD PTR 40[rsp], rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L25:
	mov	ecx, DWORD PTR P_MEMSTAT_TERMINATED[rip]
	mov	esi, DWORD PTR P_MEMSTAT_ERROR[rip]
	or	esi, ecx
	test	esi, edx
	jne	.L14
	mov	rax, QWORD PTR [r14]
	cmp	QWORD PTR memorystatus_jetsam_snapshot_count[rip], 0
	mov	QWORD PTR 8[rsp], rax
	je	.L23
.L4:
	or	edx, ecx
	xor	eax, eax
	mov	DWORD PTR 8[r14], edx
	call	mach_absolute_time@PLT
	lea	rdx, 76[rsp]
	lea	rsi, 80[rsp]
	mov	r15d, eax
	mov	edi, eax
	call	absolutetime_to_microtime@PLT
	mov	rdi, r14
	mov	edx, r15d
	mov	rsi, r13
	mov	ebp, DWORD PTR 76[rsp]
	call	memorystatus_update_jetsam_snapshot_entry_locked@PLT
	mov	rdi, r14
	call	proc_ref_locked@PLT
	cmp	r14, rax
	je	.L24
.L5:
	mov	rsi, QWORD PTR FALSE[rip]
	mov	rdi, rbx
	call	memorystatus_get_first_proc_locked@PLT
	mov	r14, rax
	test	r14, r14
	je	.L2
.L9:
	mov	rdx, QWORD PTR FALSE[rip]
	mov	rsi, r14
	mov	rdi, rbx
	call	memorystatus_get_next_proc_locked@PLT
	mov	r12d, DWORD PTR 24[r14]
	mov	edx, DWORD PTR 8[r14]
	test	DWORD PTR P_MEMSTAT_USE_ELEVATED_INACTIVE_BAND[rip], edx
	jne	.L25
.L14:
	mov	r14, rax
	test	r14, r14
	jne	.L9
.L2:
	xor	eax, eax
	call	proc_list_unlock@PLT
	mov	edi, DWORD PTR 36[rsp]
	call	os_reason_free@PLT
	cmp	QWORD PTR 24[rsp], 0
	je	.L10
	xor	eax, eax
	call	proc_list_lock@PLT
	mov	rax, QWORD PTR memorystatus_jetsam_snapshot[rip]
	mov	QWORD PTR memorystatus_jetsam_snapshot_count[rip], 0
	mov	QWORD PTR [rax], 0
	xor	eax, eax
	call	proc_list_unlock@PLT
.L10:
	xor	r13d, r13d
	cmp	QWORD PTR 16[rsp], 0
	cmove	r12d, r13d
.L8:
	mov	esi, DWORD PTR BSD_MEMSTAT_JETSAM[rip]
	mov	edi, DWORD PTR DBG_BSD_MEMSTAT[rip]
	mov	rbp, QWORD PTR memorystatus_available_pages[rip]
	call	BSDDBG_CODE@PLT
	xor	r9d, r9d
	xor	r8d, r8d
	mov	ecx, r13d
	or	eax, DWORD PTR DBG_FUNC_END[rip]
	mov	edx, r12d
	mov	rsi, rbp
	mov	edi, eax
	call	KERNEL_DEBUG_CONSTANT@PLT
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	mov	rax, QWORD PTR 16[rsp]
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L23:
	.cfi_restore_state
	xor	esi, esi
	xor	edi, edi
	call	memorystatus_init_jetsam_snapshot_locked@PLT
	mov	rax, QWORD PTR TRUE[rip]
	mov	edx, DWORD PTR 8[r14]
	mov	ecx, DWORD PTR P_MEMSTAT_TERMINATED[rip]
	mov	QWORD PTR 24[rsp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L24:
	xor	eax, eax
	call	proc_list_unlock@PLT
	mov	rcx, QWORD PTR 40[rsp]
	mov	r9d, r12d
	mov	rax, QWORD PTR memorystatus_kill_cause_name[rip]
	mov	rsi, QWORD PTR memorystatus_available_pages[rip]
	mov	edi, DWORD PTR OS_LOG_DEFAULT[rip]
	mov	edx, DWORD PTR [rax+rcx]
	mov	rax, QWORD PTR 16[r14]
	lea	rcx, .LC0[rip]
	cmp	BYTE PTR [rax], 0
	push	rsi
	.cfi_def_cfa_offset 168
	lea	rsi, .LC1[rip]
	cmove	rax, rcx
	movsx	rcx, ebp
	push	QWORD PTR 16[rsp]
	.cfi_def_cfa_offset 176
	sar	ebp, 31
	imul	rcx, rcx, 274877907
	push	rdx
	.cfi_def_cfa_offset 184
	push	rax
	.cfi_def_cfa_offset 192
	mov	r8d, DWORD PTR 88[rsp]
	mov	rdx, QWORD PTR 112[rsp]
	sar	rcx, 38
	sub	ecx, ebp
	movsx	rcx, ecx
	call	os_log_with_startup_serial@PLT
	mov	r15d, DWORD PTR 68[rsp]
	add	rsp, 32
	.cfi_def_cfa_offset 160
	mov	edi, r15d
	call	os_reason_ref@PLT
	mov	edx, r15d
	mov	rsi, r13
	mov	rdi, r14
	call	memorystatus_do_kill@PLT
	mov	QWORD PTR 16[rsp], rax
	test	rax, rax
	jne	.L27
	xor	eax, eax
	call	proc_list_lock@PLT
	mov	rdi, r14
	call	proc_rele_locked@PLT
	mov	eax, DWORD PTR P_MEMSTAT_TERMINATED[rip]
	not	eax
	and	eax, DWORD PTR 8[r14]
	or	eax, DWORD PTR P_MEMSTAT_ERROR[rip]
	mov	DWORD PTR 8[r14], eax
	mov	rax, QWORD PTR 48[rsp]
	add	QWORD PTR [rax], 1
	jmp	.L5
.L27:
	mov	rdi, r14
	mov	r13d, 1
	call	proc_rele@PLT
	mov	edi, DWORD PTR 36[rsp]
	call	os_reason_free@PLT
	jmp	.L8
.L12:
	mov	rax, QWORD PTR 24[rsp]
	xor	r12d, r12d
	mov	QWORD PTR 16[rsp], rax
	jmp	.L2
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	memorystatus_kill_elevated_process, .-memorystatus_kill_elevated_process
	.comm	memorystatus_kill_cause_name,8,8
	.comm	memorystatus_jetsam_snapshot_count,8,8
	.comm	memorystatus_jetsam_snapshot,8,8
	.comm	memorystatus_freeze_jetsam_band,8,8
	.comm	memorystatus_available_pages,8,8
	.comm	TRUE,8,8
	.comm	P_MEMSTAT_USE_ELEVATED_INACTIVE_BAND,4,4
	.comm	P_MEMSTAT_TERMINATED,4,4
	.comm	P_MEMSTAT_LOCKED,4,4
	.comm	P_MEMSTAT_FROZEN,4,4
	.comm	P_MEMSTAT_ERROR,4,4
	.comm	PROC_NULL,8,8
	.comm	OS_LOG_DEFAULT,4,4
	.comm	FALSE,8,8
	.comm	DBG_FUNC_START,4,4
	.comm	DBG_FUNC_END,4,4
	.comm	DBG_BSD_MEMSTAT,4,4
	.comm	BSD_MEMSTAT_JETSAM,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_kern_memorystatus.c_memorystatus_kill_elevated_process.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unknown\000"
	.align	2
.LC1:
	.ascii	"%lu.%03d memorystatus: killing_top_process_elevated"
	.ascii	"%d pid %d [%s] (%s %d) - memorystatus_available_pag"
	.ascii	"es: %llu\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	memorystatus_kill_elevated_process, %function
memorystatus_kill_elevated_process:
	@ args = 4, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r1
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #76
	str	r3, [sp, #40]
	ldr	r5, .L28
	ldr	r3, .L28+4
	str	ip, [sp, #36]
	str	r2, [sp, #52]
	mov	r10, r0
	ldr	r1, .L28+8
	ldr	r0, .L28+12
	ldr	r3, [r3]
	str	r3, [sp, #68]
	mov	r3,#0
	ldr	r6, [r5]
	ldr	r3, [sp, #112]
	ldr	r1, [r1]
	ldr	r0, [r0]
	str	r3, [sp, #48]
	str	r6, [sp, #32]
	bl	BSDDBG_CODE
	mov	r3, #0
	ldr	r2, .L28+16
	ldr	r1, .L28+20
	ldr	r2, [r2]
	str	r3, [sp, #4]
	str	r3, [sp]
	ldr	r1, [r1]
	orr	r0, r0, r2
	mov	r2, r3
	bl	KERNEL_DEBUG_CONSTANT
	bl	proc_list_lock
	ldr	r1, [r5]
	add	r0, sp, #52
	bl	memorystatus_get_first_proc_locked
	subs	r4, r0, #0
	beq	.L12
	lsl	r3, r10, #2
	ldr	r7, .L28+24
	ldr	fp, .L28+28
	ldr	r9, .L28+32
	str	r6, [sp, #28]
	str	r3, [sp, #44]
	b	.L9
.L25:
	ldr	ip, [fp]
	ldr	r2, [r9]
	orr	r2, ip, r2
	tst	r2, r3
	bne	.L14
	ldr	r2, .L28+36
	ldr	r1, [r2]
	ldr	r2, [r4]
	cmp	r1, #0
	str	r2, [sp, #24]
	beq	.L23
.L4:
	orr	r3, r3, ip
	str	r3, [r4, #4]
	bl	mach_absolute_time
	mov	r8, r0
	add	r2, sp, #64
	add	r1, sp, #60
	bl	absolutetime_to_microtime
	mov	r2, r8
	mov	r1, r10
	mov	r0, r4
	ldr	r8, [sp, #64]
	bl	memorystatus_update_jetsam_snapshot_entry_locked
	mov	r0, r4
	bl	proc_ref_locked
	cmp	r4, r0
	beq	.L24
.L5:
	ldr	r1, [r5]
	add	r0, sp, #52
	bl	memorystatus_get_first_proc_locked
	mov	r4, r0
	cmp	r4, #0
	beq	.L2
.L9:
	ldr	r2, [r5]
	mov	r1, r4
	add	r0, sp, #52
	bl	memorystatus_get_next_proc_locked
	ldr	r3, [r4, #4]
	ldr	r2, [r7]
	ldr	r6, [r4, #12]
	tst	r3, r2
	bne	.L25
.L14:
	mov	r4, r0
	cmp	r4, #0
	bne	.L9
.L2:
	bl	proc_list_unlock
	ldr	r0, [sp, #36]
	bl	os_reason_free
	ldr	r3, [sp, #32]
	cmp	r3, #0
	beq	.L10
	bl	proc_list_lock
	mov	r3, #0
	ldr	r2, .L28+40
	ldr	r1, .L28+36
	ldr	r2, [r2]
	str	r3, [r1]
	str	r3, [r2]
	bl	proc_list_unlock
.L10:
	ldr	r3, .L28+8
	ldr	r1, [r3]
	ldr	r3, .L28+12
	ldr	r0, [r3]
	bl	BSDDBG_CODE
	ldr	r2, [sp, #28]
	ldr	r1, .L28+20
	cmp	r2, #0
	movne	r3, #0
	moveq	r3, r2
	moveq	r6, r2
	ldr	r2, .L28+44
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r0, r0, r2
.L8:
	mov	ip, #0
	mov	r2, r6
	str	ip, [sp, #4]
	str	ip, [sp]
	bl	KERNEL_DEBUG_CONSTANT
	ldr	r3, .L28+4
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	ldr	r0, [sp, #28]
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	mov	r0, r1
	bl	memorystatus_init_jetsam_snapshot_locked
	ldr	r2, .L28+48
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	ldr	ip, [fp]
	str	r2, [sp, #32]
	b	.L4
.L24:
	bl	proc_list_unlock
	ldr	r2, [r4, #8]
	ldr	r0, .L28+52
	ldrb	r3, [r2]	@ zero_extendqisi2
	ldr	r1, .L28+56
	cmp	r3, #0
	moveq	r2, r0
	ldr	r3, .L28+20
	ldr	r1, [r1]
	ldr	r0, [r3]
	ldr	r3, [sp, #24]
	str	r0, [sp, #20]
	str	r3, [sp, #16]
	ldr	r3, .L28+60
	ldr	r0, [sp, #44]
	smull	ip, r3, r8, r3
	ldr	r1, [r1, r0]
	str	r2, [sp, #8]
	ldr	r2, [sp, #40]
	ldr	r0, .L28+64
	str	r1, [sp, #12]
	str	r2, [sp]
	asr	r8, r8, #31
	str	r6, [sp, #4]
	rsb	r3, r8, r3, asr #6
	ldr	r2, [sp, #60]
	ldr	r1, .L28+68
	ldr	r0, [r0]
	bl	os_log_with_startup_serial
	ldr	r8, [sp, #36]
	mov	r0, r8
	bl	os_reason_ref
	mov	r2, r8
	mov	r1, r10
	mov	r0, r4
	bl	memorystatus_do_kill
	subs	r3, r0, #0
	str	r3, [sp, #28]
	bne	.L27
	bl	proc_list_lock
	mov	r0, r4
	bl	proc_rele_locked
	ldr	r2, [fp]
	ldr	r3, [r4, #4]
	ldr	r0, [sp, #48]
	ldr	r1, [r9]
	bic	r3, r3, r2
	ldr	r2, [r0]
	orr	r3, r3, r1
	add	r2, r2, #1
	str	r3, [r4, #4]
	str	r2, [r0]
	b	.L5
.L27:
	mov	r0, r4
	bl	proc_rele
	ldr	r0, [sp, #36]
	bl	os_reason_free
	ldr	r3, .L28+8
	ldr	r1, [r3]
	ldr	r3, .L28+12
	ldr	r0, [r3]
	bl	BSDDBG_CODE
	ldr	r3, .L28+44
	ldr	r2, .L28+20
	ldr	r1, [r2]
	ldr	r2, [r3]
	mov	r3, #1
	orr	r0, r0, r2
	b	.L8
.L12:
	ldr	r3, [sp, #32]
	mov	r6, r4
	str	r3, [sp, #28]
	b	.L2
.L26:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	FALSE
	.word	.LC2
	.word	BSD_MEMSTAT_JETSAM
	.word	DBG_BSD_MEMSTAT
	.word	DBG_FUNC_START
	.word	memorystatus_available_pages
	.word	P_MEMSTAT_USE_ELEVATED_INACTIVE_BAND
	.word	P_MEMSTAT_TERMINATED
	.word	P_MEMSTAT_ERROR
	.word	memorystatus_jetsam_snapshot_count
	.word	memorystatus_jetsam_snapshot
	.word	DBG_FUNC_END
	.word	TRUE
	.word	.LC0
	.word	memorystatus_kill_cause_name
	.word	274877907
	.word	OS_LOG_DEFAULT
	.word	.LC1
	.size	memorystatus_kill_elevated_process, .-memorystatus_kill_elevated_process
	.comm	memorystatus_kill_cause_name,4,4
	.comm	memorystatus_jetsam_snapshot_count,4,4
	.comm	memorystatus_jetsam_snapshot,4,4
	.comm	memorystatus_freeze_jetsam_band,4,4
	.comm	memorystatus_available_pages,4,4
	.comm	TRUE,4,4
	.comm	P_MEMSTAT_USE_ELEVATED_INACTIVE_BAND,4,4
	.comm	P_MEMSTAT_TERMINATED,4,4
	.comm	P_MEMSTAT_LOCKED,4,4
	.comm	P_MEMSTAT_FROZEN,4,4
	.comm	P_MEMSTAT_ERROR,4,4
	.comm	PROC_NULL,4,4
	.comm	OS_LOG_DEFAULT,4,4
	.comm	FALSE,4,4
	.comm	DBG_FUNC_START,4,4
	.comm	DBG_FUNC_END,4,4
	.comm	DBG_BSD_MEMSTAT,4,4
	.comm	BSD_MEMSTAT_JETSAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
