	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_button
_find_button:                           ## @find_button
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movzwl	2(%rcx), %edx
	testw	%dx, %dx
	js	LBB0_4
## %bb.1:
	movl	$2, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpw	%si, %dx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzwl	(%rcx,%rax,2), %edx
	incq	%rax
	testw	%dx, %dx
	jns	LBB0_2
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	movzbl	%al, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_button
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_button
_find_button:                           ; @find_button
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x9, [x8]
	ldrsh	w8, [x9, #2]
	tbnz	w8, #31, LBB0_4
; %bb.1:
	and	w10, w1, #0xffff
	and	w11, w8, #0xffff
	mov	w8, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w11, w10
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsh	w12, [x9, x8, lsl #1]
	and	w11, w12, #0xffff
	add	x8, x8, #1
	tbz	w12, #31, LBB0_2
LBB0_4:
	mov	w8, #0
LBB0_5:
	and	w0, w8, #0xff
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_find_button
.subsections_via_symbols
