	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function halveImage_float
_halveImage_float:                      ## @halveImage_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %rbx
	movl	%edx, %r13d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	cmpl	$1, %esi
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_26
## %bb.1:
	cmpl	$1, %r13d
	je	LBB0_26
## %bb.2:
	movl	24(%rbp), %eax
	movl	16(%rbp), %ecx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %edx
	shrl	$31, %edx
	addl	%esi, %edx
	sarl	%edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edx
	shrl	$31, %edx
	addl	%r13d, %edx
	sarl	%edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%eax, %edx
	imull	%esi, %edx
	movl	%ecx, %esi
	subl	%edx, %esi
	cmpl	$0, 32(%rbp)
	je	LBB0_12
## %bb.3:
	cmpl	$2, %r13d
	jl	LBB0_25
## %bb.4:
	movslq	%eax, %r14
	movslq	%ecx, %rcx
	movslq	%r9d, %r13
	movslq	%esi, %rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rcx), %rdx
	movl	$0, -72(%rbp)                   ## 4-byte Folded Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	-96(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	%rcx, %rbx
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	incl	%esi
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	cmpl	-56(%rbp), %esi                 ## 4-byte Folded Reload
	je	LBB0_25
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	addq	%r14, %rbx
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	incl	%esi
	cmpl	-60(%rbp), %esi                 ## 4-byte Folded Reload
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_11
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	testl	%edi, %edi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	jle	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	%edi, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rbx, %rdi
	callq	___GLU_SWAP_4_BYTES
	movl	%eax, (%r12)
	leaq	(%rbx,%r14), %rdi
	callq	___GLU_SWAP_4_BYTES
	addl	%eax, (%r12)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %rdi
	callq	___GLU_SWAP_4_BYTES
	addl	%eax, (%r12)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %rdi
	callq	___GLU_SWAP_4_BYTES
	movl	(%r12), %ecx
	leal	(%rcx,%rax), %edx
	addl	$3, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	addl	%eax, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	movl	%edx, (%r12)
	addq	$4, %r12
	addq	%r13, %rbx
	decl	%r15d
	jne	LBB0_9
	jmp	LBB0_10
LBB0_26:
	movl	%r13d, %eax
	xorl	$1, %eax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	xorl	$1, %ecx
	xorl	%edi, %edi
	orl	%eax, %ecx
	setne	%dil
	movl	%r9d, %r15d
	callq	_assert
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	movl	%r13d, %edx
	movq	%rbx, %rcx
	movq	%r12, %r8
	movl	%r15d, %r9d
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_halve1Dimage_float             ## TAILCALL
LBB0_12:
	cmpl	$2, %r13d
	jl	LBB0_25
## %bb.13:
	movslq	%eax, %r10
	movslq	%ecx, %r8
	movslq	%r9d, %r11
	movslq	%esi, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%edi, %eax
	andl	$-2, %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	leaq	(%r10,%r8), %rdx
	leaq	(%rdx,%r11), %r9
	leaq	(%r8,%r11), %r14
	leaq	(%r10,%r11), %r15
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_14 Depth=1
	addq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	%r8, %rbx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_25
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##       Child Loop BB0_19 Depth 3
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=2
	addq	%r10, %rbx
	incl	%ecx
	cmpl	-60(%rbp), %ecx                 ## 4-byte Folded Reload
	je	LBB0_24
LBB0_16:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_19 Depth 3
	testl	%edi, %edi
	jle	LBB0_23
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpl	$1, %edi
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_14 Depth=1
                                        ##     Parent Loop BB0_16 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rbx,%r10), %edi
	addl	(%rbx), %edi
	addl	(%rbx,%r8), %edi
	movq	%r9, %rax
	movl	(%rbx,%rdx), %r9d
	leal	(%r9,%rdi), %r13d
	addl	$3, %r13d
                                        ## kill: def $edi killed $edi killed $rdi
	addl	%r9d, %edi
	movq	%rax, %r9
	cmovnsl	%edi, %r13d
	sarl	$2, %r13d
	movl	%r13d, (%r12)
	movl	(%rbx,%r15), %edi
	addl	(%rbx,%r11), %edi
	addl	(%rbx,%r14), %edi
	movl	(%rbx,%rax), %ecx
	addq	%r11, %rbx
	leal	(%rcx,%rdi), %eax
	addl	$3, %eax
                                        ## kill: def $edi killed $edi killed $rdi
	addl	%ecx, %edi
	cmovnsl	%edi, %eax
	sarl	$2, %eax
	movl	%eax, 4(%r12)
	addq	$8, %r12
	addq	%r11, %rbx
	addl	$-2, %esi
	jne	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=2
	testb	$1, %dil
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	(%rbx,%r10), %eax
	addl	(%rbx), %eax
	leaq	(%rbx,%r8), %rsi
	addl	(%rbx,%r8), %eax
	movl	(%r10,%rsi), %r13d
	leal	(%rax,%r13), %esi
	addl	$3, %esi
                                        ## kill: def $eax killed $eax killed $rax
	addl	%r13d, %eax
	cmovnsl	%eax, %esi
	sarl	$2, %esi
	movl	%esi, (%r12)
	addq	$4, %r12
	addq	%r11, %rbx
	jmp	LBB0_23
