	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LSAPI_ParseSockAddr            ## -- Begin function LSAPI_ParseSockAddr
	.p2align	4, 0x90
_LSAPI_ParseSockAddr:                   ## @LSAPI_ParseSockAddr
	.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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$-1, %r12d
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	decq	%rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	1(%rbx), %edi
	incq	%rbx
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	leaq	-304(%rbp), %r13
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$256, %edx                      ## imm = 0x100
	callq	_strncpy
	movsbl	-304(%rbp), %eax
	cmpl	$91, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$47, %eax
	jne	LBB0_10
## %bb.5:
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, (%r14)
	leaq	-304(%rbp), %rsi
	movl	$8, %edx
	callq	_strncpy
	jmp	LBB0_22
LBB0_6:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	leaq	-303(%rbp), %r15
	movq	%r15, %rdi
	movl	$93, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_23
## %bb.7:
	movq	%rax, %rbx
	movb	$0, (%rax)
	cmpb	$42, -303(%rbp)
	jne	LBB0_8
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcpy
	movq	%r13, %r15
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_10:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	leaq	-304(%rbp), %r15
	movq	%r15, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_23
## %bb.11:
	movq	%rax, %rbx
	movb	$0, (%rax)
	cmpb	$42, -304(%rbp)
	jne	LBB0_14
## %bb.12:
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	leaq	-304(%rbp), %r15
	movq	%r15, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movq	%r15, %rdi
	callq	_inet_addr
	movq	%rax, 8(%r14)
	movq	_INADDR_BROADCAST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%r13b
	jmp	LBB0_17
LBB0_15:
	movq	_INADDR_LOOPBACK@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, 8(%r14)
	movb	$1, %r13b
LBB0_17:
	leaq	1(%rbx), %rdi
	leaq	2(%rbx), %rax
	cmpb	$58, 1(%rbx)
	cmoveq	%rax, %rdi
	callq	_atoi
	movl	%eax, %ebx
	leal	-65536(%rbx), %eax
	cmpl	$-65535, %eax                   ## imm = 0xFFFF0001
	jb	LBB0_23
## %bb.18:
	testb	%r13b, %r13b
	jne	LBB0_21
## %bb.19:
	leaq	-336(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	(%r14), %rax
	movq	%rax, -336(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -316(%rbp)
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -320(%rbp)
	leaq	-312(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_getaddrinfo
	testq	%rax, %rax
	jne	LBB0_23
## %bb.20:
	movq	-312(%rbp), %rax
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	movq	%r14, %rdi
	callq	_memcpy
	movq	-312(%rbp), %rdi
	callq	_freeaddrinfo
LBB0_21:
	movl	%ebx, %edi
	callq	_htons
	movq	%rax, (%r14)
LBB0_22:
	xorl	%r12d, %r12d
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	movl	%r12d, %eax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNIX,8,3                    ## @AF_UNIX
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"::"

	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
L_.str.1:                               ## @.str.1
	.asciz	"localhost"

	.comm	_INADDR_LOOPBACK,4,2            ## @INADDR_LOOPBACK
	.comm	_INADDR_BROADCAST,8,3           ## @INADDR_BROADCAST
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LSAPI_ParseSockAddr            ; -- Begin function LSAPI_ParseSockAddr
	.p2align	2
_LSAPI_ParseSockAddr:                   ; @LSAPI_ParseSockAddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x28, x27, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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 w27, -56
	.cfi_offset w28, -64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cbz	x0, LBB0_20
; %bb.1:
	mov	x19, x1
	sub	x20, x0, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20, #1]!
	bl	_isspace
	cbnz	x0, LBB0_2
; %bb.3:
	add	x21, sp, #40
	add	x0, sp, #40
	mov	x1, x20
	mov	w2, #256
	bl	_strncpy
	ldrsb	w8, [sp, #40]
	cmp	w8, #91
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #47
	b.ne	LBB0_9
; %bb.5:
Lloh3:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	str	x0, [x19]
	add	x1, sp, #40
	mov	w2, #8
	bl	_strncpy
	mov	w0, #0
	b	LBB0_21
LBB0_6:
Lloh6:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19]
	add	x20, x21, #1
	mov	x0, x20
	mov	w1, #93
	bl	_strchr
	cbz	x0, LBB0_20
; %bb.7:
	mov	x21, x0
	strb	wzr, [x0]
	ldrb	w8, [sp, #41]
	cmp	w8, #42
	b.ne	LBB0_12
; %bb.8:
	add	x20, sp, #40
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #40
	bl	_strcpy
	mov	w22, #0
	b	LBB0_17
LBB0_9:
Lloh11:
	adrp	x8, _AF_INET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19]
	add	x0, sp, #40
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_20
; %bb.10:
	mov	x21, x0
	strb	wzr, [x0]
	ldrb	w8, [sp, #40]
	cmp	w8, #42
	b.ne	LBB0_13
; %bb.11:
	add	x20, sp, #40
Lloh14:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
	mov	w22, #0
	b	LBB0_17
LBB0_13:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #40
	bl	_strcasecmp
	add	x20, sp, #40
	cbz	w0, LBB0_15
; %bb.14:
	add	x0, sp, #40
	bl	_inet_addr
	str	x0, [x19, #8]
Lloh18:
	adrp	x8, _INADDR_BROADCAST@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INADDR_BROADCAST@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w22, ne
	b	LBB0_17
LBB0_15:
Lloh21:
	adrp	x8, _INADDR_LOOPBACK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _INADDR_LOOPBACK@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [x19, #8]
	mov	w22, #1
LBB0_17:
	ldrb	w8, [x21, #1]!
	cmp	w8, #58
	cinc	x0, x21, eq
	bl	_atoi
	sub	w8, w0, #16, lsl #12            ; =65536
	mov	w9, #-65535
	cmp	w8, w9
	b.lo	LBB0_20
; %bb.18:
	mov	x21, x0
	tbnz	w22, #0, LBB0_24
; %bb.19:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x8, [x19]
	str	x8, [sp, #8]
Lloh23:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	add	x2, sp, #8
	add	x3, sp, #32
	mov	x0, x20
	mov	x1, #0
	bl	_getaddrinfo
	cbz	x0, LBB0_23
LBB0_20:
	mov	w0, #-1
LBB0_21:
	ldur	x8, [x29, #-56]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.22:
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_23:
	ldr	x8, [sp, #32]
	ldp	w2, w1, [x8, #8]
	mov	x0, x19
	bl	_memcpy
	ldr	x0, [sp, #32]
	bl	_freeaddrinfo
LBB0_24:
	mov	x0, x21
	bl	_htons
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_21
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNIX,8,3                    ; @AF_UNIX
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"::"

	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
l_.str.1:                               ; @.str.1
	.asciz	"localhost"

	.comm	_INADDR_LOOPBACK,4,2            ; @INADDR_LOOPBACK
	.comm	_INADDR_BROADCAST,8,3           ; @INADDR_BROADCAST
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
.subsections_via_symbols
