	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_wopcm_init_early         ## -- Begin function intel_wopcm_init_early
	.p2align	4, 0x90
_intel_wopcm_init_early:                ## @intel_wopcm_init_early
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_wopcm_to_i915
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HAS_GT_UC
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$11, %eax
	jl	LBB0_2
## %bb.3:
	movq	_GEN11_WOPCM_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_GEN9_WOPCM_SIZE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	(%rbx), %edi
	leal	1023(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$10, %edx
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DRM_DEV_DEBUG_DRIVER           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN11_WOPCM_SIZE,4,2           ## @GEN11_WOPCM_SIZE
	.comm	_GEN9_WOPCM_SIZE,4,2            ## @GEN9_WOPCM_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WOPCM: %uK\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_wopcm_init_early         ; -- Begin function intel_wopcm_init_early
	.p2align	2
_intel_wopcm_init_early:                ; @intel_wopcm_init_early
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_wopcm_to_i915
	mov	x20, x0
	bl	_HAS_GT_UC
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_INTEL_GEN
Lloh0:
	adrp	x8, _GEN11_WOPCM_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN11_WOPCM_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GEN9_WOPCM_SIZE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GEN9_WOPCM_SIZE@GOTPAGEOFF]
	cmp	w0, #10
	csel	x8, x8, x9, gt
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	w0, [x20]
	add	w9, w8, #1023
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #10
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_DEV_DEBUG_DRIVER
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN11_WOPCM_SIZE,4,2           ; @GEN11_WOPCM_SIZE
	.comm	_GEN9_WOPCM_SIZE,4,2            ; @GEN9_WOPCM_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WOPCM: %uK\n"

.subsections_via_symbols
