	.file	"extr_ipc_tt.c_task_get_exception_ports.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	task_get_exception_ports
	.type	task_get_exception_ports, @function
task_get_exception_ports:
.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
	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
	mov	rbx, r8
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	cmp	QWORD PTR TASK_NULL[rip], rdi
	mov	QWORD PTR 8[rsp], rdx
	mov	r8, QWORD PTR 112[rsp]
	mov	QWORD PTR [rsp], rcx
	je	.L4
	mov	eax, DWORD PTR EXC_MASK_VALID[rip]
	mov	QWORD PTR 112[rsp], r8
	mov	r14d, esi
	not	eax
	test	eax, esi
	je	.L23
.L4:
	mov	eax, DWORD PTR KERN_INVALID_ARGUMENT[rip]
.L1:
	add	rsp, 56
	.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
	mov	r13, rdi
	mov	r12, r9
	call	itk_lock@PLT
	mov	rax, QWORD PTR IP_NULL[rip]
	cmp	QWORD PTR 0[r13], rax
	mov	r8, QWORD PTR 112[rsp]
	je	.L24
	mov	ebp, DWORD PTR FIRST_EXCEPTION[rip]
	xor	esi, esi
	cmp	ebp, DWORD PTR EXC_TYPES_COUNT[rip]
	jnb	.L6
	mov	r15d, esi
	mov	rsi, r13
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L7:
	add	ebp, 1
	cmp	DWORD PTR EXC_TYPES_COUNT[rip], ebp
	jbe	.L20
.L12:
	bt	r14d, ebp
	jnc	.L7
	mov	r11, QWORD PTR 8[rsi]
	mov	r10d, ebp
	test	r15d, r15d
	je	.L14
	lea	rax, [r10+r10*2]
	lea	ecx, -1[r15]
	lea	r13, [r11+rax*8]
	xor	eax, eax
	mov	r9, QWORD PTR 0[r13]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	add	edx, 1
	lea	rdi, 1[rax]
	cmp	rcx, rax
	je	.L10
	mov	rax, rdi
.L11:
	mov	edx, eax
	cmp	r9, QWORD PTR [rbx+rax*8]
	jne	.L9
	mov	rdi, QWORD PTR [r12+rax*8]
	cmp	QWORD PTR 8[r13], rdi
	jne	.L9
	mov	rdi, QWORD PTR [r8+rax*8]
	cmp	QWORD PTR 16[r13], rdi
	jne	.L9
	mov	ecx, ebp
	mov	edi, 1
	sal	edi, cl
	mov	ecx, edi
	mov	rdi, QWORD PTR 8[rsp]
	or	DWORD PTR [rdi+rax*4], ecx
	.p2align 4,,10
	.p2align 3
.L10:
	cmp	r15d, edx
	jne	.L7
	mov	rax, QWORD PTR 8[rsp]
	mov	r13d, r15d
	lea	rax, [rax+r13*4]
	sal	r13, 3
	lea	rcx, [r8+r13]
	lea	r9, [rbx+r13]
	mov	QWORD PTR 16[rsp], rcx
	lea	rdx, [r12+r13]
.L8:
	mov	ecx, ebp
	mov	QWORD PTR 40[rsp], rsi
	mov	esi, 1
	add	r15d, 1
	sal	esi, cl
	mov	QWORD PTR 112[rsp], r8
	mov	DWORD PTR [rax], esi
	lea	rax, [r10+r10*2]
	mov	rdi, QWORD PTR [r11+rax*8]
	mov	QWORD PTR 32[rsp], rdx
	lea	r13, 0[0+rax*8]
	mov	QWORD PTR 24[rsp], r9
	call	ipc_port_copy_send@PLT
	mov	r9, QWORD PTR 24[rsp]
	mov	rsi, QWORD PTR 40[rsp]
	mov	rdx, QWORD PTR 32[rsp]
	mov	r8, QWORD PTR 112[rsp]
	mov	QWORD PTR [r9], rax
	mov	rax, r13
	add	rax, QWORD PTR 8[rsi]
	mov	rcx, QWORD PTR 8[rax]
	mov	QWORD PTR [rdx], rcx
	mov	rcx, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR [rcx], rax
	mov	rax, QWORD PTR [rsp]
	cmp	DWORD PTR [rax], r15d
	jnb	.L7
	.p2align 4,,10
	.p2align 3
.L20:
	mov	r13, rsi
	mov	esi, r15d
.L6:
	mov	rdi, r13
	mov	DWORD PTR 8[rsp], esi
	call	itk_unlock@PLT
	mov	rax, QWORD PTR [rsp]
	mov	esi, DWORD PTR 8[rsp]
	mov	DWORD PTR [rax], esi
	mov	eax, DWORD PTR KERN_SUCCESS[rip]
	add	rsp, 56
	.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
.L14:
	.cfi_restore_state
	mov	QWORD PTR 16[rsp], r8
	mov	rax, QWORD PTR 8[rsp]
	mov	rdx, r12
	mov	r9, rbx
	jmp	.L8
