	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wa_list_srm
_wa_list_srm:                           ## @wa_list_srm
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	_MI_STORE_REGISTER_MEM@GOTPCREL(%rip), %rax
	movq	_MI_SRM_LRM_GLOBAL_GTT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_INTEL_GEN
	cmpl	$8, %eax
	setge	-48(%rbp)                       ## 1-byte Folded Spill
	cmpl	$0, (%r14)
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	8(%r14), %r13
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%r15,4), %edi
	callq	_i915_mmio_reg_offset
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_mcr_range
	cmpq	$1, %rax
	adcl	$0, %ebx
	incq	%r15
	cmpl	(%r14), %r15d
	jb	LBB0_3
## %bb.4:
	shll	$2, %ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_intel_ring_begin
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.12:
	movq	%rbx, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r14)
	je	LBB0_11
## %bb.7:
	xorl	%ecx, %ecx
	movb	-48(%rbp), %al                  ## 1-byte Reload
	movb	%al, %cl
	movslq	-64(%rbp), %rax                 ## 4-byte Folded Reload
	addq	%rax, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	movl	(%r14), %eax
	addq	$8, %r15
	cmpq	%rax, %r13
	jae	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r13,4), %edi
	callq	_i915_mmio_reg_offset
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_mcr_range
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%rax, (%r12)
	movq	%rbx, 8(%r12)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_i915_ggtt_offset
	cltq
	addq	%r15, %rax
	movq	%rax, 16(%r12)
	movq	$0, 24(%r12)
	addq	$32, %r12
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_11:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_intel_ring_advance
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MI_STORE_REGISTER_MEM,4,2      ## @MI_STORE_REGISTER_MEM
	.comm	_MI_SRM_LRM_GLOBAL_GTT,4,2      ## @MI_SRM_LRM_GLOBAL_GTT
	.no_dead_strip	_wa_list_srm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wa_list_srm
_wa_list_srm:                           ; @wa_list_srm
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _MI_STORE_REGISTER_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MI_STORE_REGISTER_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MI_SRM_LRM_GLOBAL_GTT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MI_SRM_LRM_GLOBAL_GTT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	sxtw	x23, w8
	mov	x0, x22
	bl	_INTEL_GEN
	cmp	w0, #7
	cinc	x25, x23, gt
	ldr	w8, [x21]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x24, #0
	mov	w23, #0
	ldr	x26, [x21, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26, x24, lsl #2]
	bl	_i915_mmio_reg_offset
	mov	x1, x0
	mov	x0, x22
	bl	_mcr_range
	cmp	x0, #0
	cinc	w23, w23, eq
	ldr	w8, [x21]
	add	x24, x24, #1
	cmp	w24, w8
	b.lo	LBB0_2
; %bb.3:
	lsl	w1, w23, #2
	b	LBB0_5
LBB0_4:
	mov	w1, #0
LBB0_5:
	mov	x0, x19
	bl	_intel_ring_begin
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_7:
	ldr	w8, [x21]
	cbz	w8, LBB0_12
; %bb.8:
	mov	x26, #0
	mov	x27, #0
	ldr	x28, [x21, #8]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x27, x27, #1
	ldr	w8, [x21]
	add	x26, x26, #8
	cmp	x27, x8
	b.hs	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28, x27, lsl #2]
	bl	_i915_mmio_reg_offset
	mov	x24, x0
	mov	x0, x22
	mov	x1, x24
	bl	_mcr_range
	cbnz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	stp	x25, x24, [x23]
	mov	x0, x20
	bl	_i915_ggtt_offset
	add	x8, x26, w0, sxtw
	stp	x8, xzr, [x23, #16]
	add	x23, x23, #32
	b	LBB0_9
LBB0_12:
	mov	x0, x19
	mov	x1, x23
	bl	_intel_ring_advance
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MI_STORE_REGISTER_MEM,4,2      ; @MI_STORE_REGISTER_MEM
	.comm	_MI_SRM_LRM_GLOBAL_GTT,4,2      ; @MI_SRM_LRM_GLOBAL_GTT
	.no_dead_strip	_wa_list_srm
.subsections_via_symbols
