	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdvi_destroy_domain
_amdvi_destroy_domain:                  ## @amdvi_destroy_domain
	.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
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %esi
	callq	_amdvi_free_ptp
LBB0_2:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_amdvi_do_inv_domain
	movq	_amdvi_domain@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_next@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_dom_head@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_SLIST_REMOVE
	movq	_M_AMDVI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"domain is NULL"

	.comm	_dom_head,4,2                   ## @dom_head
	.comm	_amdvi_domain,4,2               ## @amdvi_domain
	.comm	_next,4,2                       ## @next
	.comm	_M_AMDVI,4,2                    ## @M_AMDVI
	.no_dead_strip	_amdvi_destroy_domain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdvi_destroy_domain
_amdvi_destroy_domain:                  ; @amdvi_destroy_domain
	.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	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x19, #4]
	bl	_amdvi_free_ptp
LBB0_2:
	ldr	w0, [x19]
	mov	w1, #0
	bl	_amdvi_do_inv_domain
Lloh2:
	adrp	x8, _amdvi_domain@GOTPAGE
Lloh3:
	ldr	x8, [x8, _amdvi_domain@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _next@GOTPAGE
Lloh6:
	ldr	x8, [x8, _next@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x0, _dom_head@GOTPAGE
Lloh9:
	ldr	x0, [x0, _dom_head@GOTPAGEOFF]
	mov	x1, x19
	bl	_SLIST_REMOVE
Lloh10:
	adrp	x8, _M_AMDVI@GOTPAGE
Lloh11:
	ldr	x8, [x8, _M_AMDVI@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"domain is NULL"

	.comm	_dom_head,4,2                   ; @dom_head
	.comm	_amdvi_domain,4,2               ; @amdvi_domain
	.comm	_next,4,2                       ; @next
	.comm	_M_AMDVI,4,2                    ; @M_AMDVI
	.no_dead_strip	_amdvi_destroy_domain
.subsections_via_symbols