.L24:
	mov	rdi, r13
	call	itk_unlock@PLT
	mov	eax, DWORD PTR KERN_FAILURE[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	task_get_exception_ports, .-task_get_exception_ports
	.comm	TASK_NULL,8,8
	.comm	KERN_SUCCESS,4,4
	.comm	KERN_INVALID_ARGUMENT,4,4
	.comm	KERN_FAILURE,4,4
	.comm	IP_NULL,8,8
	.comm	FIRST_EXCEPTION,4,4
	.comm	EXC_TYPES_COUNT,4,4
	.comm	EXC_MASK_VALID,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_ipc_tt.c_task_get_exception_ports.c"
	.text
	.align	2
	.global	task_get_exception_ports
	.syntax unified
	.arm
	.fpu softvfp
	.type	task_get_exception_ports, %function
task_get_exception_ports:
	@ args = 12, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, .L27
	mov	r8, r1
	ldr	r1, [ip]
	sub	sp, sp, #28
	cmp	r1, r0
	ldr	r6, [sp, #68]
	str	r3, [sp, #16]
	beq	.L4
	ldr	r3, .L27+4
	ldr	r4, [r3]
	bics	r4, r8, r4
	beq	.L24
.L4:
	ldr	r3, .L27+8
	ldr	r0, [r3]
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	mov	fp, r0
	mov	r10, r2
	bl	itk_lock
	ldr	r3, .L27+12
	ldr	r2, [fp]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L25
	ldr	r3, .L27+16
	ldr	r7, .L27+20
	ldr	r5, [r3]
	ldr	r3, [r7]
	cmp	r5, r3
	bcs	.L6
	str	fp, [sp, #4]
	str	r10, [sp, #12]
	ldr	fp, [sp, #72]
	b	.L12
.L7:
	ldr	r3, [r7]
	add	r5, r5, #1
	cmp	r3, r5
	bls	.L20
.L12:
	asr	r3, r8, r5
	tst	r3, #1
	beq	.L7
	ldr	r3, [sp, #4]
	add	r10, r5, r5, lsl #1
	lsl	r2, r10, #2
	cmp	r4, #0
	ldr	lr, [r3, #4]
	str	r2, [sp, #8]
	beq	.L14
	add	r9, lr, r2
	ldr	r2, [sp, #64]
	mov	r3, #0
	ldr	r0, [lr, r10, lsl #2]
	sub	r2, r2, #4
	str	lr, [sp]
	b	.L11
.L9:
	add	r3, r3, #1
	cmp	r3, r4
	beq	.L26
.L11:
	ldr	ip, [r2, #4]!
	lsl	r1, r3, #2
	cmp	r0, ip
	bne	.L9
	ldr	ip, [r6, r3, lsl #2]
	ldr	lr, [r9, #4]
	cmp	lr, ip
	bne	.L9
	ldr	ip, [fp, r3, lsl #2]
	ldr	lr, [r9, #8]
	cmp	lr, ip
	bne	.L9
	cmp	r4, r3
	mov	r3, #1
	ldr	r0, [sp, #12]
	ldr	lr, [sp]
	ldr	r2, [r0, r1]
	orr	r2, r2, r3, lsl r5
	str	r2, [r0, r1]
	beq	.L10
	ldr	r3, [r7]
	add	r5, r5, #1
	cmp	r3, r5
	bhi	.L12
.L20:
	ldr	fp, [sp, #4]
.L6:
	mov	r0, fp
	bl	itk_unlock
	ldr	r2, [sp, #16]
	ldr	r3, .L27+24
	str	r4, [r2]
	ldr	r0, [r3]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	ldr	lr, [sp]
	lsl	r1, r4, #2
.L10:
	ldr	r2, [sp, #64]
	ldr	r3, [sp, #12]
	add	r9, r2, r1
	add	r2, r6, r1
	add	r3, r3, r1
	str	r2, [sp]
	add	r1, fp, r1
.L8:
	mov	r2, #1
	lsl	r2, r2, r5
	ldr	r0, [lr, r10, lsl #2]
	str	r2, [r3]
	str	r1, [sp, #20]
	bl	ipc_port_copy_send
	ldr	r3, [sp, #4]
	ldr	r2, [sp, #8]
	ldr	r3, [r3, #4]
	str	r0, [r9]
	add	r3, r3, r2
	ldr	r0, [r3, #4]
	ldr	r1, [sp]
	ldr	r2, [sp, #16]
	add	r4, r4, #1
	ldr	r2, [r2]
	str	r0, [r1]
	ldr	r3, [r3, #8]
	ldr	r1, [sp, #20]
	cmp	r2, r4
	str	r3, [r1]
	bcs	.L7
	b	.L20
.L14:
	mov	r1, fp
	ldr	r9, [sp, #64]
	ldr	r3, [sp, #12]
	str	r6, [sp]
	b	.L8
.L25:
	mov	r0, fp
	bl	itk_unlock
	ldr	r3, .L27+28
	ldr	r0, [r3]
	b	.L1
.L28:
	.align	2
.L27:
	.word	TASK_NULL
	.word	EXC_MASK_VALID
	.word	KERN_INVALID_ARGUMENT
	.word	IP_NULL
	.word	FIRST_EXCEPTION
	.word	EXC_TYPES_COUNT
	.word	KERN_SUCCESS
	.word	KERN_FAILURE
	.size	task_get_exception_ports, .-task_get_exception_ports
	.comm	TASK_NULL,4,4
	.comm	KERN_SUCCESS,4,4
	.comm	KERN_INVALID_ARGUMENT,4,4
	.comm	KERN_FAILURE,4,4
	.comm	IP_NULL,4,4
	.comm	FIRST_EXCEPTION,4,4
	.comm	EXC_TYPES_COUNT,4,4
	.comm	EXC_MASK_VALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
