	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_sat_hue_metrics8
_compute_sat_hue_metrics8:              ## @compute_sat_hue_metrics8
	.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	%edx, %r8d
	movq	(%rdi), %rdi
	movl	(%rdi), %r9d
	movl	%r9d, %eax
	imull	%edx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r10d
	incl	%r8d
	imull	%r9d, %r8d
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r10d
	jge	LBB0_7
## %bb.1:
	movq	(%rsi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movslq	(%rcx), %r8
	movslq	%r10d, %rdx
	movq	%r8, %rcx
	imulq	%rdx, %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movq	8(%rsi), %rax
	movq	(%rax), %r9
	movq	8(%rax), %rax
	movslq	(%r9), %r9
	movq	%r9, %r14
	imulq	%rdx, %r14
	shlq	$2, %r14
	addq	(%rax), %r14
	movq	16(%rsi), %rax
	movq	(%rax), %r11
	movq	8(%rax), %rax
	movslq	8(%r11), %r15
	movq	%r15, %rbx
	imulq	%rdx, %rbx
	shlq	$2, %rbx
	addq	16(%rax), %rbx
	movslq	4(%r11), %rsi
	imulq	%rsi, %rdx
	shlq	$2, %rdx
	addq	8(%rax), %rdx
	movl	4(%rdi), %eax
	shlq	$2, %r8
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	shlq	$2, %r9
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	shlq	$2, %r15
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	shlq	$2, %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r10d
	addq	-88(%rbp), %rcx                 ## 8-byte Folded Reload
	addq	-80(%rbp), %r14                 ## 8-byte Folded Reload
	addq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	addq	-64(%rbp), %rdx                 ## 8-byte Folded Reload
	cmpl	-44(%rbp), %r10d                ## 4-byte Folded Reload
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r10d, -48(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdx,%r15,4), %r13d
	movl	(%rbx,%r15,4), %r12d
	addl	$-128, %r13d
	addl	$-128, %r12d
	movl	%r13d, %edi
	movl	%r12d, %esi
	movq	%rcx, %r14
	callq	_hypot
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r15,4)
	movl	$180, %eax
	xorl	%edx, %edx
	movq	_M_PI@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	movl	%eax, %ebx
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_atan2f
	imull	%eax, %ebx
	addl	$180, %ebx
	movl	%ebx, %edi
	callq	_floor
	movl	%eax, %edi
	movl	$360, %esi                      ## imm = 0x168
	callq	_fmod
	movq	%r14, %rcx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, (%r14,%r15,4)
	incq	%r15
	movslq	4(%rdi), %rax
	cmpq	%rax, %r15
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %r10d                ## 4-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PI,4,2                       ## @M_PI
	.no_dead_strip	_compute_sat_hue_metrics8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_sat_hue_metrics8
_compute_sat_hue_metrics8:              ; @compute_sat_hue_metrics8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldr	x24, [x0]
	ldr	w8, [x24]
	mul	w9, w8, w2
	sdiv	w15, w9, w3
	add	w8, w8, w9
	sdiv	w8, w8, w3
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
	cmp	w15, w8
	b.ge	LBB0_7
; %bb.1:
	ldp	x8, x9, [x1]
	ldp	x8, x10, [x8]
	ldr	x10, [x10]
	ldrsw	x11, [x8]
	mul	w8, w11, w15
	add	x25, x10, w8, sxtw #2
	ldp	x9, x8, [x9]
	ldr	x8, [x8]
	ldrsw	x9, [x9]
	mul	w10, w9, w15
	add	x26, x8, w10, sxtw #2
	ldr	x8, [x1, #16]
	ldp	x8, x10, [x8]
	ldpsw	x13, x12, [x8, #4]
	mul	w8, w12, w15
	ldp	x10, x14, [x10, #8]
	add	x27, x14, w8, sxtw #2
	mul	w8, w13, w15
	add	x0, x10, w8, sxtw #2
	ldr	w8, [x24, #4]
	lsl	x10, x11, #2
	lsl	x9, x9, #2
	stp	x9, x10, [sp, #16]              ; 16-byte Folded Spill
	lsl	x10, x12, #2
	lsl	x9, x13, #2
	stp	x9, x10, [sp]                   ; 16-byte Folded Spill
Lloh0:
	adrp	x23, _M_PI@GOTPAGE
Lloh1:
	ldr	x23, [x23, _M_PI@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w15, w15, #1
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x25, x25, x9
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x26, x26, x9
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x27, x27, x9
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	add	x0, x0, x9
	ldr	w9, [sp, #32]                   ; 4-byte Folded Reload
	cmp	w15, w9
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w15, [sp, #36]                  ; 4-byte Folded Spill
	mov	x22, #0
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x28, x22, #2
	ldr	w8, [x0, x28]
	ldr	w9, [x27, x28]
	sub	w19, w8, #128
	sub	w20, w9, #128
	mov	x0, x19
	mov	x1, x20
	bl	_hypot
	str	w0, [x26, x28]
	ldr	w8, [x23]
	mov	x21, x23
	mov	w9, #180
	sdiv	w23, w9, w8
	mov	x0, x19
	mov	x1, x20
	bl	_atan2f
	mul	w8, w0, w23
	mov	x23, x21
	add	w0, w8, #180
	bl	_floor
	mov	w1, #360
	bl	_fmod
	str	w0, [x25, x28]
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	add	x22, x22, #1
	ldrsw	x8, [x24, #4]
	cmp	x22, x8
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w15, [sp, #36]                  ; 4-byte Folded Reload
	b	LBB0_2
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PI,4,2                       ; @M_PI
	.no_dead_strip	_compute_sat_hue_metrics8
.subsections_via_symbols
