	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i810_dma_cleanup
_i810_dma_cleanup:                      ## @i810_dma_cleanup
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %r15
	movq	_DRIVER_HAVE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_drm_core_check_feature
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	$0, 16(%r14)
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_drm_irq_uninstall
LBB0_3:
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.4:
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.5:
	leaq	16(%rbx), %rdi
	movq	%r14, %rsi
	callq	_drm_legacy_ioremapfree
LBB0_6:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	movl	8(%r14), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	callq	_pci_free_consistent
LBB0_8:
	movq	(%r14), %rdi
	callq	_kfree
	movq	$0, (%r14)
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	8(%rcx), %rdi
	cmpq	$0, 8(%rdi)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, (%rcx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rsi
	callq	_drm_legacy_ioremapfree
	movl	(%r15), %eax
	jmp	LBB0_13
LBB0_14:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_HAVE_IRQ,4,2            ## @DRIVER_HAVE_IRQ
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_i810_dma_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i810_dma_cleanup
_i810_dma_cleanup:                      ; @i810_dma_cleanup
	.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	x19, x0
	ldr	x20, [x0, #24]
Lloh0:
	adrp	x8, _DRIVER_HAVE_IRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_HAVE_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_drm_core_check_feature
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_drm_irq_uninstall
LBB0_3:
	ldr	x21, [x19]
	cbz	x21, LBB0_14
; %bb.4:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_6
; %bb.5:
	add	x0, x21, #16
	mov	x1, x19
	bl	_drm_legacy_ioremapfree
LBB0_6:
	ldr	x2, [x21, #8]
	cbz	x2, LBB0_8
; %bb.7:
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w3, [x21]
	bl	_pci_free_consistent
LBB0_8:
	ldr	x0, [x19]
	bl	_kfree
	str	xzr, [x19]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.9:
	mov	x21, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x9, [x9, x21, lsl #3]
	ldr	x0, [x9, #8]
	ldr	x10, [x0, #8]
	cbz	x10, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x9]
	cbz	x9, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x1, x19
	bl	_drm_legacy_ioremapfree
	ldr	w8, [x20]
	b	LBB0_10
LBB0_14:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_HAVE_IRQ,4,2            ; @DRIVER_HAVE_IRQ
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_i810_dma_cleanup
.subsections_via_symbols
