	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pidff_find_fields
_pidff_find_fields:                     ## @pidff_find_fields
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.1:
	movq	%rdx, %r13
	movq	%rsi, %r12
	movl	%ecx, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %r12d
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_debug
	movq	8(%r13), %rax
	movq	(%rax,%r12,8), %rcx
	movq	%rbx, %rdx
	shlq	$4, %rdx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rcx, 8(%rsi,%rdx)
	movq	(%rax,%r12,8), %rax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	addq	8(%rax), %r15
	movq	%r15, (%rsi,%rdx)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=2
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_debug
	movl	(%r13), %eax
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_13
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
	movq	8(%r13), %rcx
	movq	(%rcx,%r14,8), %rcx
	movl	(%rcx), %edx
	cmpl	4(%rcx), %edx
	jne	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	testl	%edx, %edx
	jle	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r12,%rbx,4), %esi
	movq	_HID_UP_PID@GOTPCREL(%rip), %rdi
	orl	(%rdi), %esi
	movq	16(%rcx), %rdi
	shlq	$2, %rdx
	xorl	%ecx, %ecx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%esi, (%rdi,%r15)
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=3
	addq	$4, %r15
	incl	%ecx
	cmpq	%r15, %rdx
	jne	LBB0_7
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.14:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_debug
	movl	$-1, %eax
	jmp	LBB0_15
LBB0_10:
	xorl	%eax, %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"maxusage and report_count do not match, skipping"

	.comm	_HID_UP_PID,4,2                 ## @HID_UP_PID
L_.str.1:                               ## @.str.1
	.asciz	"found %d at %d->%d"

L_.str.2:                               ## @.str.2
	.asciz	"failed to locate %d"

	.no_dead_strip	_pidff_find_fields
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pidff_find_fields
_pidff_find_fields:                     ; @pidff_find_fields
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w4, [sp, #28]                   ; 4-byte Folded Spill
	cmp	w3, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x25, #0
	mov	w26, w3
Lloh0:
	adrp	x27, _HID_UP_PID@GOTPAGE
Lloh1:
	ldr	x27, [x27, _HID_UP_PID@GOTPAGEOFF]
Lloh2:
	adrp	x24, l_.str@PAGE
Lloh3:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	x19, x28, #0xffffffff
	stp	x28, x9, [sp, #8]
	str	x25, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debug
	ldr	x8, [x20, #8]
	lsl	x9, x19, #3
	ldr	x10, [x8, x9]
	add	x11, x22, x25, lsl #4
	str	x10, [x11, #8]
	ldr	x8, [x8, x9]
	ldr	x8, [x8, #8]
	add	x8, x8, x23
	str	x8, [x11]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	cmp	x25, x26
	b.eq	LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x24
	bl	_debug
	ldr	w8, [x20]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x28, x28, #1
	cmp	x28, w8, sxtw
	b.ge	LBB0_13
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	ldr	x9, [x20, #8]
	ldr	x10, [x9, x28, lsl #3]
	ldp	w12, w9, [x10]
	cmp	w12, w9
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w12, #1
	b.lt	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w9, #0
	mov	x23, #0
	ldr	x10, [x10, #16]
	ldr	w11, [x27]
	ldr	w13, [x21, x25, lsl #2]
	orr	w11, w13, w11
	lsl	x12, x12, #2
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w13, [x10, x23]
	cmp	w13, w11
	b.eq	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=3
	add	x23, x23, #4
	add	w9, w9, #1
	cmp	x12, x23
	b.ne	LBB0_11
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_3
; %bb.14:
	str	x25, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_debug
	mov	w0, #-1
	b	LBB0_16
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"maxusage and report_count do not match, skipping"

	.comm	_HID_UP_PID,4,2                 ; @HID_UP_PID
l_.str.1:                               ; @.str.1
	.asciz	"found %d at %d->%d"

l_.str.2:                               ; @.str.2
	.asciz	"failed to locate %d"

	.no_dead_strip	_pidff_find_fields
.subsections_via_symbols
