	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_button_add_callback            ## -- Begin function button_add_callback
	.p2align	4, 0x90
_button_add_callback:                   ## @button_add_callback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_callback_count@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	$32, %ecx
	jne	LBB0_3
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	incl	%ecx
	movl	%ecx, (%rax)
	movq	_button_callback_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	$-1, %rcx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rcx
	cmpq	$0, (%rdx)
	leaq	16(%rdx), %rdx
	jne	LBB0_6
## %bb.7:
	movl	%ecx, %ecx
	movq	%rdi, -16(%rdx)
	movq	(%rax), %rax
	shlq	$4, %rcx
	movl	%esi, 8(%rax,%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_callback_count,4,2             ## @callback_count
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_button_callback_list,8,3       ## @button_callback_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_button_add_callback            ; -- Begin function button_add_callback
	.p2align	2
_button_add_callback:                   ; @button_add_callback
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _callback_count@GOTPAGE
Lloh1:
	ldr	x8, [x8, _callback_count@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #32
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	cbz	x0, LBB0_6
; %bb.3:
	add	w9, w9, #1
	str	w9, [x8]
Lloh4:
	adrp	x9, _button_callback_list@GOTPAGE
Lloh5:
	ldr	x9, [x9, _button_callback_list@GOTPAGEOFF]
	ldr	x11, [x9]
	mov	x10, #-1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x11], #16
	add	x10, x10, #1
	cbnz	x8, LBB0_4
; %bb.5:
	stur	x0, [x11, #-16]
	ldr	x9, [x9]
	add	x9, x9, w10, uxtw #4
	str	w1, [x9, #8]
	mov	x0, x8
	ret
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_callback_count,4,2             ; @callback_count
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_button_callback_list,8,3       ; @button_callback_list
.subsections_via_symbols
