	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_button_del_callback            ## -- Begin function button_del_callback
	.p2align	4, 0x90
_button_del_callback:                   ## @button_del_callback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	_button_callback_list@GOTPCREL(%rip), %r8
	movq	(%r8), %rsi
	leaq	496(%rsi), %rdx
	movl	$31, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, (%rdx)
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdi, -16(%rdx)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdi, -32(%rdx)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-3(%rax), %ecx
	shlq	$4, %rcx
	cmpq	%rdi, (%rsi,%rcx)
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	$-4, %rax
	addq	$-64, %rdx
	cmpl	$-1, %eax
	jne	LBB0_2
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_8:
	decq	%rax
	addq	$-16, %rdx
	jmp	LBB0_9
LBB0_7:
	addq	$-2, %rax
	addq	$-32, %rdx
	jmp	LBB0_9
LBB0_6:
	addq	%rcx, %rsi
	addl	$-3, %eax
	movq	%rsi, %rdx
LBB0_9:
	movq	$0, (%rdx)
	movq	(%r8), %rcx
	shlq	$4, %rax
	movq	$0, 8(%rcx,%rax)
	movq	_callback_count@GOTPCREL(%rip), %rax
	decl	(%rax)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_button_callback_list,8,3       ## @button_callback_list
	.comm	_callback_count,4,2             ## @callback_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_button_del_callback            ; -- Begin function button_del_callback
	.p2align	2
_button_del_callback:                   ; @button_del_callback
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _button_callback_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _button_callback_list@GOTPAGEOFF]
	ldr	x10, [x8]
	mov	w11, #31
	mov	w9, #504
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x12, x10, w11, uxtw #4
	ldr	x13, [x12]
	cmp	x13, x0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w11, w11, #1
	sub	x9, x9, #16
	cmn	w9, #8
	b.ne	LBB0_2
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_5:
	mov	w0, #0
	str	xzr, [x12]
	ldr	x8, [x8]
	str	xzr, [x8, x9]
Lloh5:
	adrp	x8, _callback_count@GOTPAGE
Lloh6:
	ldr	x8, [x8, _callback_count@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_button_callback_list,8,3       ; @button_callback_list
	.comm	_callback_count,4,2             ; @callback_count
.subsections_via_symbols
