	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppp_create_interface
_ppp_create_interface:                  ## @ppp_create_interface
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	(%rdx), %eax
	movl	%eax, -48(%rbp)
	movl	$0, -44(%rbp)
	movq	%rsi, -40(%rbp)
	movq	_NET_NAME_ENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ppp_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_dev_net_set
	movq	_ppp_link_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_rtnl_lock
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ppp_dev_configure
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_netdev_priv
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	callq	_rtnl_unlock
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_5
LBB0_4:
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%rbx, %rdi
	callq	_free_netdev
	movl	%r15d, %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_NET_NAME_ENUM,4,2              ## @NET_NAME_ENUM
	.comm	_ppp_setup,4,2                  ## @ppp_setup
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ppp_link_ops,4,2               ## @ppp_link_ops
	.no_dead_strip	_ppp_create_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppp_create_interface
_ppp_create_interface:                  ; @ppp_create_interface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	w8, [x2]
	stp	w8, wzr, [sp]
	str	x1, [sp, #8]
Lloh0:
	adrp	x8, _NET_NAME_ENUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NET_NAME_ENUM@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _ppp_setup@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ppp_setup@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	bl	_alloc_netdev
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x1, x20
	bl	_dev_net_set
Lloh8:
	adrp	x8, _ppp_link_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ppp_link_ops@GOTPAGEOFF]
	str	x8, [x21]
	bl	_rtnl_lock
	mov	x2, sp
	mov	x0, x20
	mov	x1, x21
	bl	_ppp_dev_configure
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_netdev_priv
	ldr	w8, [x0]
	str	w8, [x19]
	bl	_rtnl_unlock
	mov	w20, #0
	b	LBB0_5
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_4:
	mov	x20, x0
	bl	_rtnl_unlock
	mov	x0, x21
	bl	_free_netdev
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_NET_NAME_ENUM,4,2              ; @NET_NAME_ENUM
	.comm	_ppp_setup,4,2                  ; @ppp_setup
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ppp_link_ops,4,2               ; @ppp_link_ops
	.no_dead_strip	_ppp_create_interface
.subsections_via_symbols
