	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GraphCtrl_Dispose              ## -- Begin function GraphCtrl_Dispose
	.p2align	4, 0x90
_GraphCtrl_Dispose:                     ## @GraphCtrl_Dispose
	.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, %r15
	movq	_MAX_PLOTS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_DeleteObject
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	48(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	16(%r15), %rdi
	callq	_SelectObject
LBB0_5:
	movq	40(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movq	8(%r15), %rdi
	callq	_SelectObject
LBB0_7:
	movq	32(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_DeleteObject
LBB0_9:
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_DeleteObject
LBB0_11:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_DeleteDC
LBB0_13:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_DeleteDC
LBB0_15:
	movq	(%r15), %rdi
	addq	$8, %rsp
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.17:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DeleteObject                   ## TAILCALL
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PLOTS,4,2                  ## @MAX_PLOTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GraphCtrl_Dispose              ; -- Begin function GraphCtrl_Dispose
	.p2align	2
_GraphCtrl_Dispose:                     ; @GraphCtrl_Dispose
	.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
Lloh0:
	adrp	x20, _MAX_PLOTS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MAX_PLOTS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	ldr	x0, [x8, x21, lsl #3]
	bl	_DeleteObject
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x1, [x19, #48]
	cbz	x1, LBB0_5
; %bb.4:
	ldr	x0, [x19, #16]
	bl	_SelectObject
LBB0_5:
	ldr	x1, [x19, #40]
	cbz	x1, LBB0_7
; %bb.6:
	ldr	x0, [x19, #8]
	bl	_SelectObject
LBB0_7:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_DeleteObject
LBB0_9:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_DeleteObject
LBB0_11:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_DeleteDC
LBB0_13:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_15
; %bb.14:
	bl	_DeleteDC
LBB0_15:
	ldr	x0, [x19]
	cbz	x0, LBB0_17
; %bb.16:
	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	_DeleteObject
LBB0_17:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PLOTS,4,2                  ; @MAX_PLOTS
.subsections_via_symbols
