	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smp_engine_destroy             ## -- Begin function smp_engine_destroy
	.p2align	4, 0x90
_smp_engine_destroy:                    ## @smp_engine_destroy
	.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
	callq	_get_smp
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_IBND_ERROR
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_get_smp
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_cl_qmap_head
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_cl_qmap_end
	cmpq	%rax, %rbx
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_IBND_ERROR
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_cl_qmap_remove_item
	movq	%rbx, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_cl_qmap_head
	movq	%rax, %rbx
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_cl_qmap_end
	cmpq	%rax, %rbx
	jne	LBB0_5
## %bb.7:
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_umad_close_port                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"outstanding SMP's\n"

L_.str.1:                               ## @.str.1
	.asciz	"outstanding SMP's on wire\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smp_engine_destroy             ; -- Begin function smp_engine_destroy
	.p2align	2
_smp_engine_destroy:                    ; @smp_engine_destroy
	.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
	bl	_get_smp
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IBND_ERROR
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_get_smp
	mov	x20, x0
	cbnz	x0, LBB0_2
LBB0_3:
	add	x20, x19, #4
	mov	x0, x20
	bl	_cl_qmap_head
	mov	x21, x0
	mov	x0, x20
	bl	_cl_qmap_end
	cmp	x21, x0
	b.eq	LBB0_6
; %bb.4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IBND_ERROR
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_cl_qmap_remove_item
	mov	x0, x21
	bl	_free
	mov	x0, x20
	bl	_cl_qmap_head
	mov	x21, x0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_cl_qmap_end
	cmp	x21, x0
	b.ne	LBB0_5
; %bb.7:
	ldr	w0, [x19]
	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
	b	_umad_close_port
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"outstanding SMP's\n"

l_.str.1:                               ; @.str.1
	.asciz	"outstanding SMP's on wire\n"

.subsections_via_symbols
