	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvc_ioctl
_pvc_ioctl:                             ## @pvc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rsi), %rax
	movq	_IF_GET_PROTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	_ARPHRD_ETHER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	_IF_PROTO_FR_ETH_PVC@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_2:
	movq	_IF_PROTO_FR_PVC@GOTPCREL(%rip), %rcx
LBB0_4:
	movq	8(%rdi), %rax
	movq	(%rcx), %rcx
	movq	%rcx, (%rbx)
	cmpl	$7, 8(%rbx)
	ja	LBB0_6
## %bb.5:
	movl	$8, 8(%rbx)
	movq	_ENOBUFS@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_6:
	movl	8(%rax), %ecx
	movl	%ecx, -12(%rbp)
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	12(%rbx), %edi
	leaq	-16(%rbp), %rsi
	movl	$8, %edx
	callq	_copy_to_user
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IF_GET_PROTO,8,3               ## @IF_GET_PROTO
	.comm	_ARPHRD_ETHER,8,3               ## @ARPHRD_ETHER
	.comm	_IF_PROTO_FR_ETH_PVC,8,3        ## @IF_PROTO_FR_ETH_PVC
	.comm	_IF_PROTO_FR_PVC,8,3            ## @IF_PROTO_FR_PVC
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pvc_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvc_ioctl
_pvc_ioctl:                             ; @pvc_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _IF_GET_PROTO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IF_GET_PROTO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x1
Lloh3:
	adrp	x9, _ARPHRD_ETHER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARPHRD_ETHER@GOTPAGEOFF]
	ldp	x10, x8, [x0]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x11, _IF_PROTO_FR_ETH_PVC@GOTPAGE
Lloh7:
	ldr	x11, [x11, _IF_PROTO_FR_ETH_PVC@GOTPAGEOFF]
Lloh8:
	adrp	x12, _IF_PROTO_FR_PVC@GOTPAGE
Lloh9:
	ldr	x12, [x12, _IF_PROTO_FR_PVC@GOTPAGEOFF]
	cmp	x10, x9
	csel	x9, x11, x12, eq
	ldr	x9, [x9]
	str	x9, [x1]
	ldr	w9, [x1, #8]
	cmp	w9, #7
	b.hi	LBB0_4
; %bb.2:
	mov	w8, #8
	str	w8, [x19, #8]
Lloh10:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	w9, [x8, #8]
	str	w9, [sp, #12]
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w0, [x19, #12]
	add	x1, sp, #8
	mov	w2, #8
	bl	_copy_to_user
	cbz	x0, LBB0_7
; %bb.5:
Lloh17:
	adrp	x8, _EFAULT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IF_GET_PROTO,8,3               ; @IF_GET_PROTO
	.comm	_ARPHRD_ETHER,8,3               ; @ARPHRD_ETHER
	.comm	_IF_PROTO_FR_ETH_PVC,8,3        ; @IF_PROTO_FR_ETH_PVC
	.comm	_IF_PROTO_FR_PVC,8,3            ; @IF_PROTO_FR_PVC
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pvc_ioctl
.subsections_via_symbols
