	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function halve1Dimage_float
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_halve1Dimage_float:                    ## @halve1Dimage_float
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %r15
	movq	%rcx, %r12
	movl	%edx, %r14d
	movl	%esi, %ebx
	movl	%edi, -64(%rbp)                 ## 4-byte Spill
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	cmpl	$1, %esi
	sete	%al
	cmpl	$1, %edx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	xorl	%edi, %edi
	cmpl	%r14d, %ebx
	setne	%dil
	callq	_assert
	movl	32(%rbp), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	24(%rbp), %r13d
	movl	16(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	$1, %r14d
	movl	%r14d, -108(%rbp)               ## 4-byte Spill
	jne	LBB0_10
## %bb.1:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	xorl	%edi, %edi
	cmpl	$1, %ebx
	setne	%dil
	callq	_assert
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %r13
	movl	%ebx, -96(%rbp)                 ## 4-byte Spill
	cmpl	$2, %ebx
	jl	LBB0_9
## %bb.2:
	movslq	-48(%rbp), %rbx                 ## 4-byte Folded Reload
	movslq	-44(%rbp), %r15                 ## 4-byte Folded Reload
	xorl	%eax, %eax
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%rbx, %r12
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_9
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	jg	LBB0_4
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movsd	(%r12), %xmm1                   ## xmm1 = mem[0],zero
	movsd	(%r12,%rbx), %xmm0              ## xmm0 = mem[0],zero
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	addsd	%xmm1, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm0, (%r13)
	addq	%r15, %r12
	addq	$8, %r13
	decl	%r14d
	je	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r12, %rdi
	callq	___GLU_SWAP_4_BYTES
	movsd	%xmm0, -104(%rbp)               ## 8-byte Spill
	leaq	(%r12,%rbx), %rdi
	callq	___GLU_SWAP_4_BYTES
	movsd	-104(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	jmp	LBB0_7
LBB0_10:
	movl	%r14d, %eax
	shrl	$31, %eax
	addl	%r14d, %eax
	sarl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$1, %ebx
	jne	LBB0_11
## %bb.12:
	movl	$1, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %edi
	callq	_assert
	cmpl	$2, %r14d
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movq	%r12, %rdx
	jl	LBB0_13
## %bb.15:
	movl	%ecx, %eax
	subl	%r13d, %eax
	movq	%r15, %r13
	movq	%rdx, %r14
	movslq	%ecx, %r15
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movslq	%r12d, %r12
	cltq
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	-96(%rbp), %r14                 ## 8-byte Folded Reload
	addq	%r15, %r14
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	cmpl	%ebx, %eax
	je	LBB0_22
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	jg	LBB0_17
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=2
	movsd	(%r14), %xmm1                   ## xmm1 = mem[0],zero
	movsd	(%r14,%r15), %xmm0              ## xmm0 = mem[0],zero
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=2
	addsd	%xmm1, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm0, (%r13)
	addq	%r12, %r14
	addq	$8, %r13
	decl	%ebx
	je	LBB0_21
LBB0_17:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	%r14, %rdi
	callq	___GLU_SWAP_4_BYTES
	movsd	%xmm0, -104(%rbp)               ## 8-byte Spill
	leaq	(%r14,%r15), %rdi
	callq	___GLU_SWAP_4_BYTES
	movsd	-104(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	jmp	LBB0_20
LBB0_9:
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	imull	-96(%rbp), %edx                 ## 4-byte Folded Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	subl	%edx, %eax
	movslq	%eax, %r14
	addq	%r12, %r14
	movl	$1, %ebx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_11:
	movq	%r12, %rdx
	movq	%r12, %r14
	movq	%r15, %r13
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_14
LBB0_13:
	movq	%rdx, %r14
	movq	%r15, %r13
LBB0_14:
	movq	%r15, %r12
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_23
LBB0_22:
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
LBB0_23:
	imull	-108(%rbp), %ecx                ## 4-byte Folded Reload
	movslq	%ecx, %rax
	addq	%rax, %rdx
	xorl	%edi, %edi
	cmpq	%rdx, %r14
	sete	%dil
	callq	_assert
	imull	-64(%rbp), %r15d                ## 4-byte Folded Reload
	imull	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	imull	%r15d, %ebx
	movslq	%ebx, %rax
	addq	%rax, %r12
	xorl	%edi, %edi
	cmpq	%r13, %r12
	sete	%dil
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BOX2,4,2                       ## @BOX2
	.no_dead_strip	_halve1Dimage_float
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function halve1Dimage_float
_halve1Dimage_float:                    ; @halve1Dimage_float
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	str	x7, [sp, #24]                   ; 8-byte Folded Spill
	str	x6, [sp, #40]                   ; 8-byte Folded Spill
	mov	x23, x5
	mov	x21, x4
	mov	x25, x3
	mov	x27, x2
	mov	x26, x1
	mov	x24, x0
	cmp	w1, #0
	cinc	w20, w1, lt
	cmp	w2, #0
	cinc	w19, w2, lt
	cmp	w1, #1
	cset	w8, eq
	cmp	w2, #1
	cset	w9, eq
	orr	w0, w8, w9
	bl	_assert
	cmp	w26, w27
	cset	w0, ne
	bl	_assert
	ldr	w28, [x29, #16]
	asr	w22, w20, #1
	str	w27, [sp, #36]                  ; 4-byte Folded Spill
	cmp	w27, #1
	b.ne	LBB0_10
; %bb.1:
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	cmp	w26, #1
	cset	w0, ne
	bl	_assert
	str	x25, [sp]                       ; 8-byte Folded Spill
	mov	x27, x25
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	mov	x19, x21
	cmp	w26, #2
	b.lt	LBB0_20
; %bb.2:
	mov	w25, #0
	ldp	x19, x8, [sp, #16]              ; 16-byte Folded Reload
	sxtw	x20, w8
	ldp	x27, x8, [sp]                   ; 16-byte Folded Reload
	sxtw	x23, w8
	fmov	d9, #0.50000000
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, x20
	add	w25, w25, #1
	cmp	w25, w22
	b.eq	LBB0_20
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w24, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x24
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	d8, [x27]
	ldr	d0, [x27, x20]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	fadd	d0, d0, d8
	fmul	d0, d0, d9
	str	d0, [x19], #8
	add	x27, x27, x23
	subs	w21, w21, #1
	b.eq	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	w28, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x27
	bl	___GLU_SWAP_4_BYTES
	fmov	d8, d0
	add	x0, x27, x20
	bl	___GLU_SWAP_4_BYTES
	b	LBB0_7
LBB0_10:
	asr	w27, w19, #1
	cmp	w26, #1
	b.ne	LBB0_21
; %bb.11:
	mov	w22, #1
	mov	w0, #1
	bl	_assert
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w9, #2
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	b.lt	LBB0_22
; %bb.12:
	mov	w22, #0
	mov	x8, x10
	sxtw	x20, w8
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	sub	x26, x20, w8, sxtw
	stp	x23, x21, [sp, #8]              ; 16-byte Folded Spill
	mov	x8, x23
	sxtw	x23, w8
	fmov	d9, #0.50000000
	mov	x19, x21
	str	x25, [sp]                       ; 8-byte Folded Spill
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x25, x26
	add	x25, x8, x20
	add	w22, w22, #1
	cmp	w22, w27
	b.eq	LBB0_23
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	cmp	w24, #1
	b.lt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x21, x24
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	d8, [x25]
	ldr	d0, [x25, x20]
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	fadd	d0, d0, d8
	fmul	d0, d0, d9
	str	d0, [x19], #8
	add	x25, x25, x23
	subs	w21, w21, #1
	b.eq	LBB0_13
LBB0_18:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	w28, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x25
	bl	___GLU_SWAP_4_BYTES
	fmov	d8, d0
	add	x0, x25, x20
	bl	___GLU_SWAP_4_BYTES
	b	LBB0_17
LBB0_20:
	ldp	x21, x8, [sp, #16]              ; 16-byte Folded Reload
	mul	w8, w8, w26
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	sxtw	x9, w10
	sub	x8, x9, w8, sxtw
	add	x25, x27, x8
	mov	w27, #1
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_24
LBB0_21:
	mov	x8, x25
	mov	x19, x21
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	b	LBB0_25
LBB0_22:
	mov	x8, x25
	mov	x19, x21
	b	LBB0_26
LBB0_23:
	mov	w22, #1
	ldp	x23, x21, [sp, #8]              ; 16-byte Folded Reload
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
LBB0_24:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
LBB0_25:
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
LBB0_26:
	smaddl	x8, w10, w9, x8
	cmp	x25, x8
	cset	w0, eq
	bl	_assert
	mul	w8, w23, w24
	mul	w8, w8, w27
	mul	w8, w8, w22
	add	x8, x21, w8, sxtw
	cmp	x8, x19
	cset	w0, eq
	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
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_assert
	.cfi_endproc
                                        ; -- End function
	.comm	_BOX2,4,2                       ; @BOX2
	.no_dead_strip	_halve1Dimage_float
.subsections_via_symbols
