	.file	"extr_linux_ipc.c_linux_msqid_pushdown.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	linux_msqid_pushdown, @function
linux_msqid_pushdown:
.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
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	sub	rsp, 96
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR LINUX_IPC_64[rip], rdi
	je	.L4
	mov	edi, DWORD PTR SV_LP64[rip]
	call	SV_CURPROC_FLAG@PLT
	test	rax, rax
	je	.L8
.L4:
	mov	edx, 80
	mov	esi, r12d
	mov	rdi, rbp
	call	copyout@PLT
.L1:
	mov	rcx, QWORD PTR 88[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 96
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	r13, rsp
	mov	esi, 80
	mov	rdi, r13
	call	bzero@PLT
	lea	rsi, 72[rsp]
	lea	rdi, 72[rbp]
	call	linux_ipc64_perm_to_ipc_perm@PLT
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 24[rbp]
	mov	esi, r12d
	mov	rdi, r13
	mov	QWORD PTR [rsp], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 32[rsp], rdx
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR USHRT_MAX[rip]
	cmp	rdx, rax
	mov	rcx, rax
	cmovle	rcx, rdx
	cmp	QWORD PTR 40[rbp], rax
	mov	rdx, rax
	cmovle	rdx, QWORD PTR 40[rbp]
	mov	QWORD PTR 40[rsp], rdx
	mov	rdx, QWORD PTR 48[rbp]
	mov	QWORD PTR 24[rsp], rcx
	cmp	rax, rdx
	mov	QWORD PTR 56[rsp], rdx
	cmovg	rax, rdx
	mov	edx, 80
	mov	QWORD PTR 48[rsp], rax
	mov	rax, QWORD PTR 64[rbp]
	mov	QWORD PTR 64[rsp], rax
	call	copyout@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	linux_msqid_pushdown, .-linux_msqid_pushdown
	.comm	USHRT_MAX,8,8
	.comm	SV_LP64,4,4
	.comm	LINUX_IPC_64,8,8
	.comm	EOVERFLOW,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_linux_ipc.c_linux_msqid_pushdown.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	linux_msqid_pushdown, %function
linux_msqid_pushdown:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L10
	sub	sp, sp, #48
	ldr	r3, [r3]
	mov	r4, r1
	cmp	r3, r0
	ldr	r3, .L10+4
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	beq	.L4
	ldr	r3, .L10+8
	ldr	r0, [r3]
	bl	SV_CURPROC_FLAG
	cmp	r0, #0
	beq	.L8
.L4:
	mov	r1, r5
	mov	r0, r4
	mov	r2, #44
	bl	copyout
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	mov	r1, #44
	mov	r0, sp
	bl	bzero
	add	r1, sp, #40
	add	r0, r4, #40
	bl	linux_ipc64_perm_to_ipc_perm
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L10+12
	ldr	lr, [r4, #12]
	ldr	r3, [r3]
	ldr	r2, [r4, #20]
	cmp	lr, r3
	ldr	ip, [r4, #24]
	movge	r6, r3
	movlt	r6, lr
	cmp	r2, r3
	movge	r2, r3
	cmp	r3, ip
	movge	r3, ip
	str	r2, [sp, #20]
	ldr	r2, [r4, #4]
	mov	r1, r5
	str	lr, [sp, #16]
	ldr	r5, [r4]
	ldr	lr, [r4, #8]
	str	r3, [sp, #24]
	str	ip, [sp, #28]
	ldr	r3, [r4, #32]
	ldr	ip, [r4, #36]
	str	r2, [sp, #4]
	mov	r0, sp
	mov	r2, #44
	str	r6, [sp, #12]
	str	r5, [sp]
	str	lr, [sp, #8]
	str	ip, [sp, #36]
	str	r3, [sp, #32]
	bl	copyout
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	LINUX_IPC_64
	.word	.LC0
	.word	SV_LP64
	.word	USHRT_MAX
	.size	linux_msqid_pushdown, .-linux_msqid_pushdown
	.comm	USHRT_MAX,4,4
	.comm	SV_LP64,4,4
	.comm	LINUX_IPC_64,4,4
	.comm	EOVERFLOW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
