	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goodbye
_goodbye:                               ## @goodbye
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_FD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_TCIOFLUSH@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_tcflush
	xorl	%eax, %eax
	callq	_hay_sync
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	$1, %edi
	callq	_sleep
	movl	(%rbx), %edi
	movl	(%r14), %esi
	callq	_tcflush
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$5, %edx
	callq	_write
	leaq	L_.str.1(%rip), %rdi
	callq	_gobble
	cmpb	$48, %al
	je	LBB0_4
## %bb.2:
	cmpb	$51, %al
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_4:
	movl	$1, %edi
	callq	_sleep
	movl	(%rbx), %edi
	movq	_FIONREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_ioctl
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	$5, %edx
	callq	_write
	movl	$1, %edi
	callq	_sleep
LBB0_5:
	movl	(%rbx), %edi
	movl	(%r14), %esi
	callq	_tcflush
	movl	(%rbx), %edi
	movq	_TIOCCDTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_ioctl
	movl	(%rbx), %edi
	callq	_close
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FD,4,2                         ## @FD
	.comm	_TCIOFLUSH,4,2                  ## @TCIOFLUSH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ATH0\r"

L_.str.1:                               ## @.str.1
	.asciz	"03"

L_.str.2:                               ## @.str.2
	.asciz	"cannot hang up modem\n\r"

L_.str.3:                               ## @.str.3
	.asciz	"please use 'tip dialer' to make sure the line is hung up\n\r"

	.comm	_FIONREAD,4,2                   ## @FIONREAD
L_.str.4:                               ## @.str.4
	.asciz	"ATv1\r"

	.comm	_TIOCCDTR,4,2                   ## @TIOCCDTR
	.comm	_DUMBUFLEN,4,2                  ## @DUMBUFLEN
	.comm	_dumbuf,8,3                     ## @dumbuf
	.comm	_rlen,8,3                       ## @rlen
	.no_dead_strip	_goodbye
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goodbye
_goodbye:                               ; @goodbye
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _FD@GOTPAGE
Lloh1:
	ldr	x19, [x19, _FD@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x20, _TCIOFLUSH@GOTPAGE
Lloh3:
	ldr	x20, [x20, _TCIOFLUSH@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_tcflush
	bl	_hay_sync
	cbz	x0, LBB0_5
; %bb.1:
	mov	w0, #1
	bl	_sleep
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_tcflush
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #5
	bl	_write
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_gobble
	cmp	w0, #48
	b.eq	LBB0_4
; %bb.2:
	and	w8, w0, #0xff
	cmp	w8, #51
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_4:
	mov	w0, #1
	bl	_sleep
	ldr	w0, [x19]
Lloh12:
	adrp	x8, _FIONREAD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FIONREAD@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_ioctl
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #5
	bl	_write
	mov	w0, #1
	bl	_sleep
LBB0_5:
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_tcflush
	ldr	w0, [x19]
Lloh17:
	adrp	x8, _TIOCCDTR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TIOCCDTR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_ioctl
	ldr	w0, [x19]
	bl	_close
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_FD,4,2                         ; @FD
	.comm	_TCIOFLUSH,4,2                  ; @TCIOFLUSH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ATH0\r"

l_.str.1:                               ; @.str.1
	.asciz	"03"

l_.str.2:                               ; @.str.2
	.asciz	"cannot hang up modem\n\r"

l_.str.3:                               ; @.str.3
	.asciz	"please use 'tip dialer' to make sure the line is hung up\n\r"

	.comm	_FIONREAD,4,2                   ; @FIONREAD
l_.str.4:                               ; @.str.4
	.asciz	"ATv1\r"

	.comm	_TIOCCDTR,4,2                   ; @TIOCCDTR
	.comm	_DUMBUFLEN,4,2                  ; @DUMBUFLEN
	.comm	_dumbuf,8,3                     ; @dumbuf
	.comm	_rlen,8,3                       ; @rlen
	.no_dead_strip	_goodbye
.subsections_via_symbols
