	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cyapa_sort_gen5_hid_descriptor_data
_cyapa_sort_gen5_hid_descriptor_data:   ## @cyapa_sort_gen5_hid_descriptor_data
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PIP_HID_DESCRIPTOR_SIZE@GOTPCREL(%rip), %r15
	xorl	%eax, %eax
	cmpl	%edx, (%r15)
	jne	LBB0_7
## %bb.1:
	movq	%rsi, %rbx
	movq	_PIP_RESP_LENGTH_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rsi,%rax,4), %rdi
	callq	_get_unaligned_le16
	movl	%eax, %r14d
	leaq	64(%rbx), %rdi
	callq	_get_unaligned_le16
	cmpl	(%r15), %r14d
	jne	LBB0_6
## %bb.2:
	movl	%eax, %ecx
	movq	_PIP_RESP_REPORT_ID_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rbx,%rax,4), %edx
	movq	_PIP_HID_BL_REPORT_ID@GOTPCREL(%rip), %rsi
	movl	$1, %eax
	cmpl	(%rsi), %edx
	jne	LBB0_4
## %bb.3:
	movq	_GEN5_BL_MAX_OUTPUT_LENGTH@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	je	LBB0_7
LBB0_4:
	movq	_PIP_HID_APP_REPORT_ID@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_6
## %bb.5:
	movq	_GEN5_APP_MAX_OUTPUT_LENGTH@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIP_HID_DESCRIPTOR_SIZE,4,2    ## @PIP_HID_DESCRIPTOR_SIZE
	.comm	_PIP_RESP_LENGTH_OFFSET,8,3     ## @PIP_RESP_LENGTH_OFFSET
	.comm	_PIP_RESP_REPORT_ID_OFFSET,8,3  ## @PIP_RESP_REPORT_ID_OFFSET
	.comm	_PIP_HID_BL_REPORT_ID,4,2       ## @PIP_HID_BL_REPORT_ID
	.comm	_GEN5_BL_MAX_OUTPUT_LENGTH,4,2  ## @GEN5_BL_MAX_OUTPUT_LENGTH
	.comm	_PIP_HID_APP_REPORT_ID,4,2      ## @PIP_HID_APP_REPORT_ID
	.comm	_GEN5_APP_MAX_OUTPUT_LENGTH,4,2 ## @GEN5_APP_MAX_OUTPUT_LENGTH
	.no_dead_strip	_cyapa_sort_gen5_hid_descriptor_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cyapa_sort_gen5_hid_descriptor_data
_cyapa_sort_gen5_hid_descriptor_data:   ; @cyapa_sort_gen5_hid_descriptor_data
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _PIP_HID_DESCRIPTOR_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PIP_HID_DESCRIPTOR_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w2
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x1
Lloh2:
	adrp	x8, _PIP_RESP_LENGTH_OFFSET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PIP_RESP_LENGTH_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x0, x1, x8, lsl #2
	bl	_get_unaligned_le16
	mov	x20, x0
	add	x0, x19, #64
	bl	_get_unaligned_le16
	ldr	w8, [x21]
	cmp	w20, w8
	b.ne	LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _PIP_RESP_REPORT_ID_OFFSET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PIP_RESP_REPORT_ID_OFFSET@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w8, [x19, x8, lsl #2]
Lloh8:
	adrp	x9, _PIP_HID_BL_REPORT_ID@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PIP_HID_BL_REPORT_ID@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _GEN5_BL_MAX_OUTPUT_LENGTH@GOTPAGE
Lloh12:
	ldr	x10, [x10, _GEN5_BL_MAX_OUTPUT_LENGTH@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w0, w10, #0, eq
	b.eq	LBB0_6
; %bb.3:
Lloh14:
	adrp	x9, _PIP_HID_APP_REPORT_ID@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PIP_HID_APP_REPORT_ID@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _GEN5_APP_MAX_OUTPUT_LENGTH@GOTPAGE
Lloh18:
	ldr	x10, [x10, _GEN5_APP_MAX_OUTPUT_LENGTH@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w0, w10, #0, eq
	b.eq	LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PIP_HID_DESCRIPTOR_SIZE,4,2    ; @PIP_HID_DESCRIPTOR_SIZE
	.comm	_PIP_RESP_LENGTH_OFFSET,8,3     ; @PIP_RESP_LENGTH_OFFSET
	.comm	_PIP_RESP_REPORT_ID_OFFSET,8,3  ; @PIP_RESP_REPORT_ID_OFFSET
	.comm	_PIP_HID_BL_REPORT_ID,4,2       ; @PIP_HID_BL_REPORT_ID
	.comm	_GEN5_BL_MAX_OUTPUT_LENGTH,4,2  ; @GEN5_BL_MAX_OUTPUT_LENGTH
	.comm	_PIP_HID_APP_REPORT_ID,4,2      ; @PIP_HID_APP_REPORT_ID
	.comm	_GEN5_APP_MAX_OUTPUT_LENGTH,4,2 ; @GEN5_APP_MAX_OUTPUT_LENGTH
	.no_dead_strip	_cyapa_sort_gen5_hid_descriptor_data
.subsections_via_symbols
