	.file	"extr_uipc_mqueue.c_sys_kmq_timedsend.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sys_kmq_timedsend
	.type	sys_kmq_timedsend, @function
sys_kmq_timedsend:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR 24[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	AUDIT_ARG_FD@PLT
	mov	esi, DWORD PTR 24[rbx]
	lea	rdx, 16[rsp]
	xor	ecx, ecx
	lea	r8, 8[rsp]
	mov	rdi, rbp
	call	getmq_write@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	r9, QWORD PTR 16[rbx]
	test	r9, r9
	je	.L3
	lea	r13, 4[rsp]
	mov	edx, 4
	mov	rdi, r9
	mov	rsi, r13
	call	copyin@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	mov	r9, r13
.L3:
	mov	rax, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR 8[rbx]
	mov	ecx, DWORD PTR [rbx]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR O_NONBLOCK[rip], eax
	sete	r8b
	mov	rdi, QWORD PTR 8[rsp]
	movzx	r8d, r8b
	call	mqueue_send@PLT
	mov	r12d, eax
.L4:
	mov	rdi, QWORD PTR 16[rsp]
	mov	rsi, rbp
	call	fdrop@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sys_kmq_timedsend, .-sys_kmq_timedsend
	.comm	O_NONBLOCK,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_uipc_mqueue.c_sys_kmq_timedsend.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sys_kmq_timedsend
	.syntax unified
	.arm
	.fpu softvfp
	.type	sys_kmq_timedsend, %function
sys_kmq_timedsend:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r6, r0
	ldr	r3, .L12
	sub	sp, sp, #24
	ldr	r0, [r1, #16]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	AUDIT_ARG_FD
	add	r3, sp, #8
	ldr	r1, [r5, #16]
	mov	r0, r6
	str	r3, [sp]
	add	r2, sp, #12
	mov	r3, #0
	bl	getmq_write
	subs	r4, r0, #0
	bne	.L1
	ldr	r0, [r5, #12]
	cmp	r0, #0
	beq	.L3
	mov	r2, #4
	add	r1, sp, #16
	bl	copyin
	subs	r4, r0, #0
	bne	.L4
	add	r0, sp, #16
.L3:
	ldr	r2, [sp, #12]
	ldr	r3, .L12+4
	str	r0, [sp, #4]
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, [r5]
	tst	r1, r2
	moveq	r1, #1
	movne	r1, #0
	ldr	r2, [r5, #4]
	str	r1, [sp]
	ldr	r1, [r5, #8]
	ldr	r0, [sp, #8]
	bl	mqueue_send
	mov	r4, r0
.L4:
	mov	r1, r6
	ldr	r0, [sp, #12]
	bl	fdrop
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	O_NONBLOCK
	.size	sys_kmq_timedsend, .-sys_kmq_timedsend
	.comm	O_NONBLOCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
