	.file	"extr_kern_memorystatus.c_memorystatus_kill_proc.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	"memorystatus: purged %llu pages from pid %d [%s] and avoided %s\n"
	.section	.rodata.str1.1
.LC2:
	.string	"killing_highwater_process"
.LC3:
	.string	"killing_idle_process"
.LC4:
	.string	"killing_top_process"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"%lu.%03d memorystatus: %s pid %d [%s] (%s %d) - memorystatus_available_pages: %llu\n"
	.text
	.p2align 4
	.type	memorystatus_kill_proc, @function
memorystatus_kill_proc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 184
	.cfi_def_cfa_offset 240
	mov	ebx, DWORD PTR [rdi]
	mov	r14, QWORD PTR 8[rdi]
	mov	QWORD PTR [rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 168[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR kMemorystatusKilledVnodes[rip], rsi
	je	.L2
	cmp	QWORD PTR kMemorystatusKilledZoneMapExhaustion[rip], rsi
	jne	.L22
.L2:
	xor	eax, eax
	call	mach_absolute_time@PLT
	lea	rdx, 20[rsp]
	lea	rsi, 24[rsp]
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	absolutetime_to_microtime@PLT
	movsx	r12, DWORD PTR 20[rsp]
	mov	rax, r12
	imul	r12, r12, 274877907
	sar	eax, 31
	sar	r12, 38
	sub	r12d, eax
	xor	eax, eax
	call	proc_list_lock@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	rsi, r15
	mov	rdi, rbp
	movsx	r12, r12d
	mov	rdx, r8
	call	memorystatus_update_jetsam_snapshot_entry_locked@PLT
	xor	eax, eax
	call	proc_list_unlock@PLT
	lea	r8, 32[rsp]
	mov	edx, 128
	cmp	QWORD PTR kMemorystatusKilledHiwat[rip], r15
	je	.L23
	cmp	QWORD PTR JETSAM_PRIORITY_IDLE[rip], r14
	je	.L24
	mov	rdi, r8
	lea	rsi, .LC4[rip]
	mov	QWORD PTR 8[rsp], r8
	call	strlcpy@PLT
	mov	r8, QWORD PTR 8[rsp]
.L8:
	mov	rax, QWORD PTR memorystatus_kill_cause_name[rip]
	lea	rcx, .LC0[rip]
	mov	edi, DWORD PTR OS_LOG_DEFAULT[rip]
	mov	r9d, ebx
	lea	rsi, .LC5[rip]
	mov	edx, DWORD PTR [rax+r15*4]
	mov	rax, QWORD PTR 16[rbp]
	cmp	BYTE PTR [rax], 0
	push	QWORD PTR memorystatus_available_pages[rip]
	.cfi_def_cfa_offset 248
	cmove	rax, rcx
	push	r14
	.cfi_def_cfa_offset 256
	mov	rcx, r12
	push	rdx
	.cfi_def_cfa_offset 264
	push	rax
	.cfi_def_cfa_offset 272
	mov	rdx, QWORD PTR 56[rsp]
	xor	eax, eax
	call	os_log_with_startup_serial@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 240
	mov	edi, r13d
	call	os_reason_ref@PLT
	mov	edx, r13d
	mov	rsi, r15
	mov	rdi, rbp
	call	memorystatus_do_kill@PLT
	mov	rbx, QWORD PTR [rsp]
	mov	DWORD PTR [rbx], eax
.L1:
	mov	rbx, QWORD PTR 168[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L25
	add	rsp, 184
	.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
.L22:
	.cfi_restore_state
	call	networking_memstatus_callout@PLT
	mov	edi, DWORD PTR 28[rbp]
	call	vm_purgeable_purge_task_owned@PLT
	mov	r12, rax
	test	rax, rax
	je	.L2
	cmp	QWORD PTR kMemorystatusKilledHiwat[rip], r15
	je	.L26
	xor	eax, eax
	call	memorystatus_avail_pages_below_pressure@PLT
	cmp	QWORD PTR FALSE[rip], rax
	sete	al
	movzx	eax, al
.L4:
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR OS_LOG_DEFAULT[rip]
	movsx	rcx, ebx
	lea	r8, .LC0[rip]
	mov	rdx, QWORD PTR memorystatus_kill_cause_name[rip]
	add	DWORD PTR memorystatus_purge_before_jetsam_success[rip], 1
	lea	rsi, .LC1[rip]
	cmp	BYTE PTR [rax], 0
	mov	r9d, DWORD PTR [rdx+r15*4]
	cmovne	r8, rax
	mov	rdx, r12
	xor	eax, eax
	call	os_log_with_startup_serial@PLT
	mov	rax, QWORD PTR FALSE[rip]
	mov	rbx, QWORD PTR [rsp]
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR TRUE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, r8
	lea	rsi, .LC3[rip]
	mov	QWORD PTR 8[rsp], r8
	call	strlcpy@PLT
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, r8
	lea	rsi, .LC2[rip]
	mov	QWORD PTR 8[rsp], r8
	call	strlcpy@PLT
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, DWORD PTR 28[rbp]
	call	get_task_phys_footprint@PLT
	mov	r8, rax
	mov	rax, QWORD PTR 32[rbp]
	sal	rax, 20
	cmp	r8, rax
	setbe	al
	movzx	eax, al
	jmp	.L4
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	memorystatus_kill_proc, .-memorystatus_kill_proc
	.comm	memorystatus_purge_before_jetsam_success,4,4
	.comm	memorystatus_kill_cause_name,8,8
	.comm	memorystatus_jetsam_policy,4,4
	.comm	memorystatus_available_pages,8,8
	.comm	kPolicyDiagnoseFirst,4,4
	.comm	kPolicyDiagnoseActive,4,4
	.comm	kMemorystatusKilledZoneMapExhaustion,8,8
	.comm	kMemorystatusKilledVnodes,8,8
	.comm	kMemorystatusKilledHiwat,8,8
	.comm	kMemorystatusInvalid,8,8
	.comm	jetsam_diagnostic_suspended_one_active_proc,4,4
	.comm	footprint_in_bytes,8,8
	.comm	TRUE,4,4
	.comm	P_MEMSTAT_FOREGROUND,4,4
	.comm	P_MEMSTAT_DIAG_SUSPENDED,4,4
	.comm	OS_LOG_DEFAULT,4,4
	.comm	JETSAM_PRIORITY_IDLE,8,8
	.comm	FALSE,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_kern_memorystatus.c_memorystatus_kill_proc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unknown\000"
	.align	2
.LC1:
	.ascii	"memorystatus: purged %llu pages from pid %d [%s] an"
	.ascii	"d avoided %s\012\000"
	.align	2
.LC2:
	.ascii	"killing_highwater_process\000"
	.align	2
.LC3:
	.ascii	"killing_idle_process\000"
	.align	2
.LC4:
	.ascii	"killing_top_process\000"
	.align	2
.LC5:
	.ascii	"%lu.%03d memorystatus: %s pid %d [%s] (%s %d) - mem"
	.ascii	"orystatus_available_pages: %llu\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	memorystatus_kill_proc, %function
memorystatus_kill_proc:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, .L30
	sub	sp, sp, #196
	str	r3, [sp, #36]
	ldr	r3, .L30+4
	mov	r6, r2
	ldr	r2, [ip]
	ldr	r3, [r3]
	str	r3, [sp, #188]
	mov	r3,#0
	ldr	r3, [r0]
	cmp	r2, r1
	mov	r4, r1
	mov	r5, r0
	ldr	r10, [r0, #4]
	str	r3, [sp, #32]
	beq	.L25
	ldr	r3, .L30+8
	ldr	r3, [r3]
	cmp	r3, r1
	bne	.L22
.L25:
	ldr	fp, .L30+12
.L2:
	bl	mach_absolute_time
	mov	r8, r1
	mov	r9, r0
	add	r3, sp, #56
	add	r2, sp, #52
	bl	absolutetime_to_microtime
	ldr	r3, [sp, #56]
	ldr	r2, .L30+16
	asr	r7, r3, #31
	smull	r1, r3, r2, r3
	rsb	r7, r7, r3, asr #6
	bl	proc_list_lock
	mov	r3, r8
	mov	r2, r9
	mov	r1, r4
	mov	r0, r5
	bl	memorystatus_update_jetsam_snapshot_entry_locked
	bl	proc_list_unlock
	ldr	r3, [fp]
	cmp	r3, r4
	beq	.L27
	ldr	r3, .L30+20
	add	r8, sp, #60
	ldr	r3, [r3]
	mov	r0, r8
	cmp	r3, r10
	mov	r2, #128
	ldreq	r1, .L30+24
	ldrne	r1, .L30+28
	bl	strlcpy
.L8:
	ldr	r2, [r5, #8]
	ldr	r3, .L30+32
	ldrb	ip, [r2]	@ zero_extendqisi2
	ldr	r0, [r3]
	ldr	r3, .L30+36
	cmp	ip, #0
	moveq	r2, r3
	asr	r1, r0, #31
	str	r0, [sp, #24]
	str	r1, [sp, #28]
	ldr	r3, .L30+40
	str	r10, [sp, #16]
	ldr	r3, [r3]
	ldr	r1, .L30+44
	ldr	r0, [r3, r4, lsl #2]
	str	r2, [sp, #8]
	ldr	r2, [sp, #32]
	str	r0, [sp, #12]
	str	r2, [sp, #4]
	str	r8, [sp]
	mov	r3, r7
	ldr	r2, [sp, #52]
	ldr	r0, [r1]
	ldr	r1, .L30+48
	bl	os_log_with_startup_serial
	mov	r0, r6
	bl	os_reason_ref
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	bl	memorystatus_do_kill
	ldr	r3, [sp, #36]
	str	r0, [r3]
.L1:
	ldr	r3, .L30+4
	ldr	r2, [r3]
	ldr	r3, [sp, #188]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	add	sp, sp, #196
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	bl	networking_memstatus_callout
	ldr	r0, [r5, #16]
	bl	vm_purgeable_purge_task_owned
	mov	r7, r0
	mov	r8, r1
	orrs	r3, r7, r8
	ldr	fp, .L30+12
	beq	.L2
	ldr	r1, [fp]
	str	r7, [sp, #40]
	str	r8, [sp, #44]
	cmp	r1, r4
	beq	.L29
	bl	memorystatus_avail_pages_below_pressure
	add	r8, sp, #40
	ldmia	r8, {r7-r8}
	ldr	r1, .L30+52
	ldr	r1, [r1]
	sub	r0, r1, r0
	clz	r0, r0
	lsr	r0, r0, #5
.L4:
	cmp	r0, #0
	beq	.L2
	ldr	r0, .L30+56
	ldr	ip, [r5, #8]
	ldr	r1, [r0]
	mov	r2, r7
	add	r1, r1, #1
	str	r1, [r0]
	ldrb	r0, [ip]	@ zero_extendqisi2
	ldr	r1, .L30+36
	cmp	r0, #0
	moveq	ip, r1
	ldr	r1, .L30+40
	ldr	r0, .L30+44
	ldr	r1, [r1]
	ldr	r3, [sp, #32]
	ldr	lr, [r1, r4, lsl #2]
	ldr	r0, [r0]
	ldr	r1, .L30+60
	stm	sp, {ip, lr}
	bl	os_log_with_startup_serial
	ldr	r2, .L30+52
	ldr	r1, [sp, #36]
	ldr	r2, [r2]
	ldr	r3, .L30+64
	str	r2, [r1]
	ldr	r0, [r3]
	b	.L1
.L27:
	add	r8, sp, #60
	mov	r0, r8
	mov	r2, #128
	ldr	r1, .L30+68
	bl	strlcpy
	b	.L8
.L29:
	ldr	r0, [r5, #16]
	bl	get_task_phys_footprint
	ldr	ip, [r5, #20]
	asr	r3, ip, #31
	lsl	r9, r3, #20
	orr	r9, r9, ip, lsr #12
	cmp	r1, r9
	lsl	r8, ip, #20
	cmpeq	r0, r8
	movls	r0, #1
	add	r8, sp, #40
	ldmia	r8, {r7-r8}
	movhi	r0, #0
	b	.L4
.L28:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	kMemorystatusKilledVnodes
	.word	.LC6
	.word	kMemorystatusKilledZoneMapExhaustion
	.word	kMemorystatusKilledHiwat
	.word	274877907
	.word	JETSAM_PRIORITY_IDLE
	.word	.LC3
	.word	.LC4
	.word	memorystatus_available_pages
	.word	.LC0
	.word	memorystatus_kill_cause_name
	.word	OS_LOG_DEFAULT
	.word	.LC5
	.word	FALSE
	.word	memorystatus_purge_before_jetsam_success
	.word	.LC1
	.word	TRUE
	.word	.LC2
	.size	memorystatus_kill_proc, .-memorystatus_kill_proc
	.comm	memorystatus_purge_before_jetsam_success,4,4
	.comm	memorystatus_kill_cause_name,4,4
	.comm	memorystatus_jetsam_policy,4,4
	.comm	memorystatus_available_pages,4,4
	.comm	kPolicyDiagnoseFirst,4,4
	.comm	kPolicyDiagnoseActive,4,4
	.comm	kMemorystatusKilledZoneMapExhaustion,4,4
	.comm	kMemorystatusKilledVnodes,4,4
	.comm	kMemorystatusKilledHiwat,4,4
	.comm	kMemorystatusInvalid,4,4
	.comm	jetsam_diagnostic_suspended_one_active_proc,4,4
	.comm	footprint_in_bytes,8,8
	.comm	TRUE,4,4
	.comm	P_MEMSTAT_FOREGROUND,4,4
	.comm	P_MEMSTAT_DIAG_SUSPENDED,4,4
	.comm	OS_LOG_DEFAULT,4,4
	.comm	JETSAM_PRIORITY_IDLE,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
