	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function view_normalize
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_view_normalize
	.p2align	4, 0x90
_view_normalize:                        ## @view_normalize
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_bounds_valid
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	leaq	20(%rbx), %r8
	movl	16(%rbx), %eax
	movl	20(%rbx), %ecx
	cltd
	idivl	%ecx
	movl	%eax, -64(%rbp)
	leaq	28(%rbx), %rdi
	movl	24(%rbx), %eax
	movl	28(%rbx), %esi
	cltd
	idivl	%esi
	movl	%eax, -56(%rbp)
	cvtsi2ss	%ecx, %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm2
	divss	%xmm0, %xmm2
	cvttss2si	%xmm2, %eax
	movl	%eax, -60(%rbp)
	xorps	%xmm0, %xmm0
	cvtsi2ss	%esi, %xmm0
	divss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	movl	%eax, -52(%rbp)
	cmpl	%esi, %ecx
	jge	LBB0_3
## %bb.2:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, (%r8)
	jmp	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	callq	_make_bounds_unit
	movq	%rax, 16(%rbx)
	movq	%rdx, 24(%rbx)
	movups	(%r14), %xmm0
	movaps	%xmm0, -64(%rbp)
	jmp	LBB0_6
LBB0_3:
	movl	%esi, %eax
	cltd
	idivl	%ecx
	movl	%eax, (%rdi)
	movq	%r8, %rdi
LBB0_4:
	movl	$1, (%rdi)
	movl	$0, 16(%rbx)
	movl	$0, 24(%rbx)
LBB0_6:
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.7:
	xorl	%esi, %esi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rsi
	movslq	%eax, %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_16
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	8(%rbx), %rcx
	movq	%rsi, %rdx
	shlq	$4, %rdx
	cmpl	$0, (%rcx,%rdx)
	jle	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rdx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rdx), %r14
	addq	$8, %r14
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	movaps	-64(%rbp), %xmm0
	movups	%xmm0, (%r13,%r15)
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	-64(%rbp), %eax
	subl	%eax, (%r13,%r15)
	movl	-56(%rbp), %eax
	subl	%eax, 8(%r13,%r15)
	incq	%r12
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	addq	$16, %r15
	cmpq	%rax, %r12
	jge	LBB0_14
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %r13
	leaq	(%r15,%r13), %rbx
	movq	%rbx, %rdi
	callq	_bounds_valid
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	callq	_bounds_scale
	jmp	LBB0_13
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_view_normalize                 ; -- Begin function view_normalize
	.p2align	2
_view_normalize:                        ; @view_normalize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_bounds_valid
	cbz	x0, LBB0_3
; %bb.1:
	mov	x8, x19
	ldr	w10, [x8, #28]!
	ldur	w12, [x8, #-12]
	mov	x9, x8
	ldr	w11, [x9, #-8]!
	sdiv	w12, w12, w11
	scvtf	s0, w11
	fmov	s1, #1.00000000
	fdiv	s0, s1, s0
	fcvtzs	w13, s0
	ldur	w14, [x8, #-4]
	stp	w12, w13, [sp]
	scvtf	s0, w10
	fdiv	s0, s1, s0
	fcvtzs	w12, s0
	sdiv	w13, w14, w10
	stp	w13, w12, [sp, #8]
	cmp	w11, w10
	b.ge	LBB0_4
; %bb.2:
	sdiv	w10, w11, w10
	str	w10, [x9]
	b	LBB0_5
LBB0_3:
	bl	_make_bounds_unit
	stp	x0, x1, [x19, #16]
	ldr	q0, [x20]
	str	q0, [sp]
	b	LBB0_6
LBB0_4:
	sdiv	w10, w10, w11
	str	w10, [x8]
	mov	x8, x9
LBB0_5:
	mov	w9, #1
	str	w9, [x8]
	str	wzr, [x19, #16]
	str	wzr, [x19, #24]
LBB0_6:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.7:
	mov	x21, #0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x19]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_16
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x9, [x19, #8]
	add	x22, x9, x21, lsl #4
	ldr	w9, [x22]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x23, #0
	mov	x24, #0
	add	x25, x22, #8
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	q0, [sp]
	str	q0, [x26, x23]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	w8, [sp]
	add	x9, x26, x23
	ldr	w10, [x9]
	sub	w8, w10, w8
	str	w8, [x9]
	ldr	w8, [sp, #8]
	ldr	w10, [x9, #8]
	sub	w8, w10, w8
	str	w8, [x9, #8]
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #16
	cmp	x24, x8
	b.ge	LBB0_8
LBB0_14:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x26, [x25]
	add	x20, x26, x23
	mov	x0, x20
	bl	_bounds_valid
	cbz	x0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x1, sp
	mov	x0, x20
	bl	_bounds_scale
	b	LBB0_13
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
