	.file	"extr_getpeereid.c_getpeereid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	getpeereid
	.type	getpeereid, @function
getpeereid:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	xor	esi, esi
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR LOCAL_PEERCRED[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rcx, 16[rsp]
	lea	r8, 12[rsp]
	mov	DWORD PTR 12[rsp], 16
	call	_getsockopt@PLT
	test	eax, eax
	jne	.L1
	mov	rcx, QWORD PTR XUCRED_VERSION[rip]
	cmp	QWORD PTR 16[rsp], rcx
	jne	.L7
	mov	edx, DWORD PTR 28[rsp]
	mov	DWORD PTR [rbx], edx
	mov	edx, DWORD PTR 24[rsp]
	mov	DWORD PTR 0[rbp], edx
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	mov	DWORD PTR errno[rip], eax
	mov	eax, -1
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	getpeereid, .-getpeereid
	.comm	errno,4,4
	.comm	XUCRED_VERSION,8,8
	.comm	LOCAL_PEERCRED,4,4
	.comm	EINVAL,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_getpeereid.c_getpeereid.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getpeereid
	.syntax unified
	.arm
	.fpu softvfp
	.type	getpeereid, %function
getpeereid:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	ip, #12
	mov	lr, r2
	sub	sp, sp, #32
	ldr	r2, .L8
	add	r3, sp, ip
	mov	r4, lr
	ldr	lr, .L8+4
	ldr	r2, [r2]
	mov	r5, r1
	str	r3, [sp]
	mov	r1, #0
	add	r3, sp, #16
	ldr	lr, [lr]
	str	lr, [sp, #28]
	mov	lr,#0
	str	ip, [sp, #12]
	bl	_getsockopt
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L8+8
	ldr	r2, [sp, #16]
	ldr	r3, [r3]
	cmp	r2, r3
	mvnne	r0, #0
	ldrne	r2, .L8+12
	ldrne	r3, .L8+16
	ldrne	r2, [r2]
	ldreq	r2, [sp, #24]
	ldreq	r3, [sp, #20]
	streq	r2, [r5]
	strne	r2, [r3]
	streq	r3, [r4]
.L1:
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	LOCAL_PEERCRED
	.word	.LC0
	.word	XUCRED_VERSION
	.word	EINVAL
	.word	errno
	.size	getpeereid, .-getpeereid
	.comm	errno,4,4
	.comm	XUCRED_VERSION,4,4
	.comm	LOCAL_PEERCRED,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
