	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ptr_to_user
_ptr_to_user:                           ## @ptr_to_user
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	cmpq	$0, 16(%rsi)
	je	LBB0_4
## %bb.1:
	cmpl	$0, 8(%rbx)
	je	LBB0_2
LBB0_4:
	movl	(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.6:
	movl	%r14d, %edi
	callq	_strlen
	cmpl	%eax, 12(%r15)
	jle	LBB0_7
## %bb.8:
	incl	%eax
	movl	8(%r15), %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	jmp	LBB0_3
LBB0_9:
	movl	(%r14), %eax
	movl	%eax, 4(%r15)
	jmp	LBB0_11
LBB0_10:
	movl	(%r14), %eax
	movl	%eax, (%r15)
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_2:
	movl	12(%r15), %edx
	movl	16(%r15), %edi
	movl	%r14d, %esi
LBB0_3:
	callq	_copy_to_user
	movq	%rax, %rcx
	movq	_EFAULT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	testq	%rcx, %rcx
	cmovel	%edx, %eax
	jmp	LBB0_12
LBB0_7:
	movl	4(%rbx), %eax
	movl	%eax, 12(%r15)
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.no_dead_strip	_ptr_to_user
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ptr_to_user
_ptr_to_user:                           ; @ptr_to_user
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_8
LBB0_2:
	ldr	w8, [x21]
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_strlen
	ldr	w8, [x20, #12]
	cmp	w8, w0
	b.le	LBB0_10
; %bb.5:
	add	w2, w0, #1
	ldr	w0, [x20, #8]
	b	LBB0_9
LBB0_6:
	mov	w0, #0
	ldr	w8, [x19]
	str	w8, [x20, #4]
	b	LBB0_11
LBB0_7:
	mov	w0, #0
	ldr	w8, [x19]
	str	w8, [x20]
	b	LBB0_11
LBB0_8:
	ldp	w2, w0, [x20, #12]
LBB0_9:
	mov	x1, x19
	bl	_copy_to_user
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, eq
	b	LBB0_11
LBB0_10:
	ldr	w8, [x21, #4]
	str	w8, [x20, #12]
Lloh3:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.no_dead_strip	_ptr_to_user
.subsections_via_symbols
