	.file	"extr_ibping.c_get_host_and_domain.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"?hostname?"
.LC1:
	.string	"?domainname?"
	.text
	.p2align 4
	.type	get_host_and_domain, @function
get_host_and_domain:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	gethostname@PLT
	test	rax, rax
	js	.L9
.L2:
	movsx	rax, ebx
	mov	rdi, rbp
	mov	BYTE PTR -1[rbp+rax], 0
	call	strlen@PLT
	cmp	ebx, eax
	jg	.L10
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movsx	rdx, eax
	add	eax, 1
	mov	BYTE PTR 0[rbp+rdx], 46
	sub	ebx, eax
	lea	r12, 1[rbp+rdx]
	mov	esi, ebx
	mov	rdi, r12
	call	getdomainname@PLT
	test	rax, rax
	js	.L11
.L5:
	mov	rdi, r12
	call	strlen@PLT
	test	eax, eax
	jne	.L1
	mov	BYTE PTR -1[r12], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	rdx, .LC0[rip]
	mov	esi, ebx
	mov	rdi, rbp
	call	snprintf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdx, .LC1[rip]
	mov	esi, ebx
	mov	rdi, r12
	call	snprintf@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	get_host_and_domain, .-get_host_and_domain
	.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_ibping.c_get_host_and_domain.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"?hostname?\000"
	.align	2
.LC1:
	.ascii	"?domainname?\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_host_and_domain, %function
get_host_and_domain:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r4, r1
	bl	gethostname
	cmp	r0, #0
	blt	.L9
.L2:
	mov	r2, #0
	add	r3, r5, r4
	strb	r2, [r3, #-1]
	mov	r0, r5
	bl	strlen
	cmp	r4, r0
	mov	r3, r0
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r2, #46
	add	r6, r0, #1
	sub	r4, r4, r6
	add	r7, r5, r6
	mov	r1, r4
	mov	r0, r7
	strb	r2, [r5, r3]
	bl	getdomainname
	cmp	r0, #0
	blt	.L10
.L5:
	ldrb	r3, [r5, r6]	@ zero_extendqisi2
	cmp	r3, #0
	strbeq	r3, [r7, #-1]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r1, r4
	mov	r0, r5
	ldr	r2, .L11
	bl	snprintf
	b	.L2
.L10:
	mov	r1, r4
	mov	r0, r7
	ldr	r2, .L11+4
	bl	snprintf
	b	.L5
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	.LC1
	.size	get_host_and_domain, .-get_host_and_domain
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
