	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function doit
_doit:                                  ## @doit
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	32(%rbp), %r14d
	testq	%r8, %r8
	je	LBB0_3
## %bb.1:
	movq	%r9, %r15
	movq	%r8, %rbx
	movq	%rsi, %r12
	movl	%edi, %r13d
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
LBB0_2:
	movl	%r13d, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_inet_ntop
	testq	%rax, %rax
	je	LBB0_13
LBB0_3:
	movq	16(%rbp), %r15
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_17
## %bb.4:
	movq	24(%rbp), %r12
	movq	_NI_NUMERICSERV@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.5:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
LBB0_6:
	callq	_ntohs
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %ecx
	callq	_snprintf
	jmp	LBB0_17
LBB0_7:
	movq	%r12, %rdi
	movq	%rdx, %rsi
	movl	%r13d, %edx
	callq	_gethostbyaddr
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	%rax, %rdi
	callq	_hostent_find_fqdn
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_strlcpy
	movq	_NI_NOFQDN@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.9:
	movq	%rbx, %rdi
	movl	$46, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	movb	$0, (%rax)
	jmp	LBB0_3
LBB0_11:
	movq	_NI_DGRAM@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_getservbyport
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_strlcpy
	jmp	LBB0_17
LBB0_13:
	movq	_EAI_SYSTEM@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_NI_NAMEREQD@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.15:
	movq	_EAI_NONAME@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	%r14d, %edi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_NI_NUMERICHOST,4,2             ## @NI_NUMERICHOST
	.comm	_EAI_SYSTEM,4,2                 ## @EAI_SYSTEM
	.comm	_NI_NOFQDN,4,2                  ## @NI_NOFQDN
	.comm	_NI_NAMEREQD,4,2                ## @NI_NAMEREQD
	.comm	_EAI_NONAME,4,2                 ## @EAI_NONAME
	.comm	_NI_NUMERICSERV,4,2             ## @NI_NUMERICSERV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u"

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

	.comm	_NI_DGRAM,4,2                   ## @NI_DGRAM
L_.str.2:                               ## @.str.2
	.asciz	"udp"

	.no_dead_strip	_doit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function doit
_doit:                                  ; @doit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x7
	mov	x20, x6
	mov	x21, x3
	ldr	w26, [x29, #16]
	cbz	x4, LBB0_3
; %bb.1:
	mov	x23, x5
	mov	x22, x4
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x8, _NI_NUMERICHOST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NI_NUMERICHOST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_6
LBB0_2:
	mov	x0, x25
	mov	x1, x24
	mov	x2, x22
	mov	x3, x23
	bl	_inet_ntop
	cbz	x0, LBB0_14
LBB0_3:
	cbz	x20, LBB0_12
; %bb.4:
Lloh3:
	adrp	x8, _NI_NUMERICSERV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NI_NUMERICSERV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_10
LBB0_5:
	mov	x0, x21
	bl	_ntohs
	mov	x3, x0
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_snprintf
	b	LBB0_12
LBB0_6:
	mov	x0, x24
	mov	x1, x2
	mov	x2, x25
	bl	_gethostbyaddr
	cbz	x0, LBB0_15
; %bb.7:
	bl	_hostent_find_fqdn
	mov	x1, x0
	mov	x0, x22
	mov	x2, x23
	bl	_strlcpy
Lloh8:
	adrp	x8, _NI_NOFQDN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NI_NOFQDN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_3
; %bb.8:
	mov	x0, x22
	mov	w1, #46
	bl	_strchr
	cbz	x0, LBB0_3
; %bb.9:
	strb	wzr, [x0]
	b	LBB0_3
LBB0_10:
Lloh11:
	adrp	x8, _NI_DGRAM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NI_DGRAM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, l_.str.2@PAGE
Lloh15:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh16:
	adrp	x10, l_.str.1@PAGE
Lloh17:
	add	x10, x10, l_.str.1@PAGEOFF
	tst	w8, w26
	csel	x1, x10, x9, eq
	mov	x0, x21
	bl	_getservbyport
	cbz	x0, LBB0_5
; %bb.11:
	ldr	w1, [x0]
	mov	x0, x20
	mov	x2, x19
	bl	_strlcpy
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh18:
	adrp	x8, _EAI_SYSTEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EAI_SYSTEM@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_15:
Lloh21:
	adrp	x8, _NI_NAMEREQD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NI_NAMEREQD@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_2
; %bb.16:
Lloh24:
	adrp	x8, _EAI_NONAME@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EAI_NONAME@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_NI_NUMERICHOST,4,2             ; @NI_NUMERICHOST
	.comm	_EAI_SYSTEM,4,2                 ; @EAI_SYSTEM
	.comm	_NI_NOFQDN,4,2                  ; @NI_NOFQDN
	.comm	_NI_NAMEREQD,4,2                ; @NI_NAMEREQD
	.comm	_EAI_NONAME,4,2                 ; @EAI_NONAME
	.comm	_NI_NUMERICSERV,4,2             ; @NI_NUMERICSERV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u"

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

	.comm	_NI_DGRAM,4,2                   ; @NI_DGRAM
l_.str.2:                               ; @.str.2
	.asciz	"udp"

	.no_dead_strip	_doit
.subsections_via_symbols
