	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function translate_from_user
_translate_from_user:                   ## @translate_from_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -100(%rbp)                ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %r14d
	movl	8(%rdi), %eax
	cmpl	$16, 4(%rdi)
	jne	LBB0_5
## %bb.1:
	cmpl	$1, %r14d
	je	LBB0_5
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	-100(%rbp), %edx                ## 4-byte Reload
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_17
LBB0_4:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -100(%rbp)                ## 4-byte Spill
	jmp	LBB0_17
LBB0_5:
	cltq
	movslq	12(%r13), %rcx
	imulq	%rax, %rcx
	movl	-100(%rbp), %eax                ## 4-byte Reload
	cltd
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	idivl	%ecx
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_16
## %bb.6:
	movl	16(%r13), %edx
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movslq	16(%r13), %rdx
	movq	-128(%rbp), %r15                ## 8-byte Reload
	addq	%rdx, %r15
	addq	-112(%rbp), %r12                ## 8-byte Folded Reload
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	incl	%ebx
	cmpl	-100(%rbp), %ebx                ## 4-byte Folded Reload
	je	LBB0_16
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	leaq	-60(%rbp), %rdi
	movq	%r15, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_copy_from_user
	testq	%rax, %rax
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	cmpl	$0, (%r13)
	jle	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=2
	movslq	(%r13), %rax
	movq	%rcx, %r15
	cmpq	%rax, %rcx
	jge	LBB0_12
LBB0_10:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$8, 4(%r13)
	jne	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movsbl	-60(%rbp,%r15), %edi
	callq	_U8_TO_S16
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	-60(%rbp,%r15,2), %eax
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=2
	leaq	1(%r15), %rcx
	movl	%eax, -96(%rbp,%r15,4)
	cmpl	$1, %r14d
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%eax, -92(%rbp,%r15,4)
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, 8(%r13)
	leaq	-96(%rbp), %r15
	jle	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	12(%r13), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_memcpy
	incl	%ebx
	cmpl	8(%r13), %ebx
	jl	LBB0_14
	jmp	LBB0_15
LBB0_16:
	movl	-100(%rbp), %eax                ## 4-byte Reload
	imull	-112(%rbp), %eax                ## 4-byte Folded Reload
	movl	%eax, -100(%rbp)                ## 4-byte Spill
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.23:
	movl	-100(%rbp), %eax                ## 4-byte Reload
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_translate_from_user
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function translate_from_user
_translate_from_user:                   ; @translate_from_user
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldp	w23, w9, [x0]
	ldr	w8, [x0, #8]
	cmp	w9, #16
	ccmp	w23, #1, #4, eq
	ccmp	w8, #1, #0, ne
	b.eq	LBB0_16
; %bb.1:
	mov	x21, x0
	sxtw	x8, w8
	ldrsw	x9, [x0, #12]
	mul	x8, x8, x9
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	sdiv	w22, w22, w8
	cmp	w22, #1
	b.lt	LBB0_18
; %bb.2:
	mov	w25, #0
	ldr	w2, [x21, #16]
	add	x26, sp, #44
	add	x27, sp, #20
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x2, [x21, #16]
	add	x19, x19, x2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x20, x20, x8
	add	w25, w25, #1
	cmp	w25, w22
	b.eq	LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	add	x0, sp, #44
	mov	x1, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_copy_from_user
	cbnz	x0, LBB0_17
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, #0
	add	x24, sp, #44
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x28, x28, #1
	ldrsw	x8, [x21]
	add	x24, x24, #2
	cmp	x28, x8
	b.ge	LBB0_13
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x21, #4]
	cmp	w8, #8
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldrsb	w0, [x26, x28]
	bl	_U8_TO_S16
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w0, [x24]
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	str	w0, [x27, x28, lsl #2]
	cmp	w23, #1
	b.ne	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x8, x27, x28, lsl #2
	str	w0, [x8, #4]
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #0
LBB0_15:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x21, #12]
	add	x1, sp, #20
	mov	x0, x20
	bl	_memcpy
	add	w24, w24, #1
	ldr	w8, [x21, #8]
	cmp	w24, w8
	b.lt	LBB0_15
	b	LBB0_3
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_copy_from_user
	cbz	x0, LBB0_19
LBB0_17:
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_19
LBB0_18:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	mul	w22, w22, w8
LBB0_19:
	ldr	x8, [sp, #56]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x22
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_translate_from_user
.subsections_via_symbols
