	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_disconnect
_do_disconnect:                         ## @do_disconnect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	20(%rdi), %r9d
	leaq	L_.str(%rip), %r8
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_at_cmd
	movl	16(%rbx), %edi
	callq	_close
	movq	_IPASSIGNED@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	movl	$12, -32(%rbp)
	movl	$12, -48(%rbp)
	leaq	-28(%rbp), %rdi
	movl	$255, %esi
	movl	$4, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	%eax, -40(%rbp)
	leaq	-44(%rbp), %rdi
	leaq	12(%rbx), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	8(%rbx), %edi
	leaq	-48(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_ifaddr_del
	movl	8(%rbx), %edi
	callq	_if_ifdown
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_2:
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_set_nameservers
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AT_OWANCALL=%d,0,0\r\n"

	.comm	_IPASSIGNED,4,2                 ## @IPASSIGNED
	.comm	_AF_INET,4,2                    ## @AF_INET
	.no_dead_strip	_do_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_disconnect
_do_disconnect:                         ; @do_disconnect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w5, [x0, #20]
Lloh0:
	adrp	x4, l_.str@PAGE
Lloh1:
	add	x4, x4, l_.str@PAGEOFF
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_at_cmd
	ldr	w0, [x19, #16]
	bl	_close
	ldr	w8, [x19]
Lloh2:
	adrp	x20, _IPASSIGNED@GOTPAGE
Lloh3:
	ldr	x20, [x20, _IPASSIGNED@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w8, #12
	str	w8, [sp]
	str	w8, [sp, #16]
	mov	x8, sp
	orr	x0, x8, #0x4
	mov	w1, #255
	mov	w2, #4
	bl	_memset
Lloh4:
	adrp	x8, _AF_INET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	w8, [sp, #24]
	add	x8, sp, #16
	orr	x0, x8, #0x4
	add	x1, x19, #12
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #8]
	add	x1, sp, #16
	mov	x2, sp
	bl	_ifaddr_del
	ldr	w0, [x19, #8]
	bl	_if_ifdown
	ldr	w8, [x20]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	ldr	w1, [x19, #4]
	mov	x0, x19
	mov	w2, #0
	bl	_set_nameservers
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AT_OWANCALL=%d,0,0\r\n"

	.comm	_IPASSIGNED,4,2                 ; @IPASSIGNED
	.comm	_AF_INET,4,2                    ; @AF_INET
	.no_dead_strip	_do_disconnect
.subsections_via_symbols
