	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hpt37x_find_mode
_hpt37x_find_mode:                      ## @hpt37x_find_mode
	.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), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.1:
	addq	$8, %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, %ecx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %ecx
	addq	$8, %rax
	testl	%ecx, %ecx
	jne	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	callq	_BUG
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_3:
	movl	-4(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hpt37x_find_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hpt37x_find_mode
_hpt37x_find_mode:                      ; @hpt37x_find_mode
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w9, [x8]
	cbz	w9, LBB0_4
; %bb.1:
	add	x8, x8, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, w1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x8], #8
	cbnz	w9, LBB0_2
LBB0_4:
	bl	_BUG
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldur	w0, [x8, #-4]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hpt37x_find_mode
.subsections_via_symbols
