	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i830_update_wm
_i830_update_wm:                        ## @i830_update_wm
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	callq	_single_enabled_crtc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%r15)
	movq	_latency_ns@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_i830_wm_info@GOTPCREL(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	movl	$4, %ecx
	callq	_intel_calculate_wm
	movl	%eax, %r14d
	movq	_FW_BLC@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	andl	$-4096, %ebx                    ## imm = 0xF000
	orl	%r14d, %ebx
	orl	$768, %ebx                      ## imm = 0x300
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_DRM_DEBUG_KMS
	movl	(%r15), %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i830_wm_info,4,2               ## @i830_wm_info
	.comm	_latency_ns,4,2                 ## @latency_ns
	.comm	_FW_BLC,4,2                     ## @FW_BLC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting FIFO watermarks - A: %d\n"

	.no_dead_strip	_i830_update_wm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i830_update_wm
_i830_update_wm:                        ; @i830_update_wm
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x21, [x0]
	bl	_single_enabled_crtc
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w20, [x0]
	ldr	x8, [x21]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	mov	x2, x0
Lloh0:
	adrp	x8, _latency_ns@GOTPAGE
Lloh1:
	ldr	x8, [x8, _latency_ns@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x1, _i830_wm_info@GOTPAGE
Lloh4:
	ldr	x1, [x1, _i830_wm_info@GOTPAGEOFF]
	mov	x0, x20
	mov	w3, #4
	bl	_intel_calculate_wm
	mov	x19, x0
Lloh5:
	adrp	x21, _FW_BLC@GOTPAGE
Lloh6:
	ldr	x21, [x21, _FW_BLC@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_I915_READ
	and	w8, w0, #0xfffff000
	orr	w8, w19, w8
	orr	w20, w8, #0x300
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG_KMS
	ldr	w0, [x21]
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_I915_WRITE
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_i830_wm_info,4,2               ; @i830_wm_info
	.comm	_latency_ns,4,2                 ; @latency_ns
	.comm	_FW_BLC,4,2                     ; @FW_BLC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting FIFO watermarks - A: %d\n"

	.no_dead_strip	_i830_update_wm
.subsections_via_symbols
