	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cyapa_empty_pip_output_data    ## -- Begin function cyapa_empty_pip_output_data
	.p2align	4, 0x90
_cyapa_empty_pip_output_data:           ## @cyapa_empty_pip_output_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	16(%rdi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	callq	_cyapa_get_pip_pm_state
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	movl	$0, %ecx
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movl	(%r14), %eax
	movq	_CYAPA_REG_MAP_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovll	%eax, %ecx
	movl	$0, (%r14)
LBB0_2:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	setne	%al
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	setne	%cl
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	setne	%dl
	andb	%al, %dl
	andb	%cl, %dl
	movb	%dl, -41(%rbp)                  ## 1-byte Spill
	movl	$8, -52(%rbp)                   ## 4-byte Folded Spill
	movq	_PIP_RESP_LENGTH_SIZE@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movq	_PIP_RESP_LENGTH_SIZE@GOTPCREL(%rip), %rbx
	je	LBB0_28
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%r14d, %r14d
	cmpl	$5, %r13d
	jg	LBB0_28
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rsi
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_cyapa_i2c_pip_read
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_28
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rdi
	callq	_get_unaligned_le16
	movl	(%rbx), %r15d
	cmpl	%r15d, %eax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_CYAPA_REG_MAP_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_cyapa_i2c_pip_read
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rdi
	callq	_get_unaligned_le16
	movl	%eax, %r14d
	movl	$1, %r13d
	movq	_PIP_RESP_LENGTH_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_26
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	testq	%rax, %rax
	jne	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	cmpq	$0, (%r12)
	je	LBB0_26
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%rax)
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movq	_CYAPA_PM_RUNTIME_RESUME@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_CYAPA_PM_RUNTIME_SUSPEND@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rsi
	movq	%r12, %rdi
	callq	_cyapa_pip_event_process
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	decl	-52(%rbp)                       ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_27
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_27
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	testq	%rax, %rax
	je	LBB0_27
## %bb.12:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	jmp	LBB0_13
LBB0_8:
	xorl	%r14d, %r14d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_28
LBB0_15:
	movl	%eax, %r14d
	jmp	LBB0_28
LBB0_19:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
LBB0_13:
	callq	_min
	movl	%eax, %r14d
	movq	8(%r12), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_memcpy
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	xorl	%r14d, %r14d
LBB0_28:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CYAPA_REG_MAP_SIZE,4,2         ## @CYAPA_REG_MAP_SIZE
	.comm	_PIP_RESP_LENGTH_SIZE,4,2       ## @PIP_RESP_LENGTH_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CYAPA_PM_RUNTIME_RESUME,4,2    ## @CYAPA_PM_RUNTIME_RESUME
	.comm	_CYAPA_PM_RUNTIME_SUSPEND,4,2   ## @CYAPA_PM_RUNTIME_SUSPEND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cyapa_empty_pip_output_data    ; -- Begin function cyapa_empty_pip_output_data
	.p2align	2
_cyapa_empty_pip_output_data:           ; @cyapa_empty_pip_output_data
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #16]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	bl	_cyapa_get_pip_pm_state
Lloh0:
	adrp	x28, _CYAPA_REG_MAP_SIZE@GOTPAGE
Lloh1:
	ldr	x28, [x28, _CYAPA_REG_MAP_SIZE@GOTPAGEOFF]
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	cbz	x19, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	ldr	w9, [x28]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	str	wzr, [x19]
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
	mov	w27, #0
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	cmp	x20, #0
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	ccmp	w8, #0, #4, ne
	ccmp	x22, #0, #4, ne
	cset	w23, ne
	mov	w20, #8
Lloh2:
	adrp	x24, _PIP_RESP_LENGTH_SIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PIP_RESP_LENGTH_SIZE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w27, w27, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	cbz	w20, LBB0_32
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w27, #5
	b.gt	LBB0_26
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x21, #8]
	ldr	w2, [x24]
	mov	x0, x21
	bl	_cyapa_i2c_pip_read
	mov	x25, x0
	tbnz	w0, #31, LBB0_32
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x21, #8]
	bl	_get_unaligned_le16
	ldr	w26, [x24]
	cmp	w0, w26
	b.eq	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x0
	ldr	w8, [x28]
	cmp	w0, w8
	b.gt	LBB0_27
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	w2, LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x21, #8]
	mov	x0, x21
	bl	_cyapa_i2c_pip_read
	tbnz	w0, #31, LBB0_28
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x21, #8]
	bl	_get_unaligned_le16
	ldr	w8, [x24]
	cmp	w0, w8
	b.le	LBB0_24
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	w23, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x0
	ldr	x1, [x21, #8]
	mov	x0, x21
	mov	x2, x25
	blr	x22
	cbnz	x0, LBB0_30
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w27, #0
	ldr	x8, [x21]
	cbz	x8, LBB0_25
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_25
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh4:
	adrp	x8, _CYAPA_PM_RUNTIME_RESUME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CYAPA_PM_RUNTIME_RESUME@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w9, w8
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh7:
	adrp	x8, _CYAPA_PM_RUNTIME_SUSPEND@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CYAPA_PM_RUNTIME_SUSPEND@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x21, #8]
	mov	x0, x21
	bl	_cyapa_pip_event_process
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w27, #0
	b	LBB0_25
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w23, LBB0_5
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x21, #8]
	mov	x0, x21
	mov	x2, x26
	blr	x22
	cbz	x0, LBB0_5
	b	LBB0_29
LBB0_24:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w27, #1
LBB0_25:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w20, w20, #1
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_5
LBB0_26:
	mov	w25, #0
	b	LBB0_32
LBB0_27:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_32
LBB0_28:
	mov	x25, x0
	b	LBB0_32
LBB0_29:
	ldr	w0, [sp, #4]                    ; 4-byte Folded Reload
	mov	x1, x26
	b	LBB0_31
LBB0_30:
	ldr	w0, [sp, #4]                    ; 4-byte Folded Reload
	mov	x1, x25
LBB0_31:
	bl	_min
	mov	x22, x0
	ldr	x1, [x21, #8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x22
	bl	_memcpy
	mov	w25, #0
	str	w22, [x19]
LBB0_32:
	mov	x0, x25
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CYAPA_REG_MAP_SIZE,4,2         ; @CYAPA_REG_MAP_SIZE
	.comm	_PIP_RESP_LENGTH_SIZE,4,2       ; @PIP_RESP_LENGTH_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CYAPA_PM_RUNTIME_RESUME,4,2    ; @CYAPA_PM_RUNTIME_RESUME
	.comm	_CYAPA_PM_RUNTIME_SUSPEND,4,2   ; @CYAPA_PM_RUNTIME_SUSPEND
.subsections_via_symbols
