	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function veth_init_connection
_veth_init_connection:                  ## @veth_init_connection
	.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	%rdi, %r15
	movq	_this_lp@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%r14d, %r14d
	cmpq	%r15, %rdi
	je	LBB0_14
## %bb.1:
	movq	%r15, %rsi
	callq	_HvLpConfig_doLpsCommunicateOnVirtualLan
	testl	%eax, %eax
	je	LBB0_14
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	%r15, (%rax)
	leaq	84(%rax), %rdi
	callq	_spin_lock_init
	leaq	80(%r12), %rdi
	movq	_veth_statemachine@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	64(%r12), %rdi
	callq	_init_timer
	movq	_veth_timed_ack@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r12)
	movq	%r12, 64(%r12)
	leaq	48(%r12), %rdi
	callq	_init_timer
	movq	_veth_timed_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r12)
	movq	%r12, 48(%r12)
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	_VETH_ACKTIMEOUT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1125899907, %rcx, %rcx         ## imm = 0x431BDE83
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$50, %rcx
	addl	%edx, %ecx
	imull	(%rax), %ecx
	leal	(%rcx,%rcx,4), %eax
	movl	%eax, 8(%r12)
	leaq	44(%r12), %rdi
	movl	$255, %esi
	movl	$4, %edx
	callq	_memset
	movq	_veth_cnx@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r12, (%rax,%r15,8)
	movq	%r12, %rdi
	addq	$40, %rdi
	movq	_veth_lpar_connection_ktype@GOTPCREL(%rip), %rsi
	callq	_kobject_init
	movq	_VETH_NUMBUFFERS@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	(%rbx), %edx
	movl	$4, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %rbx
	movq	%rax, 32(%r12)
	movl	(%r13), %esi
	testl	%esi, %esi
	jle	LBB0_11
## %bb.8:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, (%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_veth_stack_push
	incq	%r14
	movslq	(%r13), %rsi
	addq	$4, %rbx
	cmpq	%rsi, %r14
	jl	LBB0_9
## %bb.10:
	xorl	%r14d, %r14d
LBB0_11:
	addl	$2, %esi
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_veth_allocate_events
	movl	%eax, 12(%r12)
	movl	(%r13), %ecx
	leal	2(%rcx), %edx
	cmpl	%edx, %eax
	jge	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
LBB0_6:
	movq	%r15, %rsi
	callq	_veth_error
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	%ecx, 16(%r12)
	movq	_ACK_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_VETH_ACKTIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_this_lp,8,3                    ## @this_lp
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_veth_statemachine,4,2          ## @veth_statemachine
	.comm	_veth_timed_ack,4,2             ## @veth_timed_ack
	.comm	_veth_timed_reset,4,2           ## @veth_timed_reset
	.comm	_HZ,4,2                         ## @HZ
	.comm	_VETH_ACKTIMEOUT,4,2            ## @VETH_ACKTIMEOUT
	.comm	_veth_cnx,8,3                   ## @veth_cnx
	.comm	_veth_lpar_connection_ktype,4,2 ## @veth_lpar_connection_ktype
	.comm	_VETH_NUMBUFFERS,4,2            ## @VETH_NUMBUFFERS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't allocate buffers for LPAR %d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate enough events for LPAR %d.\n"

	.comm	_ACK_THRESHOLD,4,2              ## @ACK_THRESHOLD
	.no_dead_strip	_veth_init_connection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function veth_init_connection
_veth_init_connection:                  ; @veth_init_connection
	.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	x19, x0
Lloh0:
	adrp	x8, _this_lp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _this_lp@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	cmp	x0, x19
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_13
LBB0_2:
	mov	x1, x19
	bl	_HvLpConfig_doLpsCommunicateOnVirtualLan
	cbz	w0, LBB0_13
; %bb.3:
Lloh3:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.4:
	mov	x20, x0
	str	x19, [x0], #84
	bl	_spin_lock_init
	add	x0, x20, #80
