	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g4x_program_watermarks
_g4x_program_watermarks:                ## @g4x_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$0, -24(%rbp)
	leaq	-24(%rbp), %r14
	movq	%r14, %rsi
	callq	_g4x_merge_wm
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	(%rbx), %edi
	movl	-24(%rbp), %esi
	movl	$1, %edx
	callq	_is_disabling
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	__intel_set_memory_cxsr
LBB0_3:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_g4x_write_wm_values
	movl	(%rbx), %edi
	movl	-24(%rbp), %esi
	movl	$1, %edx
	callq	_is_enabling
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	__intel_set_memory_cxsr
LBB0_5:
	movl	-24(%rbp), %eax
	movl	%eax, (%rbx)
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_g4x_program_watermarks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g4x_program_watermarks
_g4x_program_watermarks:                ; @g4x_program_watermarks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	wzr, [sp, #8]
	add	x1, sp, #8
	bl	_g4x_merge_wm
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w0, [x19]
	ldr	w1, [sp, #8]
	mov	w2, #1
	bl	_is_disabling
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	__intel_set_memory_cxsr
LBB0_3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_g4x_write_wm_values
	ldr	w0, [x19]
	ldr	w1, [sp, #8]
	mov	w2, #1
	bl	_is_enabling
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #1
	bl	__intel_set_memory_cxsr
LBB0_5:
	ldr	w8, [sp, #8]
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_g4x_program_watermarks
.subsections_via_symbols
