	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_pin            ## -- Begin function i915_gem_object_pin
	.p2align	4, 0x90
_i915_gem_object_pin:                   ## @i915_gem_object_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	%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
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_DRM_I915_GEM_OBJECT_MAX_PIN_COUNT@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_2:
	cmpq	$0, 32(%rbx)
	je	LBB0_11
## %bb.3:
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.4:
	movl	8(%rbx), %edx
	leal	-1(%r12), %eax
	testl	%eax, %edx
	je	LBB0_6
## %bb.5:
	movl	40(%rbx), %r9d
	jmp	LBB0_9
LBB0_6:
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.7:
	cmpl	$0, 40(%rbx)
	jne	LBB0_14
## %bb.8:
	movl	8(%rbx), %edx
	xorl	%r9d, %r9d
LBB0_9:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	callq	_WARN
	movq	%rbx, %rdi
	callq	_i915_gem_object_unbind
	testl	%eax, %eax
	jne	LBB0_18
## %bb.10:
	cmpq	$0, 32(%rbx)
	jne	LBB0_14
LBB0_11:
	movq	24(%rbx), %rax
	movq	(%rax), %r13
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_i915_gem_object_bind_to_gtt
	testl	%eax, %eax
	jne	LBB0_18
## %bb.12:
	cmpl	$0, (%r13)
	jne	LBB0_14
## %bb.13:
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_i915_gem_gtt_bind_object
LBB0_14:
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.15:
	cmpl	$0, 20(%rbx)
	jne	LBB0_17
## %bb.16:
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_i915_gem_gtt_bind_object
LBB0_17:
	incq	(%rbx)
	orl	%r14d, 12(%rbx)
	xorl	%eax, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_I915_GEM_OBJECT_MAX_PIN_COUNT,8,3 ## @DRM_I915_GEM_OBJECT_MAX_PIN_COUNT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bo is already pinned with incorrect alignment: offset=%x, req.alignment=%x, req.map_and_fenceable=%d, obj->map_and_fenceable=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_pin            ; -- Begin function i915_gem_object_pin
	.p2align	2
_i915_gem_object_pin:                   ; @i915_gem_object_pin
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DRM_I915_GEM_OBJECT_MAX_PIN_COUNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_I915_GEM_OBJECT_MAX_PIN_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_2:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_11
; %bb.3:
	cbz	w22, LBB0_6
; %bb.4:
	ldr	w2, [x20, #8]
	sub	w8, w22, #1
	tst	w2, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w5, [x20, #40]
	b	LBB0_9
LBB0_6:
	cbz	w19, LBB0_17
; %bb.7:
	ldr	w8, [x20, #40]
	cbnz	w8, LBB0_14
; %bb.8:
	mov	w5, #0
	ldr	w2, [x20, #8]
LBB0_9:
	ldr	x0, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x22
	mov	x4, x19
	bl	_WARN
	mov	x0, x20
	bl	_i915_gem_object_unbind
	cbnz	w0, LBB0_18
; %bb.10:
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_14
LBB0_11:
	ldr	x8, [x20, #24]
	ldr	x23, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	bl	_i915_gem_object_bind_to_gtt
	cbnz	w0, LBB0_18
; %bb.12:
	ldr	w8, [x23]
	cbnz	w8, LBB0_14
; %bb.13:
	ldr	w1, [x20, #16]
	mov	x0, x20
	bl	_i915_gem_gtt_bind_object
LBB0_14:
	cbz	w19, LBB0_17
; %bb.15:
	ldr	w8, [x20, #20]
	cbnz	w8, LBB0_17
; %bb.16:
	ldr	w1, [x20, #16]
	mov	x0, x20
	bl	_i915_gem_gtt_bind_object
LBB0_17:
	mov	w0, #0
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	ldr	w8, [x20, #12]
	orr	w8, w8, w19
	str	w8, [x20, #12]
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_I915_GEM_OBJECT_MAX_PIN_COUNT,8,3 ; @DRM_I915_GEM_OBJECT_MAX_PIN_COUNT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bo is already pinned with incorrect alignment: offset=%x, req.alignment=%x, req.map_and_fenceable=%d, obj->map_and_fenceable=%d\n"

.subsections_via_symbols
