	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PROGRAM_DeleteProgram          ## -- Begin function PROGRAM_DeleteProgram
	.p2align	4, 0x90
_PROGRAM_DeleteProgram:                 ## @PROGRAM_DeleteProgram
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	40(%rdi), %rax
	cmpq	%rdi, 16(%rax)
	jne	LBB0_2
## %bb.1:
	movq	$0, 16(%rax)
LBB0_2:
	movl	8(%rax), %edi
	movq	_LVM_DELETEITEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	64(%rbx), %edx
	xorl	%ecx, %ecx
	callq	_SendMessageA
	movq	48(%rbx), %rax
	movq	56(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rdx
	jmp	LBB0_5
LBB0_4:
	movq	40(%rbx), %rdx
LBB0_5:
	movq	%rcx, (%rdx)
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movq	%rax, (%rcx)
LBB0_7:
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movq	40(%rbx), %rdi
	callq	_GRPFILE_WriteGroupFile
LBB0_9:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_Free
LBB0_11:
	movq	24(%rbx), %rdi
	callq	_Free
	movq	16(%rbx), %rdi
	callq	_Free
	movq	8(%rbx), %rdi
	callq	_Free
	movq	(%rbx), %rdi
	callq	_Free
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LVM_DELETEITEM,4,2             ## @LVM_DELETEITEM
	.comm	_program,8,3                    ## @program
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PROGRAM_DeleteProgram          ; -- Begin function PROGRAM_DeleteProgram
	.p2align	2
_PROGRAM_DeleteProgram:                 ; @PROGRAM_DeleteProgram
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #40]
	ldr	x9, [x8, #16]
	cmp	x9, x0
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x8, #16]
LBB0_2:
	ldr	w0, [x8, #8]
Lloh0:
	adrp	x8, _LVM_DELETEITEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LVM_DELETEITEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #64]
	mov	w3, #0
	bl	_SendMessageA
	ldp	x8, x9, [x19, #48]
	cbz	x8, LBB0_10
; %bb.3:
	mov	x10, x8
	str	x9, [x10]
	cbz	x9, LBB0_5
LBB0_4:
	str	x8, [x9]
LBB0_5:
	cbz	x20, LBB0_7
; %bb.6:
	ldr	x0, [x19, #40]
	bl	_GRPFILE_WriteGroupFile
LBB0_7:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_Free
LBB0_9:
	ldr	x0, [x19, #24]
	bl	_Free
	ldr	x0, [x19, #16]
	bl	_Free
	ldr	x0, [x19, #8]
	bl	_Free
	ldr	x0, [x19]
	bl	_Free
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Free
LBB0_10:
	ldr	x10, [x19, #40]
	str	x9, [x10]
	cbnz	x9, LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LVM_DELETEITEM,4,2             ; @LVM_DELETEITEM
	.comm	_program,8,3                    ; @program
.subsections_via_symbols
