	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DCChangeHostName               ## -- Begin function DCChangeHostName
	.p2align	4, 0x90
_DCChangeHostName:                      ## @DCChangeHostName
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	movq	%rdi, %r14
	movq	%rbx, %rdi
	callq	_StrLen
	cmpl	$33, %eax
	jl	LBB0_7
## %bb.3:
	movq	_ERR_DDNS_HOSTNAME_TOO_LONG@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rbx
LBB0_6:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	-48(%rbp), %rdi
	movl	$4, %esi
	callq	_Zero
	movl	-48(%rbp), %edi
	movl	$4, %esi
	movq	%rbx, %rdx
	callq	_StrCpy
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %r15
	movq	(%r15), %r12
	cmpq	%r12, (%r14)
	je	LBB0_10
## %bb.8:
	movq	8(%r14), %r13
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%ecx, %ecx
	callq	_DCRegister
	movq	%rax, %rbx
	cmpq	%r12, %r13
	je	LBB0_11
## %bb.9:
	cmpq	(%r15), %rbx
	je	LBB0_11
LBB0_10:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_DCRegister
	movq	%rax, %rbx
LBB0_11:
	cmpq	(%r15), %rbx
	jne	LBB0_6
## %bb.12:
	leaq	-52(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_DCGetStatus
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_SiApplyAzureConfig
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_INTERNAL_ERROR,8,3         ## @ERR_INTERNAL_ERROR
	.comm	_ERR_DDNS_HOSTNAME_TOO_LONG,8,3 ## @ERR_DDNS_HOSTNAME_TOO_LONG
	.comm	_ERR_NO_ERROR,8,3               ## @ERR_NO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DCChangeHostName               ; -- Begin function DCChangeHostName
	.p2align	2
_DCChangeHostName:                      ; @DCChangeHostName
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_4
; %bb.2:
	mov	x19, x0
	mov	x0, x20
	bl	_StrLen
	cmp	w0, #33
	b.lt	LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _ERR_DDNS_HOSTNAME_TOO_LONG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_DDNS_HOSTNAME_TOO_LONG@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	b	LBB0_10
LBB0_4:
Lloh3:
	adrp	x8, _ERR_INTERNAL_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_INTERNAL_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
	b	LBB0_10
LBB0_5:
	add	x0, sp, #8
	mov	w1, #4
	bl	_Zero
	ldr	w0, [sp, #8]
	mov	w1, #4
	mov	x2, x20
	bl	_StrCpy
	ldr	x8, [x19]
Lloh6:
	adrp	x21, _ERR_NO_ERROR@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ERR_NO_ERROR@GOTPAGEOFF]
	ldr	x22, [x21]
	cmp	x8, x22
	b.eq	LBB0_7
; %bb.6:
	ldr	x23, [x19, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #1
	mov	x3, #0
	bl	_DCRegister
	mov	x20, x0
	ldr	x8, [x21]
	cmp	x23, x22
	ccmp	x0, x8, #4, ne
	b.eq	LBB0_8
LBB0_7:
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #0
	mov	x3, #0
	bl	_DCRegister
	mov	x20, x0
LBB0_8:
	ldr	x8, [x21]
	cmp	x20, x8
	b.ne	LBB0_10
; %bb.9:
	add	x1, sp, #4
	mov	x0, x19
	bl	_DCGetStatus
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	add	x1, sp, #4
	bl	_SiApplyAzureConfig
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_INTERNAL_ERROR,8,3         ; @ERR_INTERNAL_ERROR
	.comm	_ERR_DDNS_HOSTNAME_TOO_LONG,8,3 ; @ERR_DDNS_HOSTNAME_TOO_LONG
	.comm	_ERR_NO_ERROR,8,3               ; @ERR_NO_ERROR
.subsections_via_symbols
