	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip_vs_edit_service
_ip_vs_edit_service:                    ## @ip_vs_edit_service
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	32(%rsi), %rdi
	callq	_ip_vs_scheduler_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.7:
	cmpq	$0, (%rdi)
	je	LBB0_3
## %bb.8:
	callq	_ip_vs_pe_getbyname
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.9:
	movq	24(%rbx), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_16
LBB0_1:
	movq	32(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_17
LBB0_3:
	xorl	%r14d, %r14d
LBB0_4:
	movq	___ip_vs_svc_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock_bh
	leaq	32(%r13), %rdi
	callq	_atomic_read
	xorl	%edi, %edi
	cmpl	$2, %eax
	setge	%dil
	callq	_IP_VS_WAIT_WHILE
	movq	_IP_VS_SVC_F_HASHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	12(%rbx), %eax
	movl	%eax, (%r13)
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	16(%rbx), %eax
	movl	%eax, 4(%r13)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r13)
	movq	24(%r13), %rbx
	cmpq	%rbx, %r15
	je	LBB0_12
## %bb.5:
	movq	%r13, %rdi
	callq	_ip_vs_unbind_scheduler
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movl	%eax, %r12d
	jmp	LBB0_15
LBB0_10:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ip_vs_bind_scheduler
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r12d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ip_vs_bind_scheduler
	jmp	LBB0_15
LBB0_12:
	movq	16(%r13), %rax
	xorl	%r12d, %r12d
	cmpq	%rax, %r14
	je	LBB0_13
## %bb.14:
	movq	%r13, %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_ip_vs_unbind_pe
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ip_vs_bind_pe
	movq	%rbx, %r15
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_13:
	movq	%rbx, %r15
LBB0_15:
	movq	___ip_vs_svc_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_bh
LBB0_16:
	movq	%r15, %rdi
	callq	_ip_vs_scheduler_put
	movq	%r14, %rdi
	callq	_ip_vs_pe_put
LBB0_17:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Scheduler module ip_vs_%s not found\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"persistence engine module ip_vs_pe_%s not found\n"

	.comm	___ip_vs_svc_lock,4,2           ## @__ip_vs_svc_lock
	.comm	_IP_VS_SVC_F_HASHED,4,2         ## @IP_VS_SVC_F_HASHED
	.comm	_HZ,4,2                         ## @HZ
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ip_vs_edit_service
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip_vs_edit_service
_ip_vs_edit_service:                    ; @ip_vs_edit_service
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x21, x0
	ldr	x0, [x1, #32]
	bl	_ip_vs_scheduler_get
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x0, [x22, #24]
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.3:
	bl	_ip_vs_pe_getbyname
	mov	x20, x0
	cbnz	x0, LBB0_7
; %bb.4:
	ldr	x1, [x22, #24]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_5:
	ldr	x1, [x22, #32]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh7:
	adrp	x8, _ENOENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
LBB0_6:
	mov	x20, #0
LBB0_7:
Lloh10:
	adrp	x0, ___ip_vs_svc_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, ___ip_vs_svc_lock@GOTPAGEOFF]
	bl	_write_lock_bh
	add	x0, x21, #32
	bl	_atomic_read
	cmp	w0, #1
	cset	w0, gt
	bl	_IP_VS_WAIT_WHILE
Lloh12:
	adrp	x8, _IP_VS_SVC_F_HASHED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IP_VS_SVC_F_HASHED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldp	w10, w9, [x22, #8]
	orr	w8, w8, w9
	str	w8, [x21]
	ldr	w8, [x22, #16]
Lloh15:
	adrp	x9, _HZ@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	mul	w8, w9, w8
	stp	w8, w10, [x21, #4]
	ldr	x23, [x21, #24]
	cmp	x19, x23
	b.eq	LBB0_12
; %bb.8:
	mov	x0, x21
	bl	_ip_vs_unbind_scheduler
	cbz	w0, LBB0_10
; %bb.9:
	mov	x22, x0
	b	LBB0_15
LBB0_10:
	mov	x0, x21
	mov	x1, x19
	bl	_ip_vs_bind_scheduler
	cbz	w0, LBB0_12
; %bb.11:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x23
	bl	_ip_vs_bind_scheduler
	b	LBB0_15
LBB0_12:
	ldr	x24, [x21, #16]
	cmp	x20, x24
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x21
	bl	_ip_vs_unbind_pe
	mov	x0, x21
	mov	x1, x20
	bl	_ip_vs_bind_pe
	mov	w22, #0
	mov	x19, x23
	mov	x20, x24
	b	LBB0_15
LBB0_14:
	mov	w22, #0
	mov	x19, x23
LBB0_15:
Lloh18:
	adrp	x0, ___ip_vs_svc_lock@GOTPAGE
Lloh19:
	ldr	x0, [x0, ___ip_vs_svc_lock@GOTPAGEOFF]
	bl	_write_unlock_bh
LBB0_16:
	mov	x0, x19
	bl	_ip_vs_scheduler_put
	mov	x0, x20
	bl	_ip_vs_pe_put
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Scheduler module ip_vs_%s not found\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"persistence engine module ip_vs_pe_%s not found\n"

	.comm	___ip_vs_svc_lock,4,2           ; @__ip_vs_svc_lock
	.comm	_IP_VS_SVC_F_HASHED,4,2         ; @IP_VS_SVC_F_HASHED
	.comm	_HZ,4,2                         ; @HZ
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ip_vs_edit_service
.subsections_via_symbols
