	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sock_getascii_addrport         ## -- Begin function sock_getascii_addrport
	.p2align	4, 0x90
_sock_getascii_addrport:                ## @sock_getascii_addrport
	.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	%r9d, %r15d
	movl	%r8d, %ebx
	movq	%rcx, %r12
	movl	%edx, %r8d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rax
	testl	%r9d, (%rax)
	jne	LBB0_5
## %bb.1:
	movq	(%r13), %rax
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	leaq	l_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	$4, %edx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ebx
	callq	_memcmp
	movl	%ebx, %r8d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	movl	%r15d, (%rsp)
	movq	%r13, %rdi
	movl	$8, %esi
	movq	%r14, %rdx
	movl	%r8d, %r13d
	movl	%r8d, %ecx
	movq	%r12, %r8
	movl	%ebx, %r15d
	movl	%ebx, %r9d
	callq	_getnameinfo
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	16(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movl	24(%rbp), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_sock_geterror
	movslq	24(%rbp), %rax
	movb	$0, -1(%rax,%rbx)
LBB0_9:
	testq	%r14, %r14
	je	LBB0_11
## %bb.10:
	movq	_SOCKET_NO_NAME_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_strlcpy
	movslq	%r13d, %rax
	movb	$0, -1(%rax,%r14)
LBB0_11:
	xorl	%r13d, %r13d
	testq	%r12, %r12
	je	LBB0_13
## %bb.12:
	movq	_SOCKET_NO_PORT_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %ebx
	movl	%r15d, %edx
	callq	_strlcpy
	movslq	%r15d, %rax
	movb	$0, -1(%rax,%r12)
	jmp	LBB0_13
LBB0_6:
	movl	$-1, %r13d
LBB0_13:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$-1, %r13d
	testq	%r14, %r14
	je	LBB0_13
## %bb.4:
	movq	_SOCKET_NAME_NULL_DAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r8d, %edx
	callq	_strlcpy
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_NI_NUMERICHOST,4,2             ## @NI_NUMERICHOST
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.section	__TEXT,__const
l_.str:                                 ## @.str
	.space	17

	.comm	_SOCKET_NAME_NULL_DAD,4,2       ## @SOCKET_NAME_NULL_DAD
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"getnameinfo(): "

	.comm	_SOCKET_NO_NAME_AVAILABLE,4,2   ## @SOCKET_NO_NAME_AVAILABLE
	.comm	_SOCKET_NO_PORT_AVAILABLE,4,2   ## @SOCKET_NO_PORT_AVAILABLE
	.comm	_AF_INET,8,3                    ## @AF_INET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sock_getascii_addrport         ; -- Begin function sock_getascii_addrport
	.p2align	2
_sock_getascii_addrport:                ; @sock_getascii_addrport
	.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	x23, x7
	mov	x24, x6
	mov	x25, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x26, x0
Lloh0:
	adrp	x8, _NI_NUMERICHOST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NI_NUMERICHOST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w5
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x26]
Lloh3:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x26
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_11
LBB0_3:
	mov	x0, x26
	mov	w1, #8
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	mov	x6, x25
	bl	_getnameinfo
	cbz	x0, LBB0_13
; %bb.4:
	cbz	x24, LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x24
	mov	x2, x23
	bl	_sock_geterror
	add	x8, x24, w23, sxtw
	sturb	wzr, [x8, #-1]
LBB0_6:
	cbz	x22, LBB0_8
; %bb.7:
Lloh10:
	adrp	x8, _SOCKET_NO_NAME_AVAILABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SOCKET_NO_NAME_AVAILABLE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x21
	bl	_strlcpy
	add	x8, x22, w21, sxtw
	sturb	wzr, [x8, #-1]
LBB0_8:
	cbz	x20, LBB0_10
; %bb.9:
Lloh13:
	adrp	x8, _SOCKET_NO_PORT_AVAILABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SOCKET_NO_PORT_AVAILABLE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_strlcpy
	mov	w0, #0
	add	x8, x20, w19, sxtw
	sturb	wzr, [x8, #-1]
	b	LBB0_14
LBB0_10:
	mov	w0, #0
	b	LBB0_14
LBB0_11:
	cbz	x22, LBB0_13
; %bb.12:
Lloh16:
	adrp	x8, _SOCKET_NAME_NULL_DAD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SOCKET_NAME_NULL_DAD@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x21
	bl	_strlcpy
LBB0_13:
	mov	w0, #-1
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_NI_NUMERICHOST,4,2             ; @NI_NUMERICHOST
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.section	__TEXT,__const
l_.str:                                 ; @.str
	.space	17

	.comm	_SOCKET_NAME_NULL_DAD,4,2       ; @SOCKET_NAME_NULL_DAD
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"getnameinfo(): "

	.comm	_SOCKET_NO_NAME_AVAILABLE,4,2   ; @SOCKET_NO_NAME_AVAILABLE
	.comm	_SOCKET_NO_PORT_AVAILABLE,4,2   ; @SOCKET_NO_PORT_AVAILABLE
	.comm	_AF_INET,8,3                    ; @AF_INET
.subsections_via_symbols
