	.file	"extr_sysdiagnose.c_sysdiagnose_notify_user.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sysdiagnose_notify_user
	.type	sysdiagnose_notify_user, @function
sysdiagnose_notify_user:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	host_priv_self@PLT
	lea	rsi, 4[rsp]
	mov	edi, eax
	call	host_get_sysdiagnose_port@PLT
	cmp	QWORD PTR KERN_SUCCESS[rip], rax
	mov	r12, rax
	je	.L9
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rsp]
	call	IPC_PORT_VALID@PLT
	test	eax, eax
	je	.L1
	mov	esi, DWORD PTR SYSDIAGNOSE_NOTIFY_USER[rip]
	mov	edi, DWORD PTR DBG_MACH_SYSDIAGNOSE[rip]
	call	MACHDBG_CODE@PLT
	or	eax, DWORD PTR DBG_FUNC_START[rip]
	xor	r9d, r9d
	xor	ecx, ecx
	xor	r8d, r8d
	xor	edx, edx
	xor	esi, esi
	mov	edi, eax
	call	KERNEL_DEBUG_CONSTANT@PLT
	mov	edi, DWORD PTR 4[rsp]
	mov	esi, ebp
	call	send_sysdiagnose_notification@PLT
	mov	edi, DWORD PTR 4[rsp]
	mov	r12, rax
	call	ipc_port_release_send@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sysdiagnose_notify_user, .-sysdiagnose_notify_user
	.comm	SYSDIAGNOSE_NOTIFY_USER,4,4
	.comm	KERN_SUCCESS,8,8
	.comm	DBG_MACH_SYSDIAGNOSE,4,4
	.comm	DBG_FUNC_START,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_sysdiagnose.c_sysdiagnose_notify_user.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sysdiagnose_notify_user
	.syntax unified
	.arm
	.fpu softvfp
	.type	sysdiagnose_notify_user, %function
sysdiagnose_notify_user:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L11
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r0
	bl	host_priv_self
	add	r1, sp, #8
	bl	host_get_sysdiagnose_port
	ldr	r3, .L11+4
	mov	r4, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L9
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	ldr	r0, [sp, #8]
	bl	IPC_PORT_VALID
	cmp	r0, #0
	beq	.L1
	ldr	r2, .L11+8
	ldr	r3, .L11+12
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	MACHDBG_CODE
	mov	r3, #0
	ldr	r2, .L11+16
	str	r3, [sp, #4]
	ldr	r2, [r2]
	mov	r1, r3
	str	r3, [sp]
	orr	r0, r0, r2
	mov	r2, r3
	bl	KERNEL_DEBUG_CONSTANT
	mov	r1, r5
	ldr	r0, [sp, #8]
	bl	send_sysdiagnose_notification
	mov	r4, r0
	ldr	r0, [sp, #8]
	bl	ipc_port_release_send
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	KERN_SUCCESS
	.word	SYSDIAGNOSE_NOTIFY_USER
	.word	DBG_MACH_SYSDIAGNOSE
	.word	DBG_FUNC_START
	.size	sysdiagnose_notify_user, .-sysdiagnose_notify_user
	.comm	SYSDIAGNOSE_NOTIFY_USER,4,4
	.comm	KERN_SUCCESS,4,4
	.comm	DBG_MACH_SYSDIAGNOSE,4,4
	.comm	DBG_FUNC_START,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