LBB0_25:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_halveImage_float
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function halveImage_float
_halveImage_float:                      ; @halveImage_float
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x7
	mov	x25, x6
	mov	x28, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x26, x0
	ldr	w22, [x29, #16]
	str	w1, [sp, #24]                   ; 4-byte Folded Spill
	cmp	w1, #1
	b.eq	LBB0_12
; %bb.1:
	cmp	w21, #1
	b.eq	LBB0_12
; %bb.2:
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w9, #0
	cinc	w8, w9, lt
	asr	w27, w8, #1
	cmp	w21, #0
	cinc	w8, w21, lt
	asr	w8, w8, #1
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	mul	w8, w24, w9
	sxtw	x25, w25
	sub	x8, x25, w8, sxtw
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	cmp	w21, #2
	cbz	w22, LBB0_13
; %bb.3:
	b.lt	LBB0_22
; %bb.4:
	mov	w9, #0
	sxtw	x24, w24
	sxtw	x28, w28
	add	x23, x24, x25
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x20, x8
	add	x20, x8, x25
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	add	w9, w9, #1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w9, w8
	b.eq	LBB0_22
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w21, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x20, x20, x24
	add	w21, w21, #1
	cmp	w21, w27
	b.eq	LBB0_5
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	cmp	w26, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x22, x26
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x20
	bl	___GLU_SWAP_4_BYTES
	str	w0, [x19]
	add	x0, x20, x24
	bl	___GLU_SWAP_4_BYTES
	ldr	w8, [x19]
	add	w8, w8, w0
	str	w8, [x19]
	add	x0, x20, x25
	bl	___GLU_SWAP_4_BYTES
	ldr	w8, [x19]
	add	w8, w8, w0
	str	w8, [x19]
	add	x0, x20, x23
	bl	___GLU_SWAP_4_BYTES
	ldr	w8, [x19]
	add	w8, w8, w0
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	str	w8, [x19], #4
	add	x20, x20, x28
	subs	w22, w22, #1
	b.ne	LBB0_11
	b	LBB0_8
LBB0_12:
	ldr	w23, [sp, #24]                  ; 4-byte Folded Reload
	cmp	w23, #1
	ccmp	w21, #1, #0, eq
	cset	w0, ne
	bl	_assert
	str	w22, [x29, #16]
	mov	x0, x26
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	mov	x5, x28
	mov	x6, x25
	mov	x7, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_halve1Dimage_float
LBB0_13:
	b.lt	LBB0_22
; %bb.14:
	mov	w8, #0
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	sxtw	x9, w24
	mov	x10, x28
	sxtw	x10, w10
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
                                        ; kill: def $w11 killed $w11 killed $x11 def $x11
	sxtw	x11, w11
	add	x12, x9, x25
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x13, x20, x11
	add	x20, x13, x25
	add	w8, w8, #1
	ldr	w13, [sp, #20]                  ; 4-byte Folded Reload
	cmp	w8, w13
	b.eq	LBB0_22
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;       Child Loop BB0_21 Depth 3
	ldr	w13, [sp, #24]                  ; 4-byte Folded Reload
	cmp	w13, #2
	b.lt	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	w13, #0
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	add	x20, x20, x9
	add	w13, w13, #1
	cmp	w13, w27
	b.eq	LBB0_15
LBB0_19:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_21 Depth 3
	cmp	w26, #1
	b.lt	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	mov	x14, x26
LBB0_21:                                ;   Parent Loop BB0_16 Depth=1
                                        ;     Parent Loop BB0_19 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w15, [x20]
	ldr	w16, [x20, x9]
	ldr	w17, [x20, x25]
	add	w15, w16, w15
	add	w15, w15, w17
	ldr	w16, [x20, x12]
	add	w15, w15, w16
	add	w16, w15, #3
	cmp	w15, #0
	csel	w15, w16, w15, lt
	asr	w15, w15, #2
	str	w15, [x19], #4
	add	x20, x20, x10
	subs	w14, w14, #1
	b.ne	LBB0_21
	b	LBB0_18
LBB0_22:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_halveImage_float
.subsections_via_symbols
