	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function close_ports
_close_ports:                           ## @close_ports
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_mips_is_open@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_mips_desc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_serial_close
	movq	_udp_in_use@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_udp_desc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_serial_close
	movq	$0, (%rbx)
LBB0_2:
	movq	_tftp_in_use@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mips_is_open,8,3               ## @mips_is_open
	.comm	_mips_desc,4,2                  ## @mips_desc
	.comm	_udp_in_use,8,3                 ## @udp_in_use
	.comm	_udp_desc,4,2                   ## @udp_desc
	.comm	_tftp_in_use,8,3                ## @tftp_in_use
	.no_dead_strip	_close_ports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function close_ports
_close_ports:                           ; @close_ports
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _mips_is_open@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mips_is_open@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x8, _mips_desc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mips_desc@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_serial_close
Lloh6:
	adrp	x19, _udp_in_use@GOTPAGE
Lloh7:
	ldr	x19, [x19, _udp_in_use@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _udp_desc@GOTPAGE
Lloh9:
	ldr	x8, [x8, _udp_desc@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_serial_close
	str	xzr, [x19]
LBB0_2:
Lloh11:
	adrp	x8, _tftp_in_use@GOTPAGE
Lloh12:
	ldr	x8, [x8, _tftp_in_use@GOTPAGEOFF]
Lloh13:
	str	xzr, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_mips_is_open,8,3               ; @mips_is_open
	.comm	_mips_desc,4,2                  ; @mips_desc
	.comm	_udp_in_use,8,3                 ; @udp_in_use
	.comm	_udp_desc,4,2                   ; @udp_desc
	.comm	_tftp_in_use,8,3                ; @tftp_in_use
	.no_dead_strip	_close_ports
.subsections_via_symbols
