	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_gem_dmabuf_kmap
_i915_gem_dmabuf_kmap:                  ## @i915_gem_dmabuf_kmap
	.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
	movq	%rsi, %r14
	callq	_dma_buf_to_obj
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %rax
	cmpq	%r14, %rax
	jbe	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_i915_gem_object_has_struct_page
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_i915_gem_object_pin_pages
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_i915_gem_object_get_page
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_i915_gem_object_unpin_pages
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kmap                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.no_dead_strip	_i915_gem_dmabuf_kmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_gem_dmabuf_kmap
_i915_gem_dmabuf_kmap:                  ; @i915_gem_dmabuf_kmap
	.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
	mov	x20, x1
	bl	_dma_buf_to_obj
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsr	x8, x8, x9
	cmp	x8, x20
	b.ls	LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_i915_gem_object_has_struct_page
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_i915_gem_object_pin_pages
	cbnz	x0, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_i915_gem_object_get_page
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_i915_gem_object_unpin_pages
LBB0_5:
	mov	x0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kmap
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.no_dead_strip	_i915_gem_dmabuf_kmap
.subsections_via_symbols
