	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ilk_program_watermarks
_ilk_program_watermarks:                ## @ilk_program_watermarks
	.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
	movl	$0, -48(%rbp)
	movl	$0, -72(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movl	$0, -56(%rbp)
	leaq	-96(%rbp), %r15
	movq	%r15, %rsi
	callq	_ilk_compute_wm_config
	movq	_INTEL_DDB_PART_1_2@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	-64(%rbp), %r12
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movq	%r12, %r8
	callq	_ilk_compute_wm_maximums
	leaq	-48(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_ilk_wm_merge
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	movq	%r14, %rsi
	cmpl	$7, %eax
	jl	LBB0_4
## %bb.1:
	cmpl	$1, -96(%rbp)
	movq	%r14, %rsi
	jne	LBB0_4
## %bb.2:
	cmpq	$0, -88(%rbp)
	movq	%r14, %rsi
	je	LBB0_4
## %bb.3:
	movq	_INTEL_DDB_PART_5_6@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-96(%rbp), %rdx
	leaq	-64(%rbp), %r12
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r12, %r8
	callq	_ilk_compute_wm_maximums
	leaq	-72(%rbp), %r15
	movq	%rbx, %rdi
	leaq	-96(%rbp), %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_ilk_wm_merge
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_ilk_find_best_result
	movq	%rax, %rsi
LBB0_4:
	cmpq	%r14, %rsi
	je	LBB0_6
## %bb.5:
	movq	_INTEL_DDB_PART_5_6@GOTPCREL(%rip), %r13
LBB0_6:
	movl	(%r13), %edx
	leaq	-56(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_ilk_compute_wm_results
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ilk_write_wm_values
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_DDB_PART_1_2,4,2         ## @INTEL_DDB_PART_1_2
	.comm	_INTEL_DDB_PART_5_6,4,2         ## @INTEL_DDB_PART_5_6
	.no_dead_strip	_ilk_program_watermarks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ilk_program_watermarks
_ilk_program_watermarks:                ; @ilk_program_watermarks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	str	wzr, [sp, #40]
	str	wzr, [sp, #32]
	stp	xzr, xzr, [sp, #8]
	str	wzr, [sp]
	add	x1, sp, #8
	bl	_ilk_compute_wm_config
Lloh0:
	adrp	x20, _INTEL_DDB_PART_1_2@GOTPAGE
Lloh1:
	ldr	x20, [x20, _INTEL_DDB_PART_1_2@GOTPAGEOFF]
	ldr	w3, [x20]
	add	x2, sp, #8
	add	x4, sp, #24
	mov	x0, x19
	mov	w1, #1
	bl	_ilk_compute_wm_maximums
	add	x21, sp, #40
	add	x1, sp, #8
	add	x2, sp, #24
	add	x3, sp, #40
	mov	x0, x19
	bl	_ilk_wm_merge
	mov	x0, x19
	bl	_INTEL_GEN
	add	x1, sp, #40
Lloh2:
	adrp	x22, _INTEL_DDB_PART_5_6@GOTPAGE
Lloh3:
	ldr	x22, [x22, _INTEL_DDB_PART_5_6@GOTPAGEOFF]
	cmp	w0, #7
	b.lt	LBB0_3
; %bb.1:
	ldr	w8, [sp, #8]
	ldr	x9, [sp, #16]
	cmp	w8, #1
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_3
; %bb.2:
	ldr	w3, [x22]
	add	x2, sp, #8
	add	x4, sp, #24
	mov	x0, x19
	mov	w1, #1
	bl	_ilk_compute_wm_maximums
	add	x1, sp, #8
	add	x2, sp, #24
	add	x3, sp, #32
	mov	x0, x19
	bl	_ilk_wm_merge
	add	x1, sp, #40
	add	x2, sp, #32
	mov	x0, x19
	bl	_ilk_find_best_result
	mov	x1, x0
LBB0_3:
	cmp	x1, x21
	csel	x8, x20, x22, eq
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x19
	bl	_ilk_compute_wm_results
	mov	x1, sp
	mov	x0, x19
	bl	_ilk_write_wm_values
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_DDB_PART_1_2,4,2         ; @INTEL_DDB_PART_1_2
	.comm	_INTEL_DDB_PART_5_6,4,2         ; @INTEL_DDB_PART_5_6
	.no_dead_strip	_ilk_program_watermarks
.subsections_via_symbols