Lloh5:
	adrp	x8, _veth_statemachine@GOTPAGE
Lloh6:
	ldr	x8, [x8, _veth_statemachine@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x20, #64
	bl	_init_timer
Lloh8:
	adrp	x8, _veth_timed_ack@GOTPAGE
Lloh9:
	ldr	x8, [x8, _veth_timed_ack@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #72]
	str	x20, [x20, #64]
	add	x0, x20, #48
	bl	_init_timer
Lloh11:
	adrp	x8, _veth_timed_reset@GOTPAGE
Lloh12:
	ldr	x8, [x8, _veth_timed_reset@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #56]
	str	x20, [x20, #48]
Lloh14:
	adrp	x8, _HZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x21, _VETH_ACKTIMEOUT@GOTPAGE
Lloh18:
	ldr	x21, [x21, _VETH_ACKTIMEOUT@GOTPAGEOFF]
	ldrsw	x9, [x21]
	mov	w10, #56963
	movk	w10, #17179, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #50
	add	w9, w9, w10
	mul	w8, w8, w9
	add	w8, w8, w8, lsl #2
	str	w8, [x20, #8]
	add	x0, x20, #44
	mov	w1, #255
	mov	w2, #4
	bl	_memset
Lloh19:
	adrp	x8, _veth_cnx@GOTPAGE
Lloh20:
	ldr	x8, [x8, _veth_cnx@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x20, [x8, x19, lsl #3]
	add	x0, x20, #40
Lloh22:
	adrp	x1, _veth_lpar_connection_ktype@GOTPAGE
Lloh23:
	ldr	x1, [x1, _veth_lpar_connection_ktype@GOTPAGEOFF]
	bl	_kobject_init
Lloh24:
	adrp	x23, _VETH_NUMBUFFERS@GOTPAGE
Lloh25:
	ldr	x23, [x23, _VETH_NUMBUFFERS@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w2, [x22]
	mov	w1, #4
	bl	_kcalloc
	cbz	x0, LBB0_10
; %bb.5:
	mov	x1, x0
	str	x0, [x20, #32]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x22, #0
	mov	x24, x1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	w22, [x24], #4
	mov	x0, x20
	bl	_veth_stack_push
	add	x22, x22, #1
	ldrsw	x8, [x23]
	mov	x1, x24
	cmp	x22, x8
	b.lt	LBB0_7
LBB0_8:
	add	w1, w8, #2
	mov	x0, x19
	bl	_veth_allocate_events
	str	w0, [x20, #12]
	ldr	w8, [x23]
	add	w9, w8, #2
	cmp	w0, w9
	b.ge	LBB0_14
; %bb.9:
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
LBB0_11:
	mov	x1, x19
	bl	_veth_error
LBB0_12:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
LBB0_14:
	mov	w0, #0
Lloh33:
	adrp	x9, _ACK_THRESHOLD@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ACK_THRESHOLD@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x9]
	ldr	w9, [x21]
	str	w8, [x20, #16]
	stp	w9, w10, [x20, #20]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_this_lp,8,3                    ; @this_lp
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_veth_statemachine,4,2          ; @veth_statemachine
	.comm	_veth_timed_ack,4,2             ; @veth_timed_ack
	.comm	_veth_timed_reset,4,2           ; @veth_timed_reset
	.comm	_HZ,4,2                         ; @HZ
	.comm	_VETH_ACKTIMEOUT,4,2            ; @VETH_ACKTIMEOUT
	.comm	_veth_cnx,8,3                   ; @veth_cnx
	.comm	_veth_lpar_connection_ktype,4,2 ; @veth_lpar_connection_ktype
	.comm	_VETH_NUMBUFFERS,4,2            ; @VETH_NUMBUFFERS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't allocate buffers for LPAR %d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate enough events for LPAR %d.\n"

	.comm	_ACK_THRESHOLD,4,2              ; @ACK_THRESHOLD
	.no_dead_strip	_veth_init_connection
.subsections_via_symbols
