	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip_vs_app_inc_new
_ip_vs_app_inc_new:                     ## @ip_vs_app_inc_new
	.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
	movl	%edx, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_ip_vs_proto_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	cmpl	$0, 12(%rax)
	je	LBB0_4
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	leaq	56(%rax), %rdi
	callq	_INIT_LIST_HEAD
	leaq	16(%r15), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, 48(%r15)
	movl	%ebx, %edi
	callq	_htons
	movl	%eax, 8(%r15)
	leaq	40(%r15), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.8:
	movl	24(%r14), %esi
	callq	_ip_vs_create_timeout_table
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_9
LBB0_10:
	movq	%r15, %rdi
	callq	*(%r12)
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	jmp	LBB0_12
LBB0_1:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r15, %rdi
	addq	$20, %rdi
	addq	$16, %r14
	movq	%r14, %rsi
	callq	_list_add
	movl	8(%r12), %edx
	movl	8(%r15), %r8d
	movl	12(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$9, %edi
	callq	_IP_VS_DBG
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s application %s:%u registered\n"

	.no_dead_strip	_ip_vs_app_inc_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip_vs_app_inc_new
_ip_vs_app_inc_new:                     ; @ip_vs_app_inc_new
	.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	x22, x2
	mov	x21, x0
	mov	x0, x1
	bl	_ip_vs_proto_get
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #64
	bl	_kmemdup
	cbz	x0, LBB0_9
; %bb.3:
	mov	x19, x0
	add	x0, x0, #56
	bl	_INIT_LIST_HEAD
	add	x0, x19, #16
	bl	_INIT_LIST_HEAD
	str	x21, [x19, #48]
	mov	x0, x22
	bl	_htons
	str	w0, [x19, #8]
	add	x0, x19, #40
	mov	w1, #0
	bl	_atomic_set
	ldr	x0, [x21, #32]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w1, [x21, #24]
	bl	_ip_vs_create_timeout_table
	str	x0, [x19]
	cbz	x0, LBB0_13
LBB0_5:
	ldr	x8, [x20]
	mov	x0, x19
	blr	x8
	mov	x22, x0
	cbz	w0, LBB0_12
; %bb.6:
	ldr	x0, [x19]
	b	LBB0_14
LBB0_7:
Lloh3:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	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
	ret
LBB0_12:
	add	x0, x19, #20
	add	x1, x21, #16
	bl	_list_add
	ldr	w2, [x20, #8]
	ldp	w4, w3, [x19, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #9
	bl	_IP_VS_DBG
	b	LBB0_11
LBB0_13:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_14:
	bl	_kfree
	mov	x0, x19
	bl	_kfree
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s application %s:%u registered\n"

	.no_dead_strip	_ip_vs_app_inc_new
.subsections_via_symbols
