	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ijkmp_destroy
_ijkmp_destroy:                         ## @ijkmp_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, -16(%rbp)
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_ffp_destroy_p
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	callq	_SDL_WaitThread
	movq	$0, 8(%rbx)
LBB0_3:
	leaq	4(%rbx), %rdi
	callq	_pthread_mutex_destroy
	movq	%rbx, %rdi
	callq	_freep
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	leaq	-16(%rbp), %rdi
	callq	_freep
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ijkmp_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ijkmp_destroy
_ijkmp_destroy:                         ; @ijkmp_destroy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	x0, [sp, #8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x0, x0, #16
	bl	_ffp_destroy_p
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.2:
	mov	x1, #0
	bl	_SDL_WaitThread
	str	xzr, [x19, #8]
LBB0_3:
	add	x0, x19, #4
	bl	_pthread_mutex_destroy
	mov	x0, x19
	bl	_freep
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	add	x0, sp, #8
	bl	_freep
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ijkmp_destroy
.subsections_via_symbols
