	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function new_to_user
_new_to_user:                           ## @new_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %eax
	cmpl	$129, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.2:
	movl	12(%rbx), %edi
	callq	_strlen
	cmpl	%eax, 12(%r14)
	jle	LBB0_3
## %bb.4:
	incl	%eax
	movl	8(%r14), %edi
	movl	12(%rbx), %esi
	movl	%eax, %edx
	callq	_copy_to_user
	movq	_EFAULT@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testl	%eax, %eax
	cmovel	%eax, %ecx
	jmp	LBB0_8
LBB0_5:
	movl	8(%rbx), %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_7
LBB0_6:
	movl	4(%rbx), %eax
	movl	%eax, (%r14)
LBB0_7:
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_3:
	movl	16(%rbx), %eax
	incl	%eax
	movl	%eax, 12(%r14)
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_8:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_new_to_user
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function new_to_user
_new_to_user:                           ; @new_to_user
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
	ldr	w0, [x20, #12]
	bl	_strlen
	ldr	w8, [x19, #12]
	cmp	w8, w0
	b.le	LBB0_6
; %bb.3:
	add	w2, w0, #1
	ldr	w0, [x19, #8]
	ldr	w1, [x20, #12]
	bl	_copy_to_user
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, wzr, w8, eq
	b	LBB0_7
LBB0_4:
	mov	w0, #0
	ldr	w8, [x20, #8]
	str	w8, [x19, #4]
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x19, #12]
Lloh3:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_new_to_user
.subsections_via_symbols
