	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_print_port                     ## -- Begin function print_port
	.p2align	4, 0x90
_print_port:                            ## @print_port
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	testl	%r8d, %r8d
	je	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_2:
	movl	%ebx, %edi
	movq	%rcx, %rsi
	callq	_getservbyport
	movq	%rax, %r14
LBB0_3:
	movl	%ebx, %edi
	callq	_ntohs
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_ntohs
	movl	%eax, %r12d
	leaq	L_.str(%rip), %r13
	leaq	-52(%rbp), %rdi
	movl	$6, %esi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	leaq	-46(%rbp), %rdi
	movl	$6, %esi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	callq	_snprintf
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	testq	%r14, %r14
	je	LBB0_7
## %bb.4:
	movq	_PF_OP_EQ@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_PF_OP_NE@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_6
LBB0_7:
	leaq	-52(%rbp), %rsi
	jmp	LBB0_8
LBB0_6:
	movq	(%r14), %rsi
LBB0_8:
	leaq	-46(%rbp), %rdx
	movq	%r15, %rdi
	callq	_print_op
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u"

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

	.comm	_PF_OP_EQ,8,3                   ## @PF_OP_EQ
	.comm	_PF_OP_NE,8,3                   ## @PF_OP_NE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_print_port                     ; -- Begin function print_port
	.p2align	2
_print_port:                            ; @print_port
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	cbz	w4, LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x22
	mov	x1, x3
	bl	_getservbyport
	mov	x20, x0
LBB0_3:
	mov	x0, x22
	bl	_ntohs
	mov	x22, x0
	mov	x0, x21
	bl	_ntohs
	mov	x21, x0
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
	add	x0, sp, #10
	mov	w1, #6
	mov	x2, x23
	mov	x3, x22
	bl	_snprintf
	add	x0, sp, #4
	mov	w1, #6
	mov	x2, x23
	mov	x3, x21
	bl	_snprintf
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	cbz	x20, LBB0_6
; %bb.4:
Lloh4:
	adrp	x8, _PF_OP_EQ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PF_OP_EQ@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _PF_OP_NE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PF_OP_NE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x19
	ccmp	x9, x19, #4, ne
	b.ne	LBB0_6
; %bb.5:
	ldr	x1, [x20]
	b	LBB0_7
LBB0_6:
	add	x1, sp, #10
LBB0_7:
	add	x2, sp, #4
	mov	x0, x19
	bl	_print_op
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u"

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

	.comm	_PF_OP_EQ,8,3                   ; @PF_OP_EQ
	.comm	_PF_OP_NE,8,3                   ; @PF_OP_NE
.subsections_via_symbols
