	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function user_to_ptr
_user_to_ptr:                           ## @user_to_ptr
	.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	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	$1, (%rsi)
	cmpq	$0, 40(%rsi)
	je	LBB0_7
## %bb.1:
	cmpl	$0, 36(%r14)
	je	LBB0_2
LBB0_7:
	movl	12(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.8:
	cmpl	$129, %eax
	jne	LBB0_16
## %bb.9:
	movl	12(%r12), %eax
	jmp	LBB0_17
LBB0_10:
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	%r13, %rbx
	movl	16(%r14), %r13d
	incl	%r13d
	cmpl	%r13d, %eax
	cmovbl	%eax, %r13d
	movl	8(%r12), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_copy_from_user
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	subl	(%rcx), %r15d
	testq	%rax, %rax
	cmovel	%r12d, %r15d
	testl	%r15d, %r15d
	jne	LBB0_18
## %bb.13:
	decl	%r13d
	movb	(%rbx,%r13), %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movb	$0, (%rbx,%r13)
	movq	%rbx, %rdi
	callq	_strlen
	cmpl	16(%r14), %eax
	jne	LBB0_18
## %bb.14:
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_18
## %bb.15:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %r15d
	jmp	LBB0_18
LBB0_16:
	movl	4(%r12), %eax
LBB0_17:
	movl	%eax, (%r13)
	xorl	%r15d, %r15d
	jmp	LBB0_18
LBB0_2:
	movl	(%r12), %edx
	movl	16(%r12), %esi
	movq	%r13, %rdi
	callq	_copy_from_user
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%r15d, %r15d
	subl	(%rcx), %r15d
	testq	%rax, %rax
	cmovel	%edx, %r15d
	testl	%r15d, %r15d
	jne	LBB0_18
## %bb.3:
	cmpl	$0, 32(%r14)
	movl	$0, %r15d
	je	LBB0_18
## %bb.4:
	movl	(%r12), %eax
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	divl	4(%r14)
	cmpl	8(%r14), %eax
	jae	LBB0_18
## %bb.5:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	callq	*(%rax)
	incl	%ebx
	cmpl	8(%r14), %ebx
	jb	LBB0_6
	jmp	LBB0_18
LBB0_11:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_user_to_ptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function user_to_ptr
_user_to_ptr:                           ; @user_to_ptr
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	mov	w8, #1
	str	w8, [x1]
	ldr	x8, [x1, #40]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x20, #36]
	cbz	w8, LBB0_12
LBB0_2:
	ldr	w8, [x20, #12]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.4:
	mov	w21, #0
	ldr	w8, [x22, #12]
	b	LBB0_11
LBB0_5:
	ldr	w8, [x22]
	cbz	w8, LBB0_9
; %bb.6:
	ldr	w9, [x20, #16]
	add	w10, w9, #1
	cmp	w8, w10
	csinc	w23, w8, w9, lo
	ldr	w1, [x22, #8]
	mov	x0, x19
	mov	x2, x23
	bl	_copy_from_user
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w21, wzr, w8, eq
	cbnz	w21, LBB0_17
; %bb.7:
	sub	w8, w23, #1
	ldrb	w22, [x19, x8]
	strb	wzr, [x19, x8]
	mov	x0, x19
	bl	_strlen
	ldr	w8, [x20, #16]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.8:
	cbz	w22, LBB0_17
LBB0_9:
Lloh3:
	adrp	x8, _ERANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_10:
	mov	w21, #0
	ldr	w8, [x22, #4]
LBB0_11:
	str	w8, [x19]
	b	LBB0_17
LBB0_12:
	ldr	w1, [x22, #16]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_copy_from_user
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w21, wzr, w8, eq
	cbnz	w21, LBB0_17
; %bb.13:
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_16
; %bb.14:
	ldr	w8, [x22]
	ldp	w9, w10, [x20, #4]
	udiv	w22, w8, w9
	cmp	w22, w10
	b.hs	LBB0_16
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	blr	x8
	mov	w21, #0
	add	w22, w22, #1
	ldr	w8, [x20, #8]
	cmp	w22, w8
	b.lo	LBB0_15
	b	LBB0_17
LBB0_16:
	mov	w21, #0
LBB0_17:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_user_to_ptr
.subsections_via_symbols
