	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function engine_wa_list_verify
_engine_wa_list_verify:                 ## @engine_wa_list_verify
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_create_scratch
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.22:
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_3:
	movq	%rbx, %rdi
	callq	_intel_context_create_request
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
LBB0_5:
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_20
LBB0_6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_wa_list_srm
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_7
LBB0_20:
	movq	%r15, %rdi
	callq	_i915_vma_unpin
	movq	%r15, %rdi
	callq	_i915_vma_put
LBB0_21:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_i915_request_add
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rdx         ## imm = 0x66666667
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$33, %rdx
	addl	%eax, %edx
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_i915_request_wait
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	movl	(%r15), %edi
	movq	_I915_MAP_WB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i915_gem_object_pin_map
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	jmp	LBB0_5
LBB0_8:
	movq	_ETIME@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_20
LBB0_11:
	cmpl	$0, (%r14)
	je	LBB0_12
## %bb.13:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rcx
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movl	(%r14), %eax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jae	LBB0_19
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	(%rcx,%rbx,4), %edi
	callq	_i915_mmio_reg_offset
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_mcr_range
	testq	%rax, %rax
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12), %rdi
	movl	4(%r14), %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_wa_verify
	testl	%eax, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%r13d, %r13d
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_12:
	xorl	%r13d, %r13d
LBB0_19:
	movl	(%r15), %edi
	callq	_i915_gem_object_unpin_map
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.comm	_ETIME,4,2                      ## @ETIME
	.comm	_I915_MAP_WB,4,2                ## @I915_MAP_WB
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_engine_wa_list_verify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function engine_wa_list_verify
_engine_wa_list_verify:                 ; @engine_wa_list_verify
	.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	x21, x1
	ldr	w1, [x1]
	cbz	w1, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x0, [x8]
	bl	_create_scratch
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	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_3:
	mov	w23, #0
	b	LBB0_9
LBB0_4:
	mov	x0, x22
	bl	_intel_context_create_request
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x22
LBB0_6:
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_8
LBB0_7:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_wa_list_srm
	mov	x23, x0
	cbz	w0, LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_i915_vma_unpin
	mov	x0, x19
	bl	_i915_vma_put
LBB0_9:
	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
	ret
LBB0_10:
	mov	x0, x22
	bl	_i915_request_add
Lloh0:
	adrp	x8, _HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w2, w8, w9
	mov	x0, x22
	mov	w1, #0
	bl	_i915_request_wait
	tbnz	x0, #63, LBB0_13
; %bb.11:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _I915_MAP_WB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I915_MAP_WB@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_i915_gem_object_pin_map
	mov	x24, x0
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x24
	b	LBB0_6
LBB0_13:
Lloh6:
	adrp	x8, _ETIME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_8
LBB0_14:
	ldr	w8, [x21]
	cbz	w8, LBB0_20
; %bb.15:
	mov	x26, #0
	mov	x27, #0
	mov	w23, #0
	ldr	x28, [x21, #8]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x27, x27, #1
	ldr	w8, [x21]
	add	x26, x26, #4
	cmp	x27, x8
	b.hs	LBB0_21
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w25, [x22, #4]
	ldr	w0, [x28, x27, lsl #2]
	bl	_i915_mmio_reg_offset
	mov	x1, x0
	mov	x0, x25
	bl	_mcr_range
	cbnz	x0, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x0, x28, x26
	ldr	w2, [x21, #4]
	ldr	x1, [x24, x27, lsl #3]
	mov	x3, x20
	bl	_wa_verify
	cbnz	w0, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
Lloh9:
	adrp	x8, _ENXIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_16
LBB0_20:
	mov	w23, #0
LBB0_21:
	ldr	w0, [x19]
	bl	_i915_gem_object_unpin_map
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_ETIME,4,2                      ; @ETIME
	.comm	_I915_MAP_WB,4,2                ; @I915_MAP_WB
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_engine_wa_list_verify
.subsections_via_symbols
