	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ppp_register_net_channel       ## -- Begin function ppp_register_net_channel
	.p2align	4, 0x90
_ppp_register_net_channel:              ## @ppp_register_net_channel
	.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
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_ppp_pernet
	movq	%rax, %r14
	movq	$0, 48(%rbx)
	movq	%r15, 40(%rbx)
	movq	%r12, %rdi
	callq	_get_net
	movl	%eax, 36(%rbx)
	movq	%rbx, 8(%r15)
	leaq	8(%rbx), %rdi
	movq	_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_init_ppp_file
	movl	(%r15), %eax
	movl	%eax, 16(%rbx)
	leaq	32(%rbx), %rdi
	callq	_init_rwsem
	leaq	28(%rbx), %rdi
	callq	_spin_lock_init
	leaq	24(%rbx), %rdi
	callq	_rwlock_init
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	8(%r14), %rax
	incq	%rax
	movq	%rax, 8(%r14)
	movq	%rax, 8(%rbx)
	addq	$4, %rbx
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_list_add
	movq	_channel_count@GOTPCREL(%rip), %rdi
	callq	_atomic_inc
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CHANNEL,4,2                    ## @CHANNEL
	.comm	_channel_count,4,2              ## @channel_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ppp_register_net_channel       ; -- Begin function ppp_register_net_channel
	.p2align	2
_ppp_register_net_channel:              ; @ppp_register_net_channel
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	bl	_ppp_pernet
	mov	x22, x0
	stp	x20, xzr, [x19, #40]
	mov	x0, x21
	bl	_get_net
	str	w0, [x19, #36]
	str	x19, [x20, #8]
	add	x0, x19, #8
Lloh3:
	adrp	x8, _CHANNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHANNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_init_ppp_file
	ldr	w8, [x20]
	str	w8, [x19, #16]
	add	x0, x19, #32
	bl	_init_rwsem
	add	x0, x19, #28
	bl	_spin_lock_init
	add	x0, x19, #24
	bl	_rwlock_init
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	x8, [x22, #8]
	add	x8, x8, #1
	str	x8, [x22, #8]
	str	x8, [x19, #8]
	add	x0, x19, #4
	add	x1, x22, #4
	bl	_list_add
Lloh6:
	adrp	x0, _channel_count@GOTPAGE
Lloh7:
	ldr	x0, [x0, _channel_count@GOTPAGEOFF]
	bl	_atomic_inc
	mov	x0, x22
	bl	_spin_unlock_bh
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CHANNEL,4,2                    ; @CHANNEL
	.comm	_channel_count,4,2              ; @channel_count
.subsections_via_symbols
