	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_write_wm_level
_skl_write_wm_level:                    ## @skl_write_wm_level
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %edi
	xorl	%eax, %eax
	cmpq	$0, 16(%rdx)
	movl	$0, %ecx
	je	LBB0_2
## %bb.1:
	movq	_PLANE_WM_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	cmpq	$0, 8(%rdx)
	je	LBB0_4
## %bb.3:
	movq	_PLANE_WM_IGNORE_LINES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%ecx, %eax
	orl	(%rdx), %eax
	movl	4(%rdx), %esi
	movq	_PLANE_WM_LINES_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%eax, %esi
	popq	%rbp
	jmp	_I915_WRITE_FW                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANE_WM_EN,4,2                ## @PLANE_WM_EN
	.comm	_PLANE_WM_IGNORE_LINES,4,2      ## @PLANE_WM_IGNORE_LINES
	.comm	_PLANE_WM_LINES_SHIFT,4,2       ## @PLANE_WM_LINES_SHIFT
	.no_dead_strip	_skl_write_wm_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_write_wm_level
_skl_write_wm_level:                    ; @skl_write_wm_level
	.cfi_startproc
; %bb.0:
	mov	x0, x1
Lloh0:
	adrp	x8, _PLANE_WM_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLANE_WM_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	x10, x9, [x2, #8]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
Lloh3:
	adrp	x9, _PLANE_WM_IGNORE_LINES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PLANE_WM_IGNORE_LINES@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
	ldp	w9, w10, [x2]
Lloh6:
	adrp	x11, _PLANE_WM_LINES_SHIFT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PLANE_WM_LINES_SHIFT@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh8:
	ldr	w9, [x11]
	lsl	w9, w10, w9
	orr	w1, w8, w9
	b	_I915_WRITE_FW
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANE_WM_EN,4,2                ; @PLANE_WM_EN
	.comm	_PLANE_WM_IGNORE_LINES,4,2      ; @PLANE_WM_IGNORE_LINES
	.comm	_PLANE_WM_LINES_SHIFT,4,2       ; @PLANE_WM_LINES_SHIFT
	.no_dead_strip	_skl_write_wm_level
.subsections_via_symbols
