	.file	"extr_DDNS.c_DCChangeHostName.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	DCChangeHostName
	.type	DCChangeHostName, @function
DCChangeHostName:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L11
	mov	r12, rsi
	test	rsi, rsi
	je	.L11
	mov	rbx, rdi
	mov	rdi, rsi
	call	StrLen@PLT
	cmp	eax, 32
	jle	.L5
	mov	r12, QWORD PTR ERR_DDNS_HOSTNAME_TOO_LONG[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r12, QWORD PTR ERR_INTERNAL_ERROR[rip]
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	rbx
	.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
.L5:
	.cfi_restore_state
	mov	r13, rsp
	mov	esi, 4
	mov	rdi, r13
	call	Zero@PLT
	mov	edi, DWORD PTR [rsp]
	mov	rdx, r12
	mov	esi, 4
	call	StrCpy@PLT
	mov	rax, QWORD PTR ERR_NO_ERROR[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L13
	xor	ecx, ecx
	mov	rdx, r13
	mov	esi, 1
	mov	rdi, rbx
	cmp	rax, QWORD PTR 8[rbx]
	je	.L14
	call	DCRegister@PLT
	cmp	QWORD PTR ERR_NO_ERROR[rip], rax
	mov	r12, rax
	jne	.L13
.L9:
	lea	r13, 4[rsp]
	mov	rdi, rbx
	mov	rsi, r13
	call	DCGetStatus@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	rsi, r13
	mov	edi, DWORD PTR [rax]
	call	SiApplyAzureConfig@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	xor	ecx, ecx
	mov	rdx, r13
	xor	esi, esi
	mov	rdi, rbx
.L14:
	call	DCRegister@PLT
	cmp	QWORD PTR ERR_NO_ERROR[rip], rax
	mov	r12, rax
	jne	.L1
	jmp	.L9
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	DCChangeHostName, .-DCChangeHostName
	.comm	ERR_NO_ERROR,8,8
	.comm	ERR_INTERNAL_ERROR,8,8
	.comm	ERR_DDNS_HOSTNAME_TOO_LONG,8,8
	.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_DDNS.c_DCChangeHostName.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	DCChangeHostName
	.syntax unified
	.arm
	.fpu softvfp
	.type	DCChangeHostName, %function
DCChangeHostName:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r1
	cmp	r0, #0
	lsr	r3, r3, #5
	push	{r4, r5, r6, r7, lr}
	movne	r5, r3
	moveq	r5, #1
	ldr	r3, .L15
	sub	sp, sp, #20
	cmp	r5, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L2
	ldr	r3, .L15+4
	ldr	r4, [r3]
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r6, r0
	mov	r0, r1
	mov	r4, r1
	bl	StrLen
	cmp	r0, #32
	ldrgt	r3, .L15+8
	ldrgt	r4, [r3]
	bgt	.L1
.L4:
	mov	r1, #4
	ldr	r7, .L15+12
	add	r0, sp, #4
	bl	Zero
	mov	r2, r4
	mov	r1, #4
	ldr	r0, [sp, #4]
	bl	StrCpy
	ldr	r3, [r7]
	ldr	r2, [r6]
	cmp	r2, r3
	beq	.L11
	ldr	r2, [r6, #4]
	mov	r1, #1
	cmp	r3, r2
	mov	r0, r6
	mov	r3, r5
	add	r2, sp, #4
	beq	.L12
	bl	DCRegister
	ldr	r3, [r7]
	mov	r4, r0
	cmp	r3, r0
	bne	.L11
.L8:
	add	r1, sp, #8
	mov	r0, r6
	bl	DCGetStatus
	ldr	r3, [r6, #8]
	add	r1, sp, #8
	ldr	r0, [r3]
	bl	SiApplyAzureConfig
	b	.L1
.L11:
	mov	r3, r5
	mov	r1, r5
	mov	r0, r6
	add	r2, sp, #4
.L12:
	bl	DCRegister
	ldr	r3, [r7]
	mov	r4, r0
	cmp	r3, r0
	bne	.L1
	b	.L8
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	ERR_INTERNAL_ERROR
	.word	ERR_DDNS_HOSTNAME_TOO_LONG
	.word	ERR_NO_ERROR
	.size	DCChangeHostName, .-DCChangeHostName
	.comm	ERR_NO_ERROR,4,4
	.comm	ERR_INTERNAL_ERROR,4,4
	.comm	ERR_DDNS_HOSTNAME_TOO_LONG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
