	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DebugChannels_OnNotify
_DebugChannels_OnNotify:                ## @DebugChannels_OnNotify
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$128, (%rsi)
	jne	LBB0_9
## %bb.1:
	movq	%rsi, %r12
	movl	4(%rsi), %eax
	movq	_IDC_DEBUG_CHANNELS_LIST@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_9
## %bb.2:
	movl	%edi, %r14d
	movq	_PROCESS_VM_OPERATION@GOTPCREL(%rip), %rax
	movq	_PROCESS_VM_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_PROCESS_VM_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_GetSelectedProcessId
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_OpenProcess
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movl	%eax, %r15d
	movl	4(%r12), %eax
	movl	%eax, -200(%rbp)
	movl	(%r13), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movl	%eax, %r14d
	movq	_LVM_SUBITEMHITTEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	leaq	-208(%rbp), %rcx
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_SendMessageW
	movl	(%r12), %eax
	decl	%eax
	cmpl	$3, %eax
	ja	LBB0_8
## %bb.4:
	movb	-208(%rbp), %cl
	decb	%cl
	movl	$1, %ebx
	shll	%cl, %ebx
	movl	-204(%rbp), %esi
	leaq	-192(%rbp), %r12
	movl	%r14d, %edi
	xorl	%edx, %edx
	movq	%r12, %rcx
	movl	$32, %r8d
	callq	_ListView_GetItemText
	movl	-208(%rbp), %edx
	movl	-204(%rbp), %esi
	leaq	-56(%rbp), %rcx
	movl	%r14d, %edi
	movl	$2, %r8d
	callq	_ListView_GetItemText
	movq	%r12, -232(%rbp)
	cmpl	$120, -56(%rbp)
	cmovnel	%ebx, %r13d
	movl	%r13d, -224(%rbp)
	movl	%ebx, -220(%rbp)
	movq	$0, -216(%rbp)
	movq	_change_channel_CB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-232(%rbp), %rdx
	movl	%r15d, %edi
	callq	_enum_channel
	cmpl	$0, -212(%rbp)
	je	LBB0_6
## %bb.5:
	xorb	$88, -56(%rbp)
	movl	-208(%rbp), %edx
	movl	-204(%rbp), %esi
	leaq	-56(%rbp), %rcx
	movl	%r14d, %edi
	callq	_ListView_SetItemText
LBB0_6:
	cmpl	$0, -216(%rbp)
	je	LBB0_8
## %bb.7:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_8:
	movl	%r15d, %edi
	callq	_CloseHandle
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_DEBUG_CHANNELS_LIST,4,2    ## @IDC_DEBUG_CHANNELS_LIST
	.comm	_PROCESS_VM_OPERATION,4,2       ## @PROCESS_VM_OPERATION
	.comm	_PROCESS_VM_READ,4,2            ## @PROCESS_VM_READ
	.comm	_PROCESS_VM_WRITE,4,2           ## @PROCESS_VM_WRITE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_LVM_SUBITEMHITTEST,4,2         ## @LVM_SUBITEMHITTEST
	.comm	_change_channel_CB,4,2          ## @change_channel_CB
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"Some channel instance weren't correctly set"

	.no_dead_strip	_DebugChannels_OnNotify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DebugChannels_OnNotify
_DebugChannels_OnNotify:                ; @DebugChannels_OnNotify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w27, -72
	.cfi_offset w28, -80
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	w8, [x1]
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.1:
	mov	x21, x1
	ldr	w8, [x1, #4]
Lloh3:
	adrp	x24, _IDC_DEBUG_CHANNELS_LIST@GOTPAGE
Lloh4:
	ldr	x24, [x24, _IDC_DEBUG_CHANNELS_LIST@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.2:
	mov	x20, x0
Lloh5:
	adrp	x8, _PROCESS_VM_OPERATION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PROCESS_VM_OPERATION@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _PROCESS_VM_READ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PROCESS_VM_READ@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _PROCESS_VM_WRITE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PROCESS_VM_WRITE@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh13:
	ldr	w9, [x10]
	orr	w19, w8, w9
Lloh14:
	adrp	x23, _FALSE@GOTPAGE
Lloh15:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	ldr	w22, [x23]
	bl	_GetSelectedProcessId
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_OpenProcess
	cbz	w0, LBB0_9
; %bb.3:
	mov	x19, x0
	ldr	w8, [x21, #4]
	str	w8, [sp, #40]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_GetDlgItem
	mov	x20, x0
Lloh16:
	adrp	x8, _LVM_SUBITEMHITTEST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LVM_SUBITEMHITTEST@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x3, sp, #32
	mov	w2, #0
	bl	_SendMessageW
	ldr	w8, [x21]
	sub	w8, w8, #1
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.4:
	ldp	w8, w1, [sp, #32]
	sub	w8, w8, #1
	mov	w9, #1
	lsl	w21, w9, w8
	add	x22, sp, #48
	add	x3, sp, #48
	mov	x0, x20
	mov	w2, #0
	mov	w4, #32
	bl	_ListView_GetItemText
	ldp	w2, w1, [sp, #32]
	sub	x3, x29, #80
	mov	x0, x20
	mov	w4, #2
	bl	_ListView_GetItemText
	str	x22, [sp, #8]
	ldur	w8, [x29, #-80]
	cmp	w8, #120
	csel	w8, wzr, w21, eq
	stp	w8, w21, [sp, #16]
	str	xzr, [sp, #24]
Lloh19:
	adrp	x8, _change_channel_CB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _change_channel_CB@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w3, [x23]
	add	x2, sp, #8
	mov	x0, x19
	bl	_enum_channel
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_6
; %bb.5:
	ldur	w8, [x29, #-80]
	mov	w9, #88
	eor	w8, w8, w9
	stur	w8, [x29, #-80]
	ldp	w2, w1, [sp, #32]
	sub	x3, x29, #80
	mov	x0, x20
	bl	_ListView_SetItemText
LBB0_6:
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_8
; %bb.7:
Lloh22:
	adrp	x0, l_str@PAGE
Lloh23:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_8:
	mov	x0, x19
	bl	_CloseHandle
LBB0_9:
	ldur	x8, [x29, #-72]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_DEBUG_CHANNELS_LIST,4,2    ; @IDC_DEBUG_CHANNELS_LIST
	.comm	_PROCESS_VM_OPERATION,4,2       ; @PROCESS_VM_OPERATION
	.comm	_PROCESS_VM_READ,4,2            ; @PROCESS_VM_READ
	.comm	_PROCESS_VM_WRITE,4,2           ; @PROCESS_VM_WRITE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_LVM_SUBITEMHITTEST,4,2         ; @LVM_SUBITEMHITTEST
	.comm	_change_channel_CB,4,2          ; @change_channel_CB
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"Some channel instance weren't correctly set"

	.no_dead_strip	_DebugChannels_OnNotify
.subsections_via_symbols
