	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppp_sync_open
_ppp_sync_open:                         ## @ppp_sync_open
	.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	16(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%r14, 80(%rax)
	movq	_PPP_MRU@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, 72(%rbx)
	leaq	68(%rbx), %rdi
	callq	_spin_lock_init
	leaq	64(%rbx), %rdi
	callq	_spin_lock_init
	movq	(%rbx), %rax
	movl	$-1, (%rax)
	movl	$1610612736, 12(%rax)           ## imm = 0x60000000
	movl	$-1, 8(%rbx)
	leaq	60(%rbx), %rdi
	callq	_skb_queue_head_init
	leaq	56(%rbx), %rdi
	movq	_ppp_sync_process@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_tasklet_init
	leaq	52(%rbx), %rdi
	movl	$1, %esi
	callq	_refcount_set
	leaq	48(%rbx), %rdi
	callq	_init_completion
	movq	%rbx, %r15
	addq	$16, %r15
	movq	%rbx, 40(%rbx)
	movq	_sync_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	(%r12), %rax
	movq	%rax, 24(%rbx)
	movl	$2, 16(%rbx)
	movq	%r14, %rdi
	callq	_tty_get_baud_rate
	movl	%eax, 20(%rbx)
	movq	%r15, %rdi
	callq	_ppp_register_channel
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, 8(%r14)
	movl	$65536, (%r14)                  ## imm = 0x10000
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PPP_MRU,8,3                    ## @PPP_MRU
	.comm	_ppp_sync_process,4,2           ## @ppp_sync_process
	.comm	_sync_ops,4,2                   ## @sync_ops
	.no_dead_strip	_ppp_sync_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppp_sync_open
_ppp_sync_open:                         ; @ppp_sync_open
	.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
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x21, _PPP_MRU@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PPP_MRU@GOTPAGEOFF]
	ldr	x8, [x21]
	stp	x8, x19, [x0, #72]
	add	x0, x0, #68
	bl	_spin_lock_init
	add	x0, x20, #64
	bl	_spin_lock_init
	ldr	x8, [x20]
	mov	w9, #-1
	str	w9, [x8]
	mov	w10, #1610612736
	str	w10, [x8, #12]
	str	w9, [x20, #8]
	add	x0, x20, #60
	bl	_skb_queue_head_init
	add	x0, x20, #56
Lloh5:
	adrp	x8, _ppp_sync_process@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ppp_sync_process@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_tasklet_init
	add	x0, x20, #52
	mov	w1, #1
	bl	_refcount_set
	add	x0, x20, #48
	bl	_init_completion
	str	x20, [x20, #40]
Lloh8:
	adrp	x8, _sync_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _sync_ops@GOTPAGEOFF]
	ldr	x9, [x21]
	stp	x9, x8, [x20, #24]
	mov	w8, #2
	mov	x21, x20
	str	w8, [x21, #16]!
	mov	x0, x19
	bl	_tty_get_baud_rate
	str	w0, [x20, #20]
	mov	x0, x21
	bl	_ppp_register_channel
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_kfree
	b	LBB0_8
LBB0_4:
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_7:
	str	x20, [x19, #8]
	mov	w8, #65536
	str	w8, [x19]
LBB0_8:
	mov	x0, x21
	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	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PPP_MRU,8,3                    ; @PPP_MRU
	.comm	_ppp_sync_process,4,2           ; @ppp_sync_process
	.comm	_sync_ops,4,2                   ; @sync_ops
	.no_dead_strip	_ppp_sync_open
.subsections_via_symbols
