	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_hdw_get_ctrl_by_id        ## -- Begin function pvr2_hdw_get_ctrl_by_id
	.p2align	4, 0x90
_pvr2_hdw_get_ctrl_by_id:               ## @pvr2_hdw_get_ctrl_by_id
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.1:
	movq	8(%rdi), %rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %rax
	decq	%rcx
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdx
	movl	(%rdx), %edx
	testl	%edx, %edx
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%esi, %edx
	jne	LBB0_2
## %bb.5:
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvr2_hdw_get_ctrl_by_id        ; -- Begin function pvr2_hdw_get_ctrl_by_id
	.p2align	2
_pvr2_hdw_get_ctrl_by_id:               ; @pvr2_hdw_get_ctrl_by_id
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x0, [x0, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x0]
	ldr	w9, [x9]
	cmp	w9, #0
	ccmp	w9, w1, #0, ne
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #8
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
	mov	x0, #0
LBB0_5:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
