	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_get_dma_address_len ## -- Begin function i915_gem_object_get_dma_address_len
	.p2align	4, 0x90
_i915_gem_object_get_dma_address_len:   ## @i915_gem_object_get_dma_address_len
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	leaq	-20(%rbp), %rdx
	callq	_i915_gem_object_get_sg
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_sg_dma_len
	movl	-20(%rbp), %edx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	subl	%edx, %eax
	movl	%eax, (%r14)
LBB0_2:
	movq	%rbx, %rdi
	callq	_sg_dma_address
	movl	-20(%rbp), %edx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	addq	%rdx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_gem_object_get_dma_address_len ; -- Begin function i915_gem_object_get_dma_address_len
	.p2align	2
_i915_gem_object_get_dma_address_len:   ; @i915_gem_object_get_dma_address_len
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	add	x2, sp, #12
	bl	_i915_gem_object_get_sg
	mov	x20, x0
Lloh0:
	adrp	x21, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PAGE_SHIFT@GOTPAGEOFF]
	cbz	x19, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_sg_dma_len
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	lsl	w8, w8, w9
	sub	w8, w0, w8
	str	w8, [x19]
LBB0_2:
	mov	x0, x20
	bl	_sg_dma_address
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	lsl	w8, w8, w9
	add	x0, x0, x8
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
.subsections_via_symbols
