	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_get_tiling            ## -- Begin function i915_gem_get_tiling
	.p2align	4, 0x90
_i915_gem_get_tiling:                   ## @i915_gem_get_tiling
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movl	16(%rsi), %eax
	movq	%rdx, %rsi
	movl	%eax, %edx
	callq	_drm_gem_object_lookup
	movl	%eax, %edi
	callq	_to_intel_bo
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r15), %eax
	movl	%eax, (%rbx)
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.3:
	movq	(%r12), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_8
LBB0_5:
	movq	8(%r12), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_8
LBB0_6:
	movq	_I915_BIT_6_SWIZZLE_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	8(%rbx), %rax
LBB0_8:
	addq	$8, %rbx
	movq	_I915_BIT_6_SWIZZLE_9_17@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	_I915_BIT_6_SWIZZLE_9@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_10:
	movq	_I915_BIT_6_SWIZZLE_9_10_17@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	_I915_BIT_6_SWIZZLE_9_10@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_12:
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_drm_gem_object_unreference
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_I915_BIT_6_SWIZZLE_NONE,8,3    ## @I915_BIT_6_SWIZZLE_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown tiling mode\n"

	.comm	_I915_BIT_6_SWIZZLE_9_17,8,3    ## @I915_BIT_6_SWIZZLE_9_17
	.comm	_I915_BIT_6_SWIZZLE_9,8,3       ## @I915_BIT_6_SWIZZLE_9
	.comm	_I915_BIT_6_SWIZZLE_9_10_17,8,3 ## @I915_BIT_6_SWIZZLE_9_10_17
	.comm	_I915_BIT_6_SWIZZLE_9_10,8,3    ## @I915_BIT_6_SWIZZLE_9_10
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_get_tiling            ; -- Begin function i915_gem_get_tiling
	.p2align	2
_i915_gem_get_tiling:                   ; @i915_gem_get_tiling
	.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	x8, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	w2, [x1, #16]
	mov	x1, x8
	bl	_drm_gem_object_lookup
	bl	_to_intel_bo
	mov	x21, x0
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x21]
	str	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x22]
	str	x8, [x20, #8]!
	b	LBB0_7
LBB0_4:
	ldr	x8, [x22, #8]
	str	x8, [x20, #8]!
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _I915_BIT_6_SWIZZLE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I915_BIT_6_SWIZZLE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x20, #8]!
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	ldr	x8, [x20, #8]!
LBB0_7:
Lloh5:
	adrp	x9, _I915_BIT_6_SWIZZLE_9_17@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I915_BIT_6_SWIZZLE_9_17@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, _I915_BIT_6_SWIZZLE_9@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I915_BIT_6_SWIZZLE_9@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_9:
Lloh11:
	adrp	x9, _I915_BIT_6_SWIZZLE_9_10_17@GOTPAGE
Lloh12:
	ldr	x9, [x9, _I915_BIT_6_SWIZZLE_9_10_17@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
Lloh14:
	adrp	x8, _I915_BIT_6_SWIZZLE_9_10@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I915_BIT_6_SWIZZLE_9_10@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_11:
	add	x0, x21, #4
	bl	_drm_gem_object_unreference
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_I915_BIT_6_SWIZZLE_NONE,8,3    ; @I915_BIT_6_SWIZZLE_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown tiling mode\n"

	.comm	_I915_BIT_6_SWIZZLE_9_17,8,3    ; @I915_BIT_6_SWIZZLE_9_17
	.comm	_I915_BIT_6_SWIZZLE_9,8,3       ; @I915_BIT_6_SWIZZLE_9
	.comm	_I915_BIT_6_SWIZZLE_9_10_17,8,3 ; @I915_BIT_6_SWIZZLE_9_10_17
	.comm	_I915_BIT_6_SWIZZLE_9_10,8,3    ; @I915_BIT_6_SWIZZLE_9_10
.subsections_via_symbols
