	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen6_ppgtt_pin                 ## -- Begin function gen6_ppgtt_pin
	.p2align	4, 0x90
_gen6_ppgtt_pin:                        ## @gen6_ppgtt_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_to_gen6_ppgtt
	movq	%rax, %rbx
	movl	12(%rax), %edi
	callq	_GEM_BUG_ON
	movq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	8(%rbx), %edi
	movq	_GEN6_PD_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PIN_GLOBAL@GOTPCREL(%rip), %rax
	movq	_PIN_HIGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_i915_vma_pin
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	$0, (%rbx)
	movl	%eax, %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN6_PD_ALIGN,4,2              ## @GEN6_PD_ALIGN
	.comm	_PIN_GLOBAL,4,2                 ## @PIN_GLOBAL
	.comm	_PIN_HIGH,4,2                   ## @PIN_HIGH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen6_ppgtt_pin                 ; -- Begin function gen6_ppgtt_pin
	.p2align	2
_gen6_ppgtt_pin:                        ; @gen6_ppgtt_pin
	.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
	bl	_to_gen6_ppgtt
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_GEM_BUG_ON
	ldr	x8, [x19]
	add	x9, x8, #1
	str	x9, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x8, _GEN6_PD_ALIGN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN6_PD_ALIGN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _PIN_GLOBAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PIN_GLOBAL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _PIN_HIGH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PIN_HIGH@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w1, #0
	bl	_i915_vma_pin
	cbz	w0, LBB0_4
; %bb.3:
	str	xzr, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN6_PD_ALIGN,4,2              ; @GEN6_PD_ALIGN
	.comm	_PIN_GLOBAL,4,2                 ; @PIN_GLOBAL
	.comm	_PIN_HIGH,4,2                   ; @PIN_HIGH
.subsections_via_symbols
