	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uc_init_wopcm
_uc_init_wopcm:                         ## @uc_init_wopcm
	.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	%rdi, %rbx
	callq	_uc_to_gt
	movq	%rax, %r13
	movq	(%rax), %rdi
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_intel_wopcm_guc_base
	movl	%eax, %r15d
	movq	(%r13), %rdi
	callq	_intel_wopcm_guc_size
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_intel_uc_uses_huc
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_HUC_LOADING_AGENT_GUC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_2:
	testl	%r15d, %r15d
	sete	%al
	testl	%r12d, %r12d
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_i915_probe_error
	movq	_E2BIG@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	movq	%rbx, %rdi
	callq	_intel_uc_supports_guc
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movq	_GUC_WOPCM_OFFSET_MASK@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	movl	(%rbx), %eax
	andl	%r15d, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movl	(%rbx), %edi
	notl	%edi
	andl	%r15d, %edi
	callq	_GEM_BUG_ON
	movq	_GUC_WOPCM_SIZE_MASK@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	movl	(%rbx), %eax
	andl	%r12d, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movl	(%rbx), %edi
	notl	%edi
	andl	%r12d, %edi
	callq	_GEM_BUG_ON
	movq	(%r13), %rdi
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	callq	_i915_inject_load_error
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	_GUC_WOPCM_SIZE_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_GUC_WOPCM_SIZE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	movq	_GUC_WOPCM_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%r12d, %r8d
	orl	%eax, %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_intel_uncore_write_and_verify
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	_GUC_WOPCM_OFFSET_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_GUC_WOPCM_OFFSET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	%r14d, %ecx
	orl	%r8d, %ecx
	movq	_DMA_GUC_WOPCM_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r14d, %r15d
	orl	%r15d, %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_intel_uncore_write_and_verify
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movq	(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_i915_probe_error
	movq	(%r13), %r15
	movq	_DMA_GUC_WOPCM_OFFSET@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, %r12d
	movl	(%r14), %esi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_intel_uncore_read
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_i915_probe_error
	movq	(%r13), %r15
	movq	_GUC_WOPCM_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_i915_mmio_reg_offset
	movl	%eax, %r12d
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_intel_uncore_read
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_i915_probe_error
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_HUC_LOADING_AGENT_GUC,4,2      ## @HUC_LOADING_AGENT_GUC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsuccessful WOPCM partitioning\n"

	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_GUC_WOPCM_OFFSET_MASK,4,2      ## @GUC_WOPCM_OFFSET_MASK
	.comm	_GUC_WOPCM_SIZE_MASK,4,2        ## @GUC_WOPCM_SIZE_MASK
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GUC_WOPCM_SIZE_LOCKED,4,2      ## @GUC_WOPCM_SIZE_LOCKED
	.comm	_GUC_WOPCM_SIZE,4,2             ## @GUC_WOPCM_SIZE
	.comm	_GUC_WOPCM_OFFSET_VALID,4,2     ## @GUC_WOPCM_OFFSET_VALID
	.comm	_DMA_GUC_WOPCM_OFFSET,4,2       ## @DMA_GUC_WOPCM_OFFSET
L_.str.1:                               ## @.str.1
	.asciz	"Failed to init uC WOPCM registers!\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s(%#x)=%#x\n"

L_.str.3:                               ## @.str.3
	.asciz	"DMA_GUC_WOPCM_OFFSET"

L_.str.4:                               ## @.str.4
	.asciz	"GUC_WOPCM_SIZE"

	.no_dead_strip	_uc_init_wopcm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uc_init_wopcm
_uc_init_wopcm:                         ; @uc_init_wopcm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x0
	bl	_uc_to_gt
	mov	x20, x0
	ldp	x0, x19, [x0]
	bl	_intel_wopcm_guc_base
	mov	x21, x0
	ldr	x0, [x20]
	bl	_intel_wopcm_guc_size
	mov	x22, x0
	mov	x0, x23
	bl	_intel_uc_uses_huc
Lloh0:
	adrp	x8, _HUC_LOADING_AGENT_GUC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HUC_LOADING_AGENT_GUC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w24, wzr, w8, eq
	cmp	w21, #0
	ccmp	w22, #0, #4, ne
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_i915_probe_error
Lloh5:
	adrp	x8, _E2BIG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_6
LBB0_2:
	mov	x0, x23
	bl	_intel_uc_supports_guc
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
Lloh8:
	adrp	x26, _GUC_WOPCM_OFFSET_MASK@GOTPAGE
Lloh9:
	ldr	x26, [x26, _GUC_WOPCM_OFFSET_MASK@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w21
	cset	w0, eq
	bl	_GEM_BUG_ON
	ldr	w8, [x26]
	bic	w0, w21, w8
	bl	_GEM_BUG_ON
Lloh10:
	adrp	x25, _GUC_WOPCM_SIZE_MASK@GOTPAGE
Lloh11:
	ldr	x25, [x25, _GUC_WOPCM_SIZE_MASK@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w22
	cset	w0, eq
	bl	_GEM_BUG_ON
	ldr	w8, [x25]
	bic	w0, w22, w8
	bl	_GEM_BUG_ON
	ldr	x0, [x20]
Lloh12:
	adrp	x8, _ENXIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w1, w8
	bl	_i915_inject_load_error
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	w8, [x25]
Lloh15:
	adrp	x9, _GUC_WOPCM_SIZE_LOCKED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GUC_WOPCM_SIZE_LOCKED@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh18:
	adrp	x25, _GUC_WOPCM_SIZE@GOTPAGE
Lloh19:
	ldr	x25, [x25, _GUC_WOPCM_SIZE@GOTPAGEOFF]
	ldr	w1, [x25]
	orr	w4, w9, w22
	mov	x0, x19
	mov	x2, x22
	bl	_intel_uncore_write_and_verify
	mov	x23, x0
Lloh20:
	adrp	x27, _DMA_GUC_WOPCM_OFFSET@GOTPAGE
Lloh21:
	ldr	x27, [x27, _DMA_GUC_WOPCM_OFFSET@GOTPAGEOFF]
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w8, [x26]
Lloh22:
	adrp	x9, _GUC_WOPCM_OFFSET_VALID@GOTPAGE
Lloh23:
	ldr	x9, [x9, _GUC_WOPCM_OFFSET_VALID@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w24
	orr	w3, w8, w9
	ldr	w1, [x27]
	orr	w2, w24, w21
	orr	w4, w9, w2
	mov	x0, x19
	bl	_intel_uncore_write_and_verify
	mov	x23, x0
	cbz	w0, LBB0_6
LBB0_5:
	ldr	x0, [x20]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_i915_probe_error
	ldr	x21, [x20]
	ldr	w0, [x27]
	bl	_i915_mmio_reg_offset
	mov	x22, x0
	ldr	w1, [x27]
	mov	x0, x19
	bl	_intel_uncore_read
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp, #8]
Lloh27:
	adrp	x8, l_.str.3@PAGE
Lloh28:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [sp]
Lloh29:
	adrp	x22, l_.str.2@PAGE
Lloh30:
	add	x22, x22, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_i915_probe_error
	ldr	x20, [x20]
	ldr	w0, [x25]
	bl	_i915_mmio_reg_offset
	mov	x21, x0
	ldr	w1, [x25]
	mov	x0, x19
	bl	_intel_uncore_read
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp, #8]
Lloh31:
	adrp	x8, l_.str.4@PAGE
Lloh32:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [sp]
	mov	x0, x20
	mov	x1, x22
	bl	_i915_probe_error
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_HUC_LOADING_AGENT_GUC,4,2      ; @HUC_LOADING_AGENT_GUC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsuccessful WOPCM partitioning\n"

	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_GUC_WOPCM_OFFSET_MASK,4,2      ; @GUC_WOPCM_OFFSET_MASK
	.comm	_GUC_WOPCM_SIZE_MASK,4,2        ; @GUC_WOPCM_SIZE_MASK
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GUC_WOPCM_SIZE_LOCKED,4,2      ; @GUC_WOPCM_SIZE_LOCKED
	.comm	_GUC_WOPCM_SIZE,4,2             ; @GUC_WOPCM_SIZE
	.comm	_GUC_WOPCM_OFFSET_VALID,4,2     ; @GUC_WOPCM_OFFSET_VALID
	.comm	_DMA_GUC_WOPCM_OFFSET,4,2       ; @DMA_GUC_WOPCM_OFFSET
l_.str.1:                               ; @.str.1
	.asciz	"Failed to init uC WOPCM registers!\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s(%#x)=%#x\n"

l_.str.3:                               ; @.str.3
	.asciz	"DMA_GUC_WOPCM_OFFSET"

l_.str.4:                               ; @.str.4
	.asciz	"GUC_WOPCM_SIZE"

	.no_dead_strip	_uc_init_wopcm
.subsections_via_symbols
