	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	movq	16(%r13), %r12
	testq	%rdi, %rdi
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
LBB0_4:
	movq	_M_RPC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, %r15
	movb	$1, %al
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
LBB0_1:
	testq	%r8, %r8
	je	LBB0_2
## %bb.3:
	movq	(%r8), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
LBB0_2:
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
LBB0_6:
	movq	%r12, %rdi
	callq	_mtx_lock
	movq	%r12, %rdi
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %edx
	movq	%r15, %rcx
	callq	_svc_find
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	%rax, %r14
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_9
## %bb.8:
	movq	_M_RPC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_free
LBB0_9:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, (%r14)
	je	LBB0_18
LBB0_10:
	movq	%r12, %rdi
	callq	_mtx_unlock
LBB0_11:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	jmp	LBB0_22
LBB0_12:
	movq	_M_RPC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 20(%rax)
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 16(%rax)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	%r15, 8(%rax)
	leaq	4(%r12), %rdi
	movq	_sc_link@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rsi
	callq	_TAILQ_INSERT_TAIL
	cmpq	$0, (%r13)
	setne	%al
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	xorb	$1, %cl
	orb	%al, %cl
	jne	LBB0_18
## %bb.16:
	testq	%r15, %r15
	je	LBB0_18
## %bb.17:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_strdup
	movq	%rax, (%r13)
LBB0_18:
	movq	%r12, %rdi
	callq	_mtx_unlock
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	leaq	8(%r13), %rax
	movq	%rax, -96(%rbp)
	movl	8(%r13), %eax
	movl	%eax, -104(%rbp)
	leaq	-88(%rbp), %rdx
	leaq	-104(%rbp), %rcx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_rpcb_set
LBB0_22:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_13:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_10
## %bb.14:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_M_RPC,4,2                      ## @M_RPC
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_sc_link,4,2                    ## @sc_link
	.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, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x4
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x21, [x0, #16]
	ldr	x0, [x0]
Lloh0:
	adrp	x28, _M_RPC@GOTPAGE
Lloh1:
	ldr	x28, [x28, _M_RPC@GOTPAGEOFF]
	cbz	x0, LBB0_3
LBB0_1:
	ldr	w1, [x28]
	bl	_strdup
	cbz	x0, LBB0_11
; %bb.2:
	mov	x25, x0
	mov	w27, #0
	mov	w8, #1
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	b	LBB0_6
LBB0_3:
	cbz	x23, LBB0_5
; %bb.4:
	ldr	x0, [x23]
	cbnz	x0, LBB0_1
LBB0_5:
	str	wzr, [sp, #4]                   ; 4-byte Folded Spill
	mov	x25, #0
	mov	w27, #1
LBB0_6:
	mov	x0, x21
	bl	_mtx_lock
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x25
	bl	_svc_find
	cbz	x0, LBB0_13
; %bb.7:
	mov	x26, x0
	tbnz	w27, #0, LBB0_9
; %bb.8:
	ldr	w1, [x28]
	mov	x0, x25
	bl	_free
LBB0_9:
	ldr	x8, [x26]
	cmp	x8, x24
	b.eq	LBB0_17
LBB0_10:
	mov	x0, x21
	bl	_mtx_unlock
LBB0_11:
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	b	LBB0_19
LBB0_13:
	ldr	w1, [x28]
Lloh4:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_21
; %bb.14:
	mov	x1, x0
	stp	w19, w20, [x0, #16]
	stp	x24, x25, [x0]
	add	x0, x21, #4
Lloh7:
	adrp	x8, _sc_link@GOTPAGE
Lloh8:
	ldr	x8, [x8, _sc_link@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_TAILQ_INSERT_TAIL
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w8, ne
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	eor	w9, w9, #0x1
	orr	w8, w9, w8
	tbnz	w8, #0, LBB0_17
; %bb.15:
	cbz	x25, LBB0_17
; %bb.16:
	ldr	w1, [x28]
	mov	x0, x25
	bl	_strdup
	str	x0, [x22]
LBB0_17:
	mov	x0, x21
	bl	_mtx_unlock
	cbz	x23, LBB0_20
; %bb.18:
	ldr	x9, [x23]
	ldr	w8, [x22, #8]!
	stp	x22, x9, [sp, #16]
	str	w8, [sp, #8]
	add	x2, sp, #24
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_rpcb_set
LBB0_19:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_20:
Lloh10:
	adrp	x8, _TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_12
LBB0_21:
	tbnz	w27, #0, LBB0_10
; %bb.22:
	ldr	w1, [x28]
	mov	x0, x25
	bl	_free
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_M_RPC,4,2                      ; @M_RPC
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_sc_link,4,2                    ; @sc_link
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
