	.file	"extr_procs.c_sm_check_hostname.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"sm_stat: client %s hostname %s contained invalid characters."
	.text
	.p2align 4
	.globl	sm_check_hostname
	.type	sm_check_hostname, @function
sm_check_hostname:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	strlen@PLT
	lea	edi, 1[0+rax*4]
	mov	ebx, eax
	call	malloc@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	rbp, rax
	call	svc_getrpccaller@PLT
	mov	r13, QWORD PTR [rax]
	test	r13, r13
	je	.L3
	test	rbp, rbp
	jne	.L7
.L3:
	xor	r12d, r12d
.L2:
	mov	rdi, rbp
	call	free@PLT
	add	rsp, 8
	.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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edx, DWORD PTR VIS_WHITE[rip]
	mov	rsi, r12
	mov	rdi, rbp
	mov	r12d, 1
	call	strvis@PLT
	cmp	eax, ebx
	je	.L2
	mov	rdi, r13
	xor	r12d, r12d
	call	from_addr@PLT
	mov	edi, DWORD PTR LOG_ERR[rip]
	mov	rcx, rbp
	lea	rsi, .LC0[rip]
	mov	edx, eax
	call	syslog@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	sm_check_hostname, .-sm_check_hostname
	.comm	VIS_WHITE,4,4
	.comm	LOG_ERR,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_procs.c_sm_check_hostname.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sm_stat: client %s hostname %s contained invalid ch"
	.ascii	"aracters.\000"
	.text
	.align	2
	.global	sm_check_hostname
	.syntax unified
	.arm
	.fpu softvfp
	.type	sm_check_hostname, %function
sm_check_hostname:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r8, r1
	bl	strlen
	mov	r7, r0
	lsl	r0, r0, #2
	add	r0, r0, #1
	bl	malloc
	mov	r5, r0
	ldr	r0, [r4]
	bl	svc_getrpccaller
	clz	r4, r5
	ldr	r6, [r0]
	lsr	r4, r4, #5
	cmp	r6, #0
	moveq	r4, #1
	cmp	r4, #0
	movne	r4, #0
	beq	.L7
.L2:
	mov	r0, r5
	bl	free
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L8
	mov	r1, r8
	mov	r0, r5
	ldr	r2, [r3]
	bl	strvis
	cmp	r0, r7
	moveq	r4, #1
	beq	.L2
	ldr	r3, .L8+4
	mov	r0, r6
	ldr	r6, [r3]
	bl	from_addr
	mov	r3, r5
	mov	r2, r0
	ldr	r1, .L8+8
	mov	r0, r6
	bl	syslog
	b	.L2
.L9:
	.align	2
.L8:
	.word	VIS_WHITE
	.word	LOG_ERR
	.word	.LC0
	.size	sm_check_hostname, .-sm_check_hostname
	.comm	VIS_WHITE,4,4
	.comm	LOG_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
