	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xprt_register                  ## -- Begin function xprt_register
	.p2align	4, 0x90
_xprt_register:                         ## @xprt_register
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	movslq	(%r14), %rbx
	movq	_svc_fd_lock@GOTPCREL(%rip), %rdi
	callq	_rwlock_wrlock
	movq	___svc_xports@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jne	LBB0_3
## %bb.1:
	movq	_FD_SETSIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	leal	8(,%rax,8), %edi
	callq	_mem_alloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	(%r12), %ecx
	leal	8(,%rcx,8), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
LBB0_3:
	movq	_FD_SETSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jge	LBB0_5
## %bb.4:
	movq	(%r15), %rax
	movq	%r14, (%rax,%rbx,8)
	movq	_svc_fdset@GOTPCREL(%rip), %rsi
	movl	%ebx, %edi
	callq	_FD_SET
	movq	_svc_maxfd@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_max
	movl	%eax, (%r14)
	jmp	LBB0_7
LBB0_5:
	cmpl	%eax, %ebx
	jne	LBB0_7
## %bb.6:
	movq	(%r15), %rax
	movq	%r14, (%rax,%rbx,8)
LBB0_7:
	movq	_svc_fd_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rwlock_unlock                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_svc_fd_lock,4,2                ## @svc_fd_lock
	.comm	___svc_xports,8,3               ## @__svc_xports
	.comm	_FD_SETSIZE,4,2                 ## @FD_SETSIZE
	.comm	_svc_fdset,4,2                  ## @svc_fdset
	.comm	_svc_maxfd,4,2                  ## @svc_maxfd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xprt_register                  ; -- Begin function xprt_register
	.p2align	2
_xprt_register:                         ; @xprt_register
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldrsw	x19, [x20]
Lloh0:
	adrp	x0, _svc_fd_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _svc_fd_lock@GOTPAGEOFF]
	bl	_rwlock_wrlock
Lloh2:
	adrp	x21, ___svc_xports@GOTPAGE
Lloh3:
	ldr	x21, [x21, ___svc_xports@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh4:
	adrp	x22, _FD_SETSIZE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _FD_SETSIZE@GOTPAGEOFF]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x22]
	lsl	w8, w8, #3
	add	w0, w8, #8
	bl	_mem_alloc
	str	x0, [x21]
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w8, [x22]
	lsl	w8, w8, #3
	add	w2, w8, #8
	mov	w1, #0
	bl	_memset
LBB0_3:
	ldr	w8, [x22]
	cmp	w19, w8
	b.ge	LBB0_5
; %bb.4:
	ldr	x8, [x21]
	str	x20, [x8, x19, lsl #3]
Lloh6:
	adrp	x1, _svc_fdset@GOTPAGE
Lloh7:
	ldr	x1, [x1, _svc_fdset@GOTPAGEOFF]
	mov	x0, x19
	bl	_FD_SET
Lloh8:
	adrp	x20, _svc_maxfd@GOTPAGE
Lloh9:
	ldr	x20, [x20, _svc_maxfd@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	bl	_max
	str	w0, [x20]
	b	LBB0_7
LBB0_5:
	cmp	w19, w8
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x21]
	str	x20, [x8, x19, lsl #3]
LBB0_7:
Lloh10:
	adrp	x0, _svc_fd_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _svc_fd_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rwlock_unlock
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_svc_fd_lock,4,2                ; @svc_fd_lock
	.comm	___svc_xports,8,3               ; @__svc_xports
	.comm	_FD_SETSIZE,4,2                 ; @FD_SETSIZE
	.comm	_svc_fdset,4,2                  ; @svc_fdset
	.comm	_svc_maxfd,4,2                  ; @svc_maxfd
.subsections_via_symbols
