	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipcp_WriteDNS                  ## -- Begin function ipcp_WriteDNS
	.p2align	4, 0x90
_ipcp_WriteDNS:                         ## @ipcp_WriteDNS
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_INADDR_ANY@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rcx
	jne	LBB0_4
## %bb.1:
	movq	8(%rax), %rdx
	cmpq	%rcx, %rdx
	jne	LBB0_3
## %bb.2:
	movq	_LogIPCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	__PATH_RESCONF@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_14
LBB0_3:
	movq	%rdx, (%rax)
	movq	(%r13), %rcx
	movq	%rcx, 8(%rax)
LBB0_4:
	movl	$18, %edi
	callq	_umask
	movl	%eax, %ebx
	movq	__PATH_RESCONF@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_ID0fopen
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_umask
	testq	%r14, %r14
	je	LBB0_13
## %bb.5:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	movq	%r14, %rsi
	callq	_fputs
LBB0_7:
	movq	(%r15), %rax
	movq	(%rax), %rdi
	callq	_inet_ntoa
	movq	%rax, %rbx
	movq	_LogIPCP@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_log_Printf
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_fprintf
	movq	(%r15), %rax
	movq	8(%rax), %rdi
	cmpq	(%r13), %rdi
	je	LBB0_11
## %bb.8:
	movq	_INADDR_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	je	LBB0_11
## %bb.9:
	cmpq	(%rax), %rdi
	je	LBB0_11
## %bb.10:
	callq	_inet_ntoa
	movq	%rax, %rbx
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_log_Printf
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_fprintf
LBB0_11:
	movq	%r14, %rdi
	callq	_fclose
	movq	_EOF@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.12:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	__PATH_RESCONF@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_14
LBB0_13:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movslq	(%r12), %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.7(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_log_Printf
	movl	$1, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INADDR_ANY,8,3                 ## @INADDR_ANY
	.comm	_LogIPCP,4,2                    ## @LogIPCP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s not modified: All nameservers NAKd\n"

	.comm	__PATH_RESCONF,4,2              ## @_PATH_RESCONF
L_.str.1:                               ## @.str.1
	.asciz	"w"

L_.str.2:                               ## @.str.2
	.asciz	"Primary nameserver set to %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"\nnameserver %s\n"

	.comm	_INADDR_NONE,8,3                ## @INADDR_NONE
L_.str.4:                               ## @.str.4
	.asciz	"Secondary nameserver set to %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"nameserver %s\n"

	.comm	_EOF,8,3                        ## @EOF
	.comm	_LogERROR,4,2                   ## @LogERROR
L_.str.6:                               ## @.str.6
	.asciz	"write(): Failed updating %s: %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.7:                               ## @.str.7
	.asciz	"fopen(\"%s\", \"w\") failed: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipcp_WriteDNS                  ; -- Begin function ipcp_WriteDNS
	.p2align	2
_ipcp_WriteDNS:                         ; @ipcp_WriteDNS
	.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
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh0:
	adrp	x23, _INADDR_ANY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _INADDR_ANY@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.1:
	ldr	x10, [x8, #8]
	cmp	x10, x9
	b.ne	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _LogIPCP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LogIPCP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, __PATH_RESCONF@GOTPAGE
Lloh6:
	ldr	x8, [x8, __PATH_RESCONF@GOTPAGEOFF]
Lloh7:
	ldrsw	x2, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_3:
	str	x10, [x8]
	ldr	x9, [x23]
	str	x9, [x8, #8]
LBB0_4:
	mov	w0, #18
	bl	_umask
	mov	x21, x0
Lloh10:
	adrp	x22, __PATH_RESCONF@GOTPAGE
Lloh11:
	ldr	x22, [x22, __PATH_RESCONF@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ID0fopen
	mov	x19, x0
	mov	x0, x21
	bl	_umask
	cbz	x19, LBB0_13
; %bb.5:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_7
; %bb.6:
	mov	x1, x19
	bl	_fputs
LBB0_7:
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_inet_ntoa
	mov	x21, x0
Lloh14:
	adrp	x24, _LogIPCP@GOTPAGE
Lloh15:
	ldr	x24, [x24, _LogIPCP@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_log_Printf
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_fprintf
	ldr	x8, [x20]
	ldr	x0, [x8, #8]
	ldr	x9, [x23]
Lloh20:
	adrp	x10, _INADDR_NONE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _INADDR_NONE@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	cmp	x0, x9
	ccmp	x0, x10, #4, ne
	b.eq	LBB0_10
; %bb.8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.9:
	bl	_inet_ntoa
	mov	x20, x0
	ldr	w0, [x24]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x20
	bl	_log_Printf
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_fprintf
LBB0_10:
	mov	x0, x19
	bl	_fclose
Lloh27:
	adrp	x8, _EOF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.11:
Lloh30:
	adrp	x8, _LogERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh32:
	ldr	w19, [x8]
	ldrsw	x20, [x22]
Lloh33:
	adrp	x8, _errno@GOTPAGE
Lloh34:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x20
LBB0_12:
	bl	_log_Printf
	mov	w0, #0
	b	LBB0_15
LBB0_13:
Lloh38:
	adrp	x8, _LogERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh40:
	ldr	w19, [x8]
	ldrsw	x20, [x22]
Lloh41:
	adrp	x8, _errno@GOTPAGE
Lloh42:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh44:
	adrp	x1, l_.str.7@PAGE
Lloh45:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_log_Printf
LBB0_14:
	mov	w0, #1
LBB0_15:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_INADDR_ANY,8,3                 ; @INADDR_ANY
	.comm	_LogIPCP,4,2                    ; @LogIPCP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s not modified: All nameservers NAKd\n"

	.comm	__PATH_RESCONF,4,2              ; @_PATH_RESCONF
l_.str.1:                               ; @.str.1
	.asciz	"w"

l_.str.2:                               ; @.str.2
	.asciz	"Primary nameserver set to %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"\nnameserver %s\n"

	.comm	_INADDR_NONE,8,3                ; @INADDR_NONE
l_.str.4:                               ; @.str.4
	.asciz	"Secondary nameserver set to %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"nameserver %s\n"

	.comm	_EOF,8,3                        ; @EOF
	.comm	_LogERROR,4,2                   ; @LogERROR
l_.str.6:                               ; @.str.6
	.asciz	"write(): Failed updating %s: %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.7:                               ; @.str.7
	.asciz	"fopen(\"%s\", \"w\") failed: %s\n"

.subsections_via_symbols
