	.file	"extr_atm.c_atm_send_proc_inspect_notification.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	atm_send_proc_inspect_notification
	.type	atm_send_proc_inspect_notification, @function
atm_send_proc_inspect_notification:
.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
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	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, 24
	.cfi_def_cfa_offset 80
	mov	r15, QWORD PTR ATM_TASK_DESCRIPTOR_NULL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MACH_PORT_NULL[rip]
	mov	DWORD PTR 4[rsp], eax
	xor	eax, eax
	call	current_thread@PLT
	cmp	QWORD PTR disable_atm[rip], 0
	je	.L2
.L4:
	mov	r13d, DWORD PTR KERN_NOT_SUPPORTED[rip]
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L2:
	.cfi_restore_state
	mov	r12d, eax
	xor	eax, eax
	call	atm_get_diagnostic_config@PLT
	test	DWORD PTR ATM_TRACE_DISABLE[rip], eax
	jne	.L4
	test	rbp, rbp
	je	.L22
	mov	rdi, rbp
	call	task_lock@PLT
	mov	rbx, QWORD PTR 0[rbp]
	test	rbx, rbx
	je	.L6
	mov	rdi, rbx
	mov	r15, rbx
	call	atm_descriptor_get_reference@PLT
.L6:
	mov	rdi, rbp
	call	task_unlock@PLT
	cmp	QWORD PTR ATM_TASK_DESCRIPTOR_NULL[rip], r15
	je	.L19
	mov	edi, DWORD PTR 4[r15]
	call	ipc_port_copy_send@PLT
	mov	rdi, r15
	mov	ebx, DWORD PTR [r15]
	mov	ebp, eax
	call	atm_task_descriptor_dealloc@PLT
	xor	eax, eax
	call	host_priv_self@PLT
	lea	rsi, 4[rsp]
	mov	edi, eax
	call	host_get_atm_notification_port@PLT
	cmp	DWORD PTR KERN_SUCCESS[rip], eax
	jne	.L9
	mov	edi, DWORD PTR 4[rsp]
	call	IPC_PORT_VALID@PLT
	test	eax, eax
	jne	.L23
.L9:
	mov	edi, ebp
	call	ipc_port_release_send@PLT
.L19:
	mov	r13d, DWORD PTR KERN_FAILURE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	r13d, DWORD PTR KERN_INVALID_TASK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edi, r12d
	call	thread_set_honor_qlimit@PLT
	mov	edi, DWORD PTR 4[rsp]
	mov	esi, r13d
	mov	r8d, ebp
	mov	ecx, ebx
	mov	edx, r14d
	call	atm_inspect_process_buffer@PLT
	mov	edi, r12d
	mov	r13d, eax
	call	thread_clear_honor_qlimit@PLT
	cmp	DWORD PTR KERN_SUCCESS[rip], r13d
	je	.L10
	mov	edi, DWORD PTR 4[rsp]
	call	ipc_port_release_send@PLT
	cmp	DWORD PTR MACH_SEND_TIMED_OUT[rip], r13d
	jne	.L10
	mov	r13d, DWORD PTR KERN_SUCCESS[rip]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, ebp
	call	ipc_port_release_send@PLT
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	atm_send_proc_inspect_notification, .-atm_send_proc_inspect_notification
	.comm	disable_atm,8,8
	.comm	MACH_SEND_TIMED_OUT,4,4
	.comm	MACH_PORT_NULL,4,4
	.comm	KERN_SUCCESS,4,4
	.comm	KERN_NOT_SUPPORTED,4,4
	.comm	KERN_INVALID_TASK,4,4
	.comm	KERN_FAILURE,4,4
	.comm	ATM_TRACE_DISABLE,4,4
	.comm	ATM_TASK_DESCRIPTOR_NULL,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_atm.c_atm_send_proc_inspect_notification.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	atm_send_proc_inspect_notification
	.syntax unified
	.arm
	.fpu softvfp
	.type	atm_send_proc_inspect_notification, %function
atm_send_proc_inspect_notification:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L24
	mov	r7, r2
	ldr	r3, [r3]
	ldr	r2, .L24+4
	ldr	r8, .L24+8
	sub	sp, sp, #16
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	mov	r4, r0
	str	r3, [sp, #8]
	mov	r6, r1
	ldr	r9, [r8]
	bl	current_thread
	ldr	r3, .L24+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
.L4:
	ldr	r3, .L24+16
	ldr	r4, [r3]
.L1:
	ldr	r3, .L24+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r5, r0
	bl	atm_get_diagnostic_config
	ldr	r3, .L24+20
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L4
	cmp	r4, #0
	beq	.L22
	mov	r0, r4
	bl	task_lock
	ldr	r10, [r4]
	cmp	r10, #0
	beq	.L6
	mov	r0, r10
	bl	atm_descriptor_get_reference
	mov	r9, r10
.L6:
	mov	r0, r4
	bl	task_unlock
	ldr	r3, [r8]
	cmp	r3, r9
	beq	.L19
	ldr	r0, [r9, #4]
	bl	ipc_port_copy_send
	mov	r8, r0
	mov	r0, r9
	ldr	r4, [r9]
	bl	atm_task_descriptor_dealloc
	bl	host_priv_self
	add	r1, sp, #8
	bl	host_get_atm_notification_port
	ldr	r9, .L24+24
	ldr	r3, [r9]
	cmp	r3, r0
	bne	.L9
	ldr	r0, [sp, #8]
	bl	IPC_PORT_VALID
	cmp	r0, #0
	bne	.L23
.L9:
	mov	r0, r8
	bl	ipc_port_release_send
.L19:
	ldr	r3, .L24+28
	ldr	r4, [r3]
	b	.L1
.L22:
	ldr	r3, .L24+32
	ldr	r4, [r3]
	b	.L1
.L23:
	mov	r0, r5
	bl	thread_set_honor_qlimit
	mov	r3, r4
	mov	r2, r7
	mov	r1, r6
	ldr	r0, [sp, #8]
	str	r8, [sp]
	bl	atm_inspect_process_buffer
	mov	r4, r0
	mov	r0, r5
	bl	thread_clear_honor_qlimit
	ldr	r3, [r9]
	cmp	r3, r4
	beq	.L10
	ldr	r0, [sp, #8]
	bl	ipc_port_release_send
	ldr	r3, .L24+36
	ldr	r3, [r3]
	cmp	r3, r4
	ldreq	r4, [r9]
.L10:
	mov	r0, r8
	bl	ipc_port_release_send
	b	.L1
.L21:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	MACH_PORT_NULL
	.word	.LC0
	.word	ATM_TASK_DESCRIPTOR_NULL
	.word	disable_atm
	.word	KERN_NOT_SUPPORTED
	.word	ATM_TRACE_DISABLE
	.word	KERN_SUCCESS
	.word	KERN_FAILURE
	.word	KERN_INVALID_TASK
	.word	MACH_SEND_TIMED_OUT
	.size	atm_send_proc_inspect_notification, .-atm_send_proc_inspect_notification
	.comm	disable_atm,4,4
	.comm	MACH_SEND_TIMED_OUT,4,4
	.comm	MACH_PORT_NULL,4,4
	.comm	KERN_SUCCESS,4,4
	.comm	KERN_NOT_SUPPORTED,4,4
	.comm	KERN_INVALID_TASK,4,4
	.comm	KERN_FAILURE,4,4
	.comm	ATM_TRACE_DISABLE,4,4
	.comm	ATM_TASK_DESCRIPTOR_NULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
