	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_iommu
_free_iommu:                            ## @free_iommu
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_iommu_bitmap_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_iommu_gart_bitmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_iommu_area_free
	movq	_next_bit@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	ja	LBB0_2
## %bb.1:
	movslq	%r14d, %rcx
	addq	%rbx, %rcx
	movq	%rcx, (%rax)
LBB0_2:
	movq	_iommu_bitmap_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_iommu_bitmap_lock,4,2          ## @iommu_bitmap_lock
	.comm	_iommu_gart_bitmap,4,2          ## @iommu_gart_bitmap
	.comm	_next_bit,8,3                   ## @next_bit
	.no_dead_strip	_free_iommu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_iommu
_free_iommu:                            ; @free_iommu
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _iommu_bitmap_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _iommu_bitmap_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _iommu_gart_bitmap@GOTPAGE
Lloh3:
	ldr	x8, [x8, _iommu_gart_bitmap@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x19
	bl	_iommu_area_free
Lloh5:
	adrp	x8, _next_bit@GOTPAGE
Lloh6:
	ldr	x8, [x8, _next_bit@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x9, x20
	b.hi	LBB0_2
; %bb.1:
	add	x9, x20, w19, sxtw
	str	x9, [x8]
LBB0_2:
Lloh7:
	adrp	x0, _iommu_bitmap_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _iommu_bitmap_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_iommu_bitmap_lock,4,2          ; @iommu_bitmap_lock
	.comm	_iommu_gart_bitmap,4,2          ; @iommu_gart_bitmap
	.comm	_next_bit,8,3                   ; @next_bit
	.no_dead_strip	_free_iommu
.subsections_via_symbols
