	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pppol2tp_getname
_pppol2tp_getname:                      ## @pppol2tp_getname
	.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	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	(%rdi), %rax
	movq	_PPPOX_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_pppol2tp_sock_to_session
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_AF_PPPOX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -40(%rbp)
	movq	_PX_PROTO_OL2TP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$12, %edx
	callq	_memcpy
	movl	$12, (%r14)
	movq	(%rbx), %rdi
	callq	_sock_put
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOTCONN@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_EBADF@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_PPPOX_CONNECTED,8,3            ## @PPPOX_CONNECTED
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_AF_PPPOX,4,2                   ## @AF_PPPOX
	.comm	_PX_PROTO_OL2TP,4,2             ## @PX_PROTO_OL2TP
	.no_dead_strip	_pppol2tp_getname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pppol2tp_getname
_pppol2tp_getname:                      ; @pppol2tp_getname
	.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	x20, x0
	ldr	x0, [x0]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PPPOX_CONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PPPOX_CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	bl	_pppol2tp_sock_to_session
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x0
Lloh3:
	adrp	x8, _AF_PPPOX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_PPPOX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PX_PROTO_OL2TP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PX_PROTO_OL2TP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #4]
	mov	x0, sp
	mov	w2, #4
	bl	_memcpy
	mov	w22, #12
	mov	x1, sp
	mov	x0, x21
	mov	w2, #12
	bl	_memcpy
	str	w22, [x19]
	ldr	x0, [x20]
	bl	_sock_put
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh9:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _EBADF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_PPPOX_CONNECTED,8,3            ; @PPPOX_CONNECTED
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_AF_PPPOX,4,2                   ; @AF_PPPOX
	.comm	_PX_PROTO_OL2TP,4,2             ; @PX_PROTO_OL2TP
	.no_dead_strip	_pppol2tp_getname
.subsections_via_symbols
