	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function domain_id_free
_domain_id_free:                        ## @domain_id_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_pd_bitmap_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	movq	_MAX_DOMAIN_ID@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_3
## %bb.2:
	movq	_amd_iommu_pd_alloc_bitmap@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	___clear_bit
LBB0_3:
	movq	_pd_bitmap_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pd_bitmap_lock,4,2             ## @pd_bitmap_lock
	.comm	_MAX_DOMAIN_ID,4,2              ## @MAX_DOMAIN_ID
	.comm	_amd_iommu_pd_alloc_bitmap,4,2  ## @amd_iommu_pd_alloc_bitmap
	.no_dead_strip	_domain_id_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function domain_id_free
_domain_id_free:                        ; @domain_id_free
	.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, x0
Lloh0:
	adrp	x0, _pd_bitmap_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pd_bitmap_lock@GOTPAGEOFF]
	bl	_spin_lock
	cmp	w19, #1
	b.lt	LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _MAX_DOMAIN_ID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_DOMAIN_ID@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w19
	b.le	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _amd_iommu_pd_alloc_bitmap@GOTPAGE
Lloh6:
	ldr	x8, [x8, _amd_iommu_pd_alloc_bitmap@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	___clear_bit
LBB0_3:
Lloh8:
	adrp	x0, _pd_bitmap_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _pd_bitmap_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_pd_bitmap_lock,4,2             ; @pd_bitmap_lock
	.comm	_MAX_DOMAIN_ID,4,2              ; @MAX_DOMAIN_ID
	.comm	_amd_iommu_pd_alloc_bitmap,4,2  ; @amd_iommu_pd_alloc_bitmap
	.no_dead_strip	_domain_id_free
.subsections_via_symbols
