	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tonemap_slice
_tonemap_slice:                         ## @tonemap_slice
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r10d
	movq	24(%rsi), %rbx
	movl	(%rbx), %r8d
	movl	%r8d, %eax
	imull	%edx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r12d
	incl	%r10d
	imull	%r8d, %r10d
	movl	%r10d, %eax
	cltd
	idivl	%ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r12d
	jge	LBB0_6
## %bb.1:
	movq	(%rdi), %r15
	movq	16(%rsi), %rcx
	movq	8(%rsi), %r13
	movsd	(%rsi), %xmm0                   ## xmm0 = mem[0],zero
	movl	4(%rcx), %eax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movq	%rcx, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_tonemap
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	incl	%r14d
	movl	4(%rcx), %eax
	cmpl	%eax, %r14d
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_tonemap_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tonemap_slice
_tonemap_slice:                         ; @tonemap_slice
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	ldr	x19, [x1, #24]
	ldr	w8, [x19]
	mul	w9, w8, w2
	sdiv	w20, w9, w3
	add	w8, w8, w9
	sdiv	w25, w8, w3
	cmp	w20, w25
	b.ge	LBB0_6
; %bb.1:
	ldr	x21, [x0]
	ldp	x23, x22, [x1, #8]
	ldr	d8, [x1]
	ldr	w8, [x22, #4]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	cmp	w20, w25
	b.eq	LBB0_6
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
	mov	w24, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	mov	x3, x23
	mov	x4, x24
	mov	x5, x20
	fmov	d0, d8
	bl	_tonemap
	add	w24, w24, #1
	ldr	w8, [x22, #4]
	cmp	w24, w8
	b.lt	LBB0_5
	b	LBB0_2
LBB0_6:
	mov	w0, #0
	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
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_tonemap_slice
.subsections_via_symbols
