	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shadow_batch_pin
_shadow_batch_pin:                      ## @shadow_batch_pin
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	8(%rdi), %rbx
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_CMDPARSER_USES_GGTT
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_PIN_GLOBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_4
LBB0_2:
	movq	(%r15), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.3:
	movq	_PIN_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_i915_gem_object_set_readonly
LBB0_4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	%r15d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i915_gem_object_pin            ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PIN_GLOBAL,4,2                 ## @PIN_GLOBAL
	.comm	_PIN_USER,4,2                   ## @PIN_USER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot prevent post-scan tampering without RO capable vm\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_shadow_batch_pin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shadow_batch_pin
_shadow_batch_pin:                      ; @shadow_batch_pin
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldp	x8, x20, [x0]
	ldr	x21, [x8]
	mov	x0, x20
	bl	_CMDPARSER_USES_GGTT
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PIN_GLOBAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIN_GLOBAL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	b	LBB0_4
LBB0_2:
	ldr	x20, [x21]
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _PIN_USER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIN_USER@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_i915_gem_object_set_readonly
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_i915_gem_object_pin
LBB0_5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PIN_GLOBAL,4,2                 ; @PIN_GLOBAL
	.comm	_PIN_USER,4,2                   ; @PIN_USER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot prevent post-scan tampering without RO capable vm\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_shadow_batch_pin
.subsections_via_symbols
