	.file	"247018350.c"
	.intel_syntax noprefix
	.text
	.globl	_nss_log_gethostbyname_r
	.type	_nss_log_gethostbyname_r, @function
_nss_log_gethostbyname_r:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	QWORD PTR -40[rbp], r8
	mov	QWORD PTR -48[rbp], r9
	mov	rdi, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	QWORD PTR -48[rbp]
	mov	r9, rdi
	mov	r8, rsi
	mov	esi, 2
	mov	rdi, rax
	call	_nss_log_gethostbyname2_r
	add	rsp, 16
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	_nss_log_gethostbyname_r, .-_nss_log_gethostbyname_r
	.section	.rodata
.LC0:
	.string	"/tmp/nss-log-%u.log"
	.text
	.globl	_nss_log_gethostbyname2_r
	.type	_nss_log_gethostbyname2_r, @function
_nss_log_gethostbyname2_r:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -108[rbp], esi
	mov	QWORD PTR -120[rbp], rdx
	mov	QWORD PTR -128[rbp], rcx
	mov	QWORD PTR -136[rbp], r8
	mov	QWORD PTR -144[rbp], r9
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR -152[rbp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 16
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	cmp	rax, QWORD PTR -88[rbp]
	jnb	.L4
	mov	rax, QWORD PTR -144[rbp]
	mov	DWORD PTR [rax], 34
	mov	rax, QWORD PTR -152[rbp]
	mov	DWORD PTR [rax], -1
	mov	eax, -2
	jmp	.L7
.L4:
	mov	rax, QWORD PTR -128[rbp]
	movabs	rcx, 7094422235346396519
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 8[rax], 1835101817
	mov	WORD PTR 12[rax], 8293
	mov	BYTE PTR 14[rax], 0
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 10
	call	getuid@PLT
	mov	edx, eax
	lea	rax, -80[rbp]
	mov	ecx, edx
	lea	rdx, .LC0[rip]
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -80[rbp]
	mov	edx, 448
	mov	esi, 1089
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], -1
	jne	.L6
	mov	eax, -1
	jmp	.L7
.L6:
	mov	rdx, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR -128[rbp]
	mov	eax, DWORD PTR -92[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -92[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L7:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	_nss_log_gethostbyname2_r, .-_nss_log_gethostbyname2_r
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"247018350.c"
	.text
	.align	2
	.global	_nss_log_gethostbyname_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	_nss_log_gethostbyname_r, %function
_nss_log_gethostbyname_r:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #8]
	str	r3, [sp, #8]
	ldr	r3, [fp, #4]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	_nss_log_gethostbyname2_r
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_nss_log_gethostbyname_r, .-_nss_log_gethostbyname_r
	.section	.rodata
	.align	2
.LC0:
	.ascii	"gethostbyname \000"
	.align	2
.LC1:
	.ascii	"\012\000"
	.align	2
.LC2:
	.ascii	"/tmp/nss-log-%u.log\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	_nss_log_gethostbyname2_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	_nss_log_gethostbyname2_r, %function
_nss_log_gethostbyname2_r:
	@ args = 12, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	str	r2, [fp, #-96]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-104]
	ldr	r3, [fp, #12]
	str	r3, [fp, #-108]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-88]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #16
	str	r3, [fp, #-80]
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	bcs	.L4
	ldr	r3, [fp, #-104]
	mov	r2, #34
	str	r2, [r3]
	ldr	r3, [fp, #-108]
	mvn	r2, #0
	str	r2, [r3]
	mvn	r3, #1
	b	.L7
.L4:
	ldr	r3, [fp, #-100]
	ldr	r2, .L9+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #15
	mov	r2, r3
	bl	memcpy
	ldr	r1, [fp, #-88]
	ldr	r0, [fp, #-100]
	bl	strcat
	ldr	r0, [fp, #-100]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-100]
	add	r3, r3, r2
	ldr	r2, .L9+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	bl	getuid
	mov	r3, r0
	sub	r0, fp, #72
	ldr	r2, .L9+12
	mov	r1, #64
	bl	snprintf
	sub	r3, fp, #72
	mov	r2, #448
	ldr	r1, .L9+16
	mov	r0, r3
	bl	open
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmn	r3, #1
	bne	.L6
	mvn	r3, #0
	b	.L7
.L6:
	ldr	r2, [fp, #-80]
	ldr	r1, [fp, #-100]
	ldr	r0, [fp, #-76]
	bl	write
	ldr	r0, [fp, #-76]
	bl	close
	mov	r3, #0
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1089
	.size	_nss_log_gethostbyname2_r, .-_nss_log_gethostbyname2_r
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
