	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_iommu_restore_tlb_entries
_omap_iommu_restore_tlb_entries:        ## @omap_iommu_restore_tlb_entries
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	movl	$0, -40(%rbp)
	jle	LBB0_2
## %bb.3:
	movq	8(%r14), %r12
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -36(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_iotlb_lock_set
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_iotlb_load_cr
	incl	%ebx
	addq	$4, %r12
	movl	(%r14), %eax
	cmpl	%eax, %ebx
	jl	LBB0_4
	jmp	LBB0_5
LBB0_2:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%eax, -40(%rbp)
	movl	%ebx, -36(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_iotlb_lock_set
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_omap_iommu_restore_tlb_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_iommu_restore_tlb_entries
_omap_iommu_restore_tlb_entries:        ; @omap_iommu_restore_tlb_entries
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x0
	str	wzr, [sp, #8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w21, #0
	ldr	x20, [x19, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	w21, [sp, #12]
	add	x1, sp, #8
	mov	x0, x19
	bl	_iotlb_lock_set
	mov	x0, x19
	mov	x1, x20
	bl	_iotlb_load_cr
	add	w21, w21, #1
	add	x20, x20, #4
	ldr	w8, [x19]
	cmp	w21, w8
	b.lt	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
	stp	w8, w21, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_iotlb_lock_set
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_omap_iommu_restore_tlb_entries
.subsections_via_symbols
