	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pppol2tp_ioctl
_pppol2tp_ioctl:                        ## @pppol2tp_ioctl
	.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), %r12
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	_EBADF@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_SOCK_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sock_flag
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	cmpq	$0, 8(%r12)
	je	LBB0_4
## %bb.5:
	movq	_PPPOX_CONNECTED@GOTPCREL(%rip), %rax
	movq	_PPPOX_BOUND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%r13d, %ebx
	testl	%ecx, (%r12)
	je	LBB0_13
## %bb.6:
	xorl	%ebx, %ebx
	movq	_EBADF@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_pppol2tp_sock_to_session
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	%rax, %r13
	cmpq	$0, 8(%rax)
	jne	LBB0_11
## %bb.8:
	cmpq	$0, 16(%r13)
	je	LBB0_9
LBB0_11:
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_pppol2tp_session_ioctl
	movl	%eax, %ebx
LBB0_12:
	movq	%r12, %rdi
	callq	_sock_put
	jmp	LBB0_13
LBB0_1:
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%r13d, %ebx
	jmp	LBB0_13
LBB0_9:
	xorl	%ebx, %ebx
	movq	_EBADF@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	(%r13), %rdi
	callq	_pppol2tp_sock_to_tunnel
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rax, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_pppol2tp_tunnel_ioctl
	movl	%eax, %ebx
	movq	(%r13), %rdi
	callq	_sock_put
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_SOCK_DEAD,4,2                  ## @SOCK_DEAD
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_PPPOX_CONNECTED,4,2            ## @PPPOX_CONNECTED
	.comm	_PPPOX_BOUND,4,2                ## @PPPOX_BOUND
	.no_dead_strip	_pppol2tp_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pppol2tp_ioctl
_pppol2tp_ioctl:                        ; @pppol2tp_ioctl
	.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
	ldr	x19, [x0]
	cbz	x19, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x24, _EBADF@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EBADF@GOTPAGEOFF]
	ldr	w22, [x24]
Lloh2:
	adrp	x8, _SOCK_DEAD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_DEAD@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_flag
	cbz	x0, LBB0_5
LBB0_2:
	neg	w22, w22
	b	LBB0_4
LBB0_3:
	mov	w22, #0
LBB0_4:
	mov	x0, x22
	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_5:
Lloh5:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.6:
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _PPPOX_CONNECTED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PPPOX_CONNECTED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _PPPOX_BOUND@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PPPOX_BOUND@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_4
; %bb.7:
	ldr	w22, [x24]
	mov	x0, x19
	bl	_pppol2tp_sock_to_session
	cbz	x0, LBB0_2
; %bb.8:
	mov	x23, x0
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_12
LBB0_10:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	bl	_pppol2tp_session_ioctl
	mov	x22, x0
LBB0_11:
	mov	x0, x19
	bl	_sock_put
	b	LBB0_4
LBB0_12:
	ldr	w22, [x24]
	ldr	x0, [x23]
	bl	_pppol2tp_sock_to_tunnel
	cbz	x0, LBB0_14
; %bb.13:
	mov	x1, x21
	mov	x2, x20
	bl	_pppol2tp_tunnel_ioctl
	mov	x22, x0
	ldr	x0, [x23]
	bl	_sock_put
	b	LBB0_11
LBB0_14:
	neg	w22, w22
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_SOCK_DEAD,4,2                  ; @SOCK_DEAD
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_PPPOX_CONNECTED,4,2            ; @PPPOX_CONNECTED
	.comm	_PPPOX_BOUND,4,2                ; @PPPOX_BOUND
	.no_dead_strip	_pppol2tp_ioctl
.subsections_via_symbols
