	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function cyapa_gen6_get_interval_setting
LCPI0_0:
	.long	4                               ## 0x4
	.long	0                               ## 0x0
	.long	5                               ## 0x5
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_cyapa_gen6_get_interval_setting:       ## @cyapa_gen6_get_interval_setting
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4,0,5,0]
	movaps	%xmm0, -64(%rbp)
	movq	$47, -48(%rbp)
	movq	_GEN6_GET_POWER_MODE_INTERVAL@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, -40(%rbp)
	movl	$44, -116(%rbp)
	movq	_cyapa_sort_tsg_pip_app_resp_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-64(%rbp), %rsi
	leaq	-112(%rbp), %rcx
	leaq	-116(%rbp), %r8
	movl	$28, %edx
	movl	$500, %r9d                      ## imm = 0x1F4
	pushq	$0
	pushq	%rax
	callq	_cyapa_i2c_pip_cmd_irq_sync
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%ebx, %ebx
	cmovsl	%ebx, %eax
	jmp	LBB0_4
LBB0_1:
	movl	(%r15), %esi
	leaq	-112(%rbp), %rdi
	callq	_VALID_CMD_RESP_HEADER
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	-92(%rbp), %rdi
	callq	_get_unaligned_le16
	movq	%rax, 16(%r14)
	leaq	-84(%rbp), %rdi
	callq	_get_unaligned_le16
	movq	%rax, 8(%r14)
	leaq	-76(%rbp), %rdi
	callq	_get_unaligned_le16
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN6_GET_POWER_MODE_INTERVAL,4,2 ## @GEN6_GET_POWER_MODE_INTERVAL
	.comm	_cyapa_sort_tsg_pip_app_resp_data,4,2 ## @cyapa_sort_tsg_pip_app_resp_data
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cyapa_gen6_get_interval_setting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function cyapa_gen6_get_interval_setting
lCPI0_0:
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.long	5                               ; 0x5
	.long	0                               ; 0x0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	47                              ; 0x2f
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cyapa_gen6_get_interval_setting:       ; @cyapa_gen6_get_interval_setting
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp, #48]
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #64]
Lloh7:
	adrp	x21, _GEN6_GET_POWER_MODE_INTERVAL@GOTPAGE
Lloh8:
	ldr	x21, [x21, _GEN6_GET_POWER_MODE_INTERVAL@GOTPAGEOFF]
	ldr	w8, [x21]
	str	w8, [sp, #72]
	mov	w8, #44
	str	w8, [sp]
Lloh9:
	adrp	x8, _cyapa_sort_tsg_pip_app_resp_data@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cyapa_sort_tsg_pip_app_resp_data@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x8]
	add	x1, sp, #48
	add	x3, sp, #4
	mov	x4, sp
	mov	w2, #28
	mov	w5, #500
	mov	w7, #0
	bl	_cyapa_i2c_pip_cmd_irq_sync
	mov	x20, x0
	cbz	w0, LBB0_2
LBB0_1:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w20, #0
	csneg	w0, w20, w8, lt
	b	LBB0_4
LBB0_2:
	ldr	w1, [x21]
	add	x21, sp, #4
	add	x0, sp, #4
	bl	_VALID_CMD_RESP_HEADER
	cbz	w0, LBB0_1
; %bb.3:
	add	x0, x21, #20
	bl	_get_unaligned_le16
	str	x0, [x19, #16]
	add	x0, x21, #28
	bl	_get_unaligned_le16
	str	x0, [x19, #8]
	add	x0, x21, #36
	bl	_get_unaligned_le16
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN6_GET_POWER_MODE_INTERVAL,4,2 ; @GEN6_GET_POWER_MODE_INTERVAL
	.comm	_cyapa_sort_tsg_pip_app_resp_data,4,2 ; @cyapa_sort_tsg_pip_app_resp_data
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cyapa_gen6_get_interval_setting
.subsections_via_symbols
