	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function user_to_new
_user_to_new:                           ## @user_to_new
	.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	%rsi, %rbx
	movl	$1, (%rsi)
	movl	4(%rsi), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.2:
	movl	12(%rdi), %eax
	movl	%eax, 24(%rbx)
	jmp	LBB0_10
LBB0_3:
	movl	8(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	20(%rbx), %r15d
	incl	%r15d
	cmpl	%r15d, %eax
	cmovll	%eax, %r15d
	movq	8(%rbx), %rax
	movl	4(%rdi), %esi
	movq	%rax, %rdi
	movl	%r15d, %edx
	callq	_copy_from_user
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_6
LBB0_8:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%r14d, %r14d
	cmovel	%r14d, %eax
	jmp	LBB0_11
LBB0_9:
	movl	(%rdi), %eax
	movl	%eax, 16(%rbx)
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%rbx), %rax
	movslq	%r15d, %rcx
	movb	-1(%rcx,%rax), %r15b
	movb	$0, -1(%rcx,%rax)
	movq	8(%rbx), %rdi
	callq	_strlen
	cmpl	20(%rbx), %eax
	jne	LBB0_8
## %bb.7:
	testb	%r15b, %r15b
	je	LBB0_8
LBB0_4:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_user_to_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function user_to_new
_user_to_new:                           ; @user_to_new
	.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, x1
	mov	x8, x0
	mov	w9, #1
	str	w9, [x1]
	ldr	w9, [x1, #4]
	cmp	w9, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w9, #129
	b.ne	LBB0_6
; %bb.2:
	mov	w0, #0
	ldr	w8, [x8, #12]
	str	w8, [x19, #24]
	b	LBB0_10
LBB0_3:
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_9
; %bb.4:
	ldr	w10, [x19, #20]
	add	w11, w10, #1
	cmp	w9, w11
	csinc	w21, w9, w10, lt
	ldr	x0, [x19, #8]
	ldr	w1, [x8, #4]
	mov	x2, x21
	bl	_copy_from_user
	mov	x20, x0
	cbz	w0, LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, #0
	csneg	w0, wzr, w8, eq
	b	LBB0_10
LBB0_6:
	mov	w0, #0
	ldr	w8, [x8]
	str	w8, [x19, #16]
	b	LBB0_10
LBB0_7:
	ldr	x8, [x19, #8]
	add	x8, x8, w21, sxtw
	ldurb	w21, [x8, #-1]
	sturb	wzr, [x8, #-1]
	ldr	x0, [x19, #8]
	bl	_strlen
	ldr	w8, [x19, #20]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.8:
	cbz	w21, LBB0_5
LBB0_9:
Lloh3:
	adrp	x8, _ERANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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	_ERANGE,4,2                     ; @ERANGE
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_user_to_new
.subsections_via_symbols
