	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cyapa_sort_tsg_pip_app_resp_data ## -- Begin function cyapa_sort_tsg_pip_app_resp_data
	.p2align	4, 0x90
_cyapa_sort_tsg_pip_app_resp_data:      ## @cyapa_sort_tsg_pip_app_resp_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	movq	_PIP_MIN_APP_RESP_LENGTH@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jg	LBB0_9
## %bb.2:
	movq	%rsi, %rbx
	movq	_PIP_RESP_REPORT_ID_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rsi,%rax,8), %rax
	movq	_PIP_APP_RESP_REPORT_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	movq	_PIP_RESP_RSVD_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rax
	movq	_PIP_RESP_RSVD_KEY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:
	movq	%rdi, %r14
	movq	_PIP_RESP_LENGTH_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rbx,%rax,8), %rdi
	callq	_get_unaligned_le16
	movl	%eax, %r12d
	movq	_PIP_RESP_APP_CMD_OFFSET@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_GET_PIP_CMD_CODE
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	_PIP_UNSUPPORTED_CMD_RESP_LENGTH@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_7
## %bb.6:
	movq	40(%rbx), %rax
	cmpq	(%r14), %rax
	je	LBB0_9
LBB0_7:
	movq	(%r13), %rax
	movq	(%rbx,%rax,8), %rdi
	callq	_GET_PIP_CMD_CODE
	cltq
	movl	$1, %r15d
	cmpq	%rax, (%r14)
	je	LBB0_9
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIP_MIN_APP_RESP_LENGTH,4,2    ## @PIP_MIN_APP_RESP_LENGTH
	.comm	_PIP_RESP_REPORT_ID_OFFSET,8,3  ## @PIP_RESP_REPORT_ID_OFFSET
	.comm	_PIP_APP_RESP_REPORT_ID,8,3     ## @PIP_APP_RESP_REPORT_ID
	.comm	_PIP_RESP_RSVD_OFFSET,8,3       ## @PIP_RESP_RSVD_OFFSET
	.comm	_PIP_RESP_RSVD_KEY,8,3          ## @PIP_RESP_RSVD_KEY
	.comm	_PIP_RESP_LENGTH_OFFSET,8,3     ## @PIP_RESP_LENGTH_OFFSET
	.comm	_PIP_RESP_APP_CMD_OFFSET,8,3    ## @PIP_RESP_APP_CMD_OFFSET
	.comm	_PIP_UNSUPPORTED_CMD_RESP_LENGTH,4,2 ## @PIP_UNSUPPORTED_CMD_RESP_LENGTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cyapa_sort_tsg_pip_app_resp_data ; -- Begin function cyapa_sort_tsg_pip_app_resp_data
	.p2align	2
_cyapa_sort_tsg_pip_app_resp_data:      ; @cyapa_sort_tsg_pip_app_resp_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
	mov	x19, x0
	mov	w0, #0
	cbz	x1, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _PIP_MIN_APP_RESP_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIP_MIN_APP_RESP_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.gt	LBB0_9
; %bb.2:
	mov	x20, x1
Lloh3:
	adrp	x8, _PIP_RESP_REPORT_ID_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIP_RESP_REPORT_ID_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x1, x8, lsl #3]
Lloh6:
	adrp	x9, _PIP_APP_RESP_REPORT_ID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PIP_APP_RESP_REPORT_ID@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
Lloh9:
	adrp	x8, _PIP_RESP_RSVD_OFFSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PIP_RESP_RSVD_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x8, [x20, x8, lsl #3]
Lloh12:
	adrp	x9, _PIP_RESP_RSVD_KEY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PIP_RESP_RSVD_KEY@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
Lloh15:
	adrp	x8, _PIP_RESP_LENGTH_OFFSET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PIP_RESP_LENGTH_OFFSET@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x0, x20, x8, lsl #3
	bl	_get_unaligned_le16
	mov	x21, x0
Lloh18:
	adrp	x22, _PIP_RESP_APP_CMD_OFFSET@GOTPAGE
Lloh19:
	ldr	x22, [x22, _PIP_RESP_APP_CMD_OFFSET@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x0, [x20, x8, lsl #3]
	bl	_GET_PIP_CMD_CODE
Lloh20:
	adrp	x8, _PIP_UNSUPPORTED_CMD_RESP_LENGTH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PIP_UNSUPPORTED_CMD_RESP_LENGTH@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w0, #0
	ccmp	w21, w8, #0, eq
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x20, #40]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_8
LBB0_6:
	ldr	x8, [x22]
	ldr	x0, [x20, x8, lsl #3]
	bl	_GET_PIP_CMD_CODE
	ldr	x8, [x19]
	cmp	x8, w0, sxtw
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PIP_MIN_APP_RESP_LENGTH,4,2    ; @PIP_MIN_APP_RESP_LENGTH
	.comm	_PIP_RESP_REPORT_ID_OFFSET,8,3  ; @PIP_RESP_REPORT_ID_OFFSET
	.comm	_PIP_APP_RESP_REPORT_ID,8,3     ; @PIP_APP_RESP_REPORT_ID
	.comm	_PIP_RESP_RSVD_OFFSET,8,3       ; @PIP_RESP_RSVD_OFFSET
	.comm	_PIP_RESP_RSVD_KEY,8,3          ; @PIP_RESP_RSVD_KEY
	.comm	_PIP_RESP_LENGTH_OFFSET,8,3     ; @PIP_RESP_LENGTH_OFFSET
	.comm	_PIP_RESP_APP_CMD_OFFSET,8,3    ; @PIP_RESP_APP_CMD_OFFSET
	.comm	_PIP_UNSUPPORTED_CMD_RESP_LENGTH,4,2 ; @PIP_UNSUPPORTED_CMD_RESP_LENGTH
.subsections_via_symbols
