	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipcp_RestoreDNS                ## -- Begin function ipcp_RestoreDNS
	.p2align	4, 0x90
_ipcp_RestoreDNS:                       ## @ipcp_RestoreDNS
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	movq	__PATH_RESCONF@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	je	LBB0_9
## %bb.1:
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	$420, %edx                      ## imm = 0x1A4
	callq	_ID0open
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.2:
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_strlen
	movl	%eax, %r12d
	movl	(%rbx), %esi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_write
	cmpl	%r12d, %eax
	je	LBB0_6
## %bb.3:
	movq	_LogERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	(%r15), %r15d
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	movslq	%eax, %rcx
	movslq	%r12d, %r8
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_6
LBB0_9:
	callq	_remove
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r15), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movslq	%eax, %rcx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_10:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r15), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movslq	%eax, %rcx
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	movl	%ebx, %edi
	movl	%r14d, %edx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_log_Printf                     ## TAILCALL
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movslq	%eax, %rcx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_log_Printf
LBB0_6:
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__PATH_RESCONF,4,2              ## @_PATH_RESCONF
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_LogERROR,4,2                   ## @LogERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed rewriting %s: write: %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Failed rewriting %s: wrote %ld of %ld\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed rewriting %s: open: %s\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipcp_RestoreDNS                ; -- Begin function ipcp_RestoreDNS
	.p2align	2
_ipcp_RestoreDNS:                       ; @ipcp_RestoreDNS
	.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, #8]
Lloh0:
	adrp	x23, __PATH_RESCONF@GOTPAGE
Lloh1:
	ldr	x23, [x23, __PATH_RESCONF@GOTPAGEOFF]
	ldr	w0, [x23]
	cbz	x8, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w2, #420
	bl	_ID0open
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.2:
	mov	x19, x0
	ldr	w0, [x20]
	bl	_strlen
	mov	x22, x0
	ldr	w1, [x20]
	mov	x0, x19
	mov	x2, x22
	bl	_write
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, w22
	b.eq	LBB0_12
; %bb.3:
Lloh8:
	adrp	x8, _LogERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	ldr	w20, [x23]
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.4:
	sxtw	x3, w0
	sxtw	x8, w22
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_5:
	bl	_remove
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.6:
	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
LBB0_7:
Lloh13:
	adrp	x8, _LogERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
	ldr	w20, [x23]
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x3, w0
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh21:
	adrp	x8, _LogERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
	ldr	w20, [x23]
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x3, w0
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	mov	x0, x19
	mov	x2, 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
	b	_log_Printf
LBB0_10:
Lloh29:
	adrp	x8, _errno@GOTPAGE
Lloh30:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x3, w0
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
LBB0_11:
	mov	x0, x21
	mov	x2, x20
	bl	_log_Printf
LBB0_12:
	mov	x0, x19
	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
	b	_close
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	__PATH_RESCONF,4,2              ; @_PATH_RESCONF
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_LogERROR,4,2                   ; @LogERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed rewriting %s: write: %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Failed rewriting %s: wrote %ld of %ld\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed rewriting %s: open: %s\n"

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

.subsections_via_symbols
