	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function showports
_showports:                             ## @showports
	.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	_nports@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	movq	_ports@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%r13d, %r13d
	leaq	L_.str.3(%rip), %r15
	leaq	L_.str.2(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	cmoveq	%r12, %rbx
	movq	%r14, %rdi
	cmoveq	%r15, %rdi
	movl	(%rbx), %esi
	callq	_printw
	movq	_nports@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$3, %rax
	movq	_ports@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	addq	$8, %r12
	cmpq	%rax, %r12
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_protos@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TCP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_UDP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	cmpl	%ecx, %eax
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str(%rip), %rcx
	cmoveq	%rcx, %rsi
	movl	(%r12), %edi
	cmpl	%edx, %eax
	cmoveq	%r13, %rsi
	callq	_getservbyport
	movq	%rax, %rbx
	cmpl	$0, 4(%r12)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$33, %edi
	callq	_addch
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ports,8,3                      ## @ports
	.comm	_nports,4,2                     ## @nports
	.comm	_protos,4,2                     ## @protos
	.comm	_TCP,4,2                        ## @TCP
	.comm	_UDP,4,2                        ## @UDP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp"

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

L_.str.2:                               ## @.str.2
	.asciz	"%s "

L_.str.3:                               ## @.str.3
	.asciz	"%d "

	.no_dead_strip	_showports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function showports
_showports:                             ; @showports
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _nports@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nports@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
Lloh3:
	adrp	x21, _ports@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ports@GOTPAGEOFF]
Lloh5:
	adrp	x22, _protos@GOTPAGE
Lloh6:
	ldr	x22, [x22, _protos@GOTPAGEOFF]
Lloh7:
	adrp	x23, _TCP@GOTPAGE
Lloh8:
	ldr	x23, [x23, _TCP@GOTPAGEOFF]
Lloh9:
	adrp	x24, _UDP@GOTPAGE
Lloh10:
	ldr	x24, [x24, _UDP@GOTPAGEOFF]
	ldr	x25, [x21]
Lloh11:
	adrp	x26, l_.str.1@PAGE
Lloh12:
	add	x26, x26, l_.str.1@PAGEOFF
Lloh13:
	adrp	x27, l_.str@PAGE
Lloh14:
	add	x27, x27, l_.str@PAGEOFF
Lloh15:
	adrp	x28, l_.str.2@PAGE
Lloh16:
	add	x28, x28, l_.str.2@PAGEOFF
Lloh17:
	adrp	x20, l_.str.3@PAGE
Lloh18:
	add	x20, x20, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x19, #0
	csel	x8, x25, x19, eq
	csel	x0, x20, x28, eq
	ldr	w1, [x8]
	bl	_printw
	ldr	x8, [x21]
Lloh19:
	adrp	x9, _nports@GOTPAGE
Lloh20:
	ldr	x9, [x9, _nports@GOTPAGEOFF]
Lloh21:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #3
	add	x25, x25, #8
	cmp	x25, x8
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	ldr	w8, [x22]
	ldr	w9, [x23]
	ldr	w10, [x24]
	orr	w10, w10, w9
	cmp	w8, w9
	csel	x9, x27, x26, eq
	cmp	w8, w10
	csel	x1, xzr, x9, eq
	bl	_getservbyport
	mov	x19, x0
	ldr	w8, [x25, #4]
	cbnz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #33
	bl	_addch
	b	LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ports,8,3                      ; @ports
	.comm	_nports,4,2                     ; @nports
	.comm	_protos,4,2                     ; @protos
	.comm	_TCP,4,2                        ; @TCP
	.comm	_UDP,4,2                        ; @UDP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp"

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

l_.str.2:                               ; @.str.2
	.asciz	"%s "

l_.str.3:                               ; @.str.3
	.asciz	"%d "

	.no_dead_strip	_showports
.subsections_via_symbols
