	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svc_reg                        ## -- Begin function svc_reg
	.p2align	4, 0x90
_svc_reg:                               ## @svc_reg
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_5
LBB0_1:
	callq	_strdup
	movq	%rax, %r15
LBB0_2:
	movb	$1, %al
	testq	%r15, %r15
	je	LBB0_19
LBB0_3:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	_svc_lock@GOTPCREL(%rip), %rdi
	callq	_rwlock_wrlock
	leaq	-88(%rbp), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %r14d
	movl	%r12d, %esi
	movq	%r15, %rcx
	callq	_svc_find
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_free
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, (%rbx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_18
	jmp	LBB0_14
LBB0_5:
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	jne	LBB0_1
LBB0_7:
	movl	12(%r13), %edi
	callq	___rpcgettp
	testq	%rax, %rax
	je	LBB0_22
## %bb.8:
	movq	(%rax), %rdi
	movq	%rax, %rbx
	callq	_strdup
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_freenetconfigent
	jmp	LBB0_2
LBB0_10:
	movl	$32, %edi
	callq	_mem_alloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 28(%rax)
	movl	%r14d, 24(%rax)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	%r15, 8(%rax)
	movq	_svc_head@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, 16(%rax)
	movq	%rax, (%rcx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, (%rbx)
	setne	%al
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	xorb	$1, %cl
	orb	%al, %cl
	jne	LBB0_14
## %bb.12:
	testq	%r15, %r15
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_strdup
	movq	%rax, (%rbx)
LBB0_14:
	movq	_svc_lock@GOTPCREL(%rip), %rdi
	callq	_rwlock_unlock
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.15:
	addq	$8, %rbx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movq	%rbx, %rcx
	callq	_rpcb_set
	jmp	LBB0_21
LBB0_16:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_17:
	movq	%r15, %rdi
	callq	_free
LBB0_18:
	movq	_svc_lock@GOTPCREL(%rip), %rdi
	callq	_rwlock_unlock
LBB0_19:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
LBB0_21:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_svc_lock,4,2                   ## @svc_lock
	.comm	_svc_head,8,3                   ## @svc_head
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svc_reg                        ; -- Begin function svc_reg
	.p2align	2
_svc_reg:                               ; @svc_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_5
LBB0_1:
	bl	_strdup
	mov	x24, x0
	cbz	x24, LBB0_18
LBB0_2:
	mov	w26, #1
LBB0_3:
Lloh0:
	adrp	x0, _svc_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _svc_lock@GOTPAGEOFF]
	bl	_rwlock_wrlock
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x3, x24
	bl	_svc_find
	cbz	x0, LBB0_9
; %bb.4:
	mov	x25, x0
	mov	x0, x24
	bl	_free
	ldr	x8, [x25]
	cmp	x8, x23
	b.ne	LBB0_17
	b	LBB0_13
LBB0_5:
	cbz	x19, LBB0_7
; %bb.6:
	ldr	x0, [x19]
	cbnz	x0, LBB0_1
LBB0_7:
	ldr	w0, [x22, #12]
	bl	___rpcgettp
	cbz	x0, LBB0_21
; %bb.8:
	mov	x25, x0
	ldr	x0, [x0]
	bl	_strdup
	mov	x24, x0
	mov	x0, x25
	bl	_freenetconfigent
	cbnz	x24, LBB0_2
	b	LBB0_18
LBB0_9:
	mov	w0, #32
	bl	_mem_alloc
	cbz	x0, LBB0_16
; %bb.10:
	stp	w20, w21, [x0, #24]
	stp	x23, x24, [x0]
Lloh2:
	adrp	x8, _svc_head@GOTPAGE
Lloh3:
	ldr	x8, [x8, _svc_head@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x0, #16]
	str	x0, [x8]
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w8, ne
	eor	w9, w26, #0x1
	orr	w8, w9, w8
	tbnz	w8, #0, LBB0_13
; %bb.11:
	cbz	x24, LBB0_13
; %bb.12:
	mov	x0, x24
	bl	_strdup
	str	x0, [x22]
LBB0_13:
Lloh4:
	adrp	x0, _svc_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _svc_lock@GOTPAGEOFF]
	bl	_rwlock_unlock
	cbz	x19, LBB0_15
; %bb.14:
	add	x3, x22, #8
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_rpcb_set
	b	LBB0_20
LBB0_15:
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_19
LBB0_16:
	mov	x0, x24
	bl	_free
LBB0_17:
Lloh8:
	adrp	x0, _svc_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _svc_lock@GOTPAGEOFF]
	bl	_rwlock_unlock
LBB0_18:
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_21:
	mov	w26, #0
	mov	x24, #0
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_svc_lock,4,2                   ; @svc_lock
	.comm	_svc_head,8,3                   ; @svc_head
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
