	.file	"extr_734.c_netbios_encode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" "
	.text
	.p2align 4
	.globl	netbios_encode
	.type	netbios_encode, @function
netbios_encode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	mov	edi, 17
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	BYTE PTR 12[rsp], sil
	mov	esi, 1
	call	calloc@PLT
	mov	rdi, r12
	mov	rbp, rax
	call	strlen@PLT
	mov	rsi, r12
	mov	rdi, rbp
	mov	edx, eax
	call	memcpy@PLT
	mov	rdi, rbp
	call	strlen@PLT
	movsx	r12, eax
	cmp	r12, 14
	ja	.L2
	lea	rbx, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, rbx
	mov	rdi, rbp
	add	r12, 1
	call	strcat@PLT
	cmp	r12, 15
	jne	.L3
.L2:
	mov	rdi, rbp
	call	strlen@PLT
	lea	rsi, 12[rsp]
	mov	edx, 1
	movsx	rdi, eax
	add	rdi, rbp
	call	memcpy@PLT
	mov	rdi, rbp
	call	strlen@PLT
	mov	esi, 1
	lea	edi, 1[rax+rax]
	call	calloc@PLT
	mov	rdi, rbp
	mov	r12, rax
	lea	r8, 32[rax]
	mov	rcx, rax
	.p2align 4,,10
	.p2align 3
.L4:
	movzx	eax, BYTE PTR [rdi]
	test	al, al
	lea	edx, 15[rax]
	mov	esi, eax
	cmovns	edx, eax
	sar	sil, 7
	add	rdi, 1
	shr	sil, 4
	add	eax, esi
	sar	dl, 4
	and	eax, 15
	add	edx, 65
	sub	eax, esi
	mov	BYTE PTR [rcx], dl
	mov	rdx, rcx
	add	rcx, 2
	add	eax, 65
	mov	BYTE PTR 1[rdx], al
	cmp	rcx, r8
	jne	.L4
	mov	rdi, rbp
	call	free@PLT
	add	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	netbios_encode, .-netbios_encode
	.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_734.c_netbios_encode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	" \000"
	.text
	.align	2
	.global	netbios_encode
	.syntax unified
	.arm
	.fpu softvfp
	.type	netbios_encode, %function
netbios_encode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r7, r1
	mov	r0, #17
	mov	r1, #1
	bl	calloc
	mov	r4, r0
	mov	r0, r5
	bl	strlen
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	memcpy
	mov	r0, r4
	bl	strlen
	cmp	r0, #14
	mov	r5, r0
	bgt	.L2
	ldr	r6, .L9
.L3:
	mov	r0, r4
	bl	strlen
	add	r5, r5, #1
	mov	r2, #2
	mov	r1, r6
	add	r0, r4, r0
	bl	memcpy
	cmp	r5, #15
	bne	.L3
	mov	r0, r4
	bl	strlen
	mov	r5, r0
.L2:
	strb	r7, [r4, r5]
	mov	r0, r4
	bl	strlen
	lsl	r0, r0, #1
	mov	r1, #1
	add	r0, r0, #1
	bl	calloc
	mov	ip, r4
	mov	r6, r0
	mov	r2, r0
	add	r5, r0, #32
.L4:
	mov	lr, r2
	ldrb	r3, [ip], #1	@ zero_extendqisi2
	add	r2, r2, #2
	lsr	r1, r3, #4
	add	r1, r1, #65
	and	r3, r3, #15
	strb	r1, [r2, #-2]
	add	r3, r3, #65
	cmp	r2, r5
	strb	r3, [lr, #1]
	bne	.L4
	mov	r0, r4
	bl	free
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	netbios_encode, .-netbios_encode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
