	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svc_fd_create                  ## -- Begin function svc_fd_create
	.p2align	4, 0x90
_svc_fd_create:                         ## @svc_fd_create
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movl	%edi, %r12d
	xorl	%edi, %edi
	cmpl	$-1, %r12d
	setne	%dil
	callq	_assert
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_makefd_xprt
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movl	$16, -36(%rbp)
	leaq	-56(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movl	%r12d, %edi
	callq	__getsockname
	testq	%rax, %rax
	js	LBB0_2
## %bb.6:
	movq	-48(%rbp), %rdi
	movq	%rdi, 16(%r14)
	movq	%rdi, 24(%r14)
	callq	_mem_alloc
	movq	%rax, 8(%r14)
	leaq	L_.str.1(%rip), %r15
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	movl	$16, -36(%rbp)
	leaq	-36(%rbp), %rdx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	__getpeername
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	movq	-48(%rbp), %rdi
	movq	%rdi, 40(%r14)
	movq	%rdi, 48(%r14)
	callq	_mem_alloc
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	movq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rsi
	movq	%rax, %rdi
	callq	_memcpy
	jmp	LBB0_11
LBB0_2:
	leaq	L_.str(%rip), %r15
	jmp	LBB0_3
LBB0_8:
	leaq	L_.str.2(%rip), %r15
LBB0_3:
	movq	%r15, %rdi
	callq	_warnx
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	movq	_rep@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_mem_free
LBB0_5:
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r14, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"svc_fd_create: could not retrieve local addr"

L_.str.1:                               ## @.str.1
	.asciz	"svc_fd_create: no mem for local addr"

L_.str.2:                               ## @.str.2
	.asciz	"svc_fd_create: could not retrieve remote addr"

	.comm	_rep,8,3                        ## @rep
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_LOCAL,8,3                   ## @AF_LOCAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svc_fd_create                  ; -- Begin function svc_fd_create
	.p2align	2
_svc_fd_create:                         ; @svc_fd_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	cmn	w0, #1
	cset	w0, ne
	bl	_assert
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_makefd_xprt
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.1:
	mov	w8, #16
	str	w8, [sp, #12]
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x0, x20
	bl	__getsockname
	tbnz	x0, #63, LBB0_6
; %bb.2:
	ldr	x0, [sp, #24]
	stp	x0, x0, [x19, #16]
	bl	_mem_alloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x2, [sp, #24]
	add	x1, sp, #16
	bl	_memcpy
	mov	w8, #16
	str	w8, [sp, #12]
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x0, x20
	bl	__getpeername
	tbnz	x0, #63, LBB0_8
; %bb.4:
	ldr	x0, [sp, #24]
	stp	x0, x0, [x19, #40]
	bl	_mem_alloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x2, [sp, #24]
	add	x1, sp, #16
	bl	_memcpy
	b	LBB0_12
LBB0_6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_9:
	bl	_warnx
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.10:
Lloh6:
	adrp	x8, _rep@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rep@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_mem_free
LBB0_11:
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"svc_fd_create: could not retrieve local addr"

l_.str.1:                               ; @.str.1
	.asciz	"svc_fd_create: no mem for local addr"

l_.str.2:                               ; @.str.2
	.asciz	"svc_fd_create: could not retrieve remote addr"

	.comm	_rep,8,3                        ; @rep
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_LOCAL,8,3                   ; @AF_LOCAL
.subsections_via_symbols
