	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g4x_check_srwm
_g4x_check_srwm:                        ## @g4x_check_srwm
	.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
	pushq	%rax
	.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, %r13
	movl	%edx, %r15d
	movl	%esi, %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	(%r13), %edx
	cmpl	%ebx, %edx
	jge	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	jmp	LBB0_2
LBB0_3:
	movl	(%r12), %edx
	cmpl	%r15d, %edx
	jge	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r15d, %esi
LBB0_2:
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$1, %r14d
	orl	%ebx, %r15d
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SR watermark: display plane %d, cursor %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"display watermark is too large(%d/%ld), disabling\n"

L_.str.2:                               ## @.str.2
	.asciz	"cursor watermark is too large(%d/%ld), disabling\n"

L_.str.3:                               ## @.str.3
	.asciz	"SR latency is 0, disabling\n"

	.no_dead_strip	_g4x_check_srwm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g4x_check_srwm
_g4x_check_srwm:                        ; @g4x_check_srwm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	stp	x20, x19, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x22]
	cmp	w8, w20
	b.ge	LBB0_2
; %bb.1:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x20, x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_2:
	ldr	w8, [x21]
	cmp	w8, w19
	b.ge	LBB0_4
; %bb.3:
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	stp	x19, x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_4:
	orr	w8, w19, w20
	cbz	w8, LBB0_6
; %bb.5:
	mov	w0, #1
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_7:
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SR watermark: display plane %d, cursor %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"display watermark is too large(%d/%ld), disabling\n"

l_.str.2:                               ; @.str.2
	.asciz	"cursor watermark is too large(%d/%ld), disabling\n"

l_.str.3:                               ; @.str.3
	.asciz	"SR latency is 0, disabling\n"

	.no_dead_strip	_g4x_check_srwm
.subsections_via_symbols
