	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_gtt_unmap_memory
_intel_gtt_unmap_memory:                ## @intel_gtt_unmap_memory
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_mem@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	movq	_intel_private@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PCI_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_pci_unmap_sg
	movq	%r14, -24(%rbp)
	movl	%ebx, -28(%rbp)
	movl	%ebx, -32(%rbp)
	leaq	-32(%rbp), %rdi
	callq	_sg_free_table
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"try unmapping %lu pages\n"

	.comm	_mem,8,3                        ## @mem
	.comm	_intel_private,4,2              ## @intel_private
	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ## @PCI_DMA_BIDIRECTIONAL
	.no_dead_strip	_intel_gtt_unmap_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_gtt_unmap_memory
_intel_gtt_unmap_memory:                ; @intel_gtt_unmap_memory
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _mem@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mem@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
Lloh5:
	adrp	x8, _intel_private@GOTPAGE
Lloh6:
	ldr	x8, [x8, _intel_private@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _PCI_DMA_BIDIRECTIONAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCI_DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x1, x20
	mov	x2, x19
	bl	_pci_unmap_sg
	str	x20, [sp, #8]
	stp	w19, w19, [sp]
	mov	x0, sp
	bl	_sg_free_table
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"try unmapping %lu pages\n"

	.comm	_mem,8,3                        ; @mem
	.comm	_intel_private,4,2              ; @intel_private
	.comm	_PCI_DMA_BIDIRECTIONAL,4,2      ; @PCI_DMA_BIDIRECTIONAL
	.no_dead_strip	_intel_gtt_unmap_memory
.subsections_via_symbols
