	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cyapa_gen3_show_baseline
_cyapa_gen3_show_baseline:              ## @cyapa_gen3_show_baseline
	.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
	movq	%rdx, %r15
	movq	%rdi, %r14
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	_CYAPA_CMD_DEV_STATUS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_cyapa_read_byte
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_CYAPA_DEV_NORMAL@GOTPCREL(%rip), %r15
	movl	%ebx, %eax
	notl	%eax
	testl	%eax, (%r15)
	jne	LBB0_14
## %bb.2:
	movq	_CYAPA_CMD_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OP_REPORT_BASELINE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_cyapa_write_byte
	testl	%eax, %eax
	js	LBB0_17
## %bb.3:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_cyapa_read_byte
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_12
## %bb.4:
	notl	%ebx
	testl	%ebx, (%r15)
	je	LBB0_9
## %bb.5:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_cyapa_read_byte
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_12
## %bb.6:
	notl	%ebx
	testl	%ebx, (%r15)
	je	LBB0_9
## %bb.7:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_cyapa_read_byte
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_12
## %bb.8:
	notl	%ebx
	testl	%ebx, (%r15)
	jne	LBB0_20
LBB0_9:
	movq	_CYAPA_CMD_MAX_BASELINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cyapa_read_byte
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_18
## %bb.10:
	movq	_CYAPA_CMD_MIN_BASELINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cyapa_read_byte
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_19
## %bb.11:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_dev_dbg
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scnprintf                      ## TAILCALL
LBB0_12:
	leaq	L_.str(%rip), %rsi
LBB0_13:
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_warn
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_15:
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_13
LBB0_18:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_13
LBB0_19:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %ebx
	jmp	LBB0_16
LBB0_20:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_CYAPA_CMD_DEV_STATUS,4,2       ## @CYAPA_CMD_DEV_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading dev status. err = %d\n"

	.comm	_CYAPA_DEV_NORMAL,4,2           ## @CYAPA_DEV_NORMAL
L_.str.1:                               ## @.str.1
	.asciz	"Trackpad device is busy. device state = 0x%x\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_CYAPA_CMD_SOFT_RESET,4,2       ## @CYAPA_CMD_SOFT_RESET
	.comm	_OP_REPORT_BASELINE_MASK,4,2    ## @OP_REPORT_BASELINE_MASK
L_.str.2:                               ## @.str.2
	.asciz	"Failed to send report baseline command. %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Device timed out going to Normal state.\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_CYAPA_CMD_MAX_BASELINE,4,2     ## @CYAPA_CMD_MAX_BASELINE
L_.str.4:                               ## @.str.4
	.asciz	"Failed to read max baseline. err = %d\n"

	.comm	_CYAPA_CMD_MIN_BASELINE,4,2     ## @CYAPA_CMD_MIN_BASELINE
L_.str.5:                               ## @.str.5
	.asciz	"Failed to read min baseline. err = %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Baseline report successful. Max: %d Min: %d\n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.7:                               ## @.str.7
	.asciz	"%d %d\n"

	.no_dead_strip	_cyapa_gen3_show_baseline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cyapa_gen3_show_baseline
_cyapa_gen3_show_baseline:              ; @cyapa_gen3_show_baseline
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x19, x0
	bl	_dev_get_drvdata
	mov	x22, x0
Lloh0:
	adrp	x23, _CYAPA_CMD_DEV_STATUS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CYAPA_CMD_DEV_STATUS@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_cyapa_read_byte
	mov	x21, x0
	tbnz	w0, #31, LBB0_12
; %bb.1:
Lloh2:
	adrp	x24, _CYAPA_DEV_NORMAL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _CYAPA_DEV_NORMAL@GOTPAGEOFF]
	ldr	w8, [x24]
	bics	wzr, w8, w21
	b.ne	LBB0_13
; %bb.2:
Lloh4:
	adrp	x8, _CYAPA_CMD_SOFT_RESET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CYAPA_CMD_SOFT_RESET@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _OP_REPORT_BASELINE_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OP_REPORT_BASELINE_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_cyapa_write_byte
	tbnz	w0, #31, LBB0_15
; %bb.3:
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	ldr	w1, [x23]
	mov	x0, x22
	bl	_cyapa_read_byte
	mov	x21, x0
	tbnz	w0, #31, LBB0_16
; %bb.4:
	ldr	w8, [x24]
	bics	wzr, w8, w21
	b.eq	LBB0_9
; %bb.5:
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	ldr	w1, [x23]
	mov	x0, x22
	bl	_cyapa_read_byte
	mov	x21, x0
	tbnz	w0, #31, LBB0_16
; %bb.6:
	ldr	w8, [x24]
	bics	wzr, w8, w21
	b.eq	LBB0_9
; %bb.7:
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	ldr	w1, [x23]
	mov	x0, x22
	bl	_cyapa_read_byte
	mov	x21, x0
	tbnz	w0, #31, LBB0_16
; %bb.8:
	ldr	w8, [x24]
	bics	wzr, w8, w21
	b.ne	LBB0_22
LBB0_9:
Lloh10:
	adrp	x8, _CYAPA_CMD_MAX_BASELINE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CYAPA_CMD_MAX_BASELINE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_cyapa_read_byte
	mov	x21, x0
	tbnz	w0, #31, LBB0_20
; %bb.10:
Lloh13:
	adrp	x8, _CYAPA_CMD_MIN_BASELINE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CYAPA_CMD_MIN_BASELINE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_cyapa_read_byte
	mov	x22, x0
	tbnz	w0, #31, LBB0_21
; %bb.11:
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_dev_dbg
Lloh18:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh20:
	adrp	x2, l_.str.7@PAGE
Lloh21:
	add	x2, x2, l_.str.7@PAGEOFF
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x3, x21
	mov	x4, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_scnprintf
LBB0_12:
	mov	x8, x21
	str	x8, [sp]
	b	LBB0_17
LBB0_13:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_warn
Lloh25:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_19
LBB0_15:
	mov	x21, x0
	str	x21, [sp]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_19
LBB0_16:
	str	x21, [sp]
LBB0_17:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
LBB0_18:
	mov	x0, x19
	bl	_dev_err
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_20:
	mov	x8, x21
	str	x8, [sp]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_21:
	str	x22, [sp]
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x21, x22
	b	LBB0_19
LBB0_22:
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh37:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_CYAPA_CMD_DEV_STATUS,4,2       ; @CYAPA_CMD_DEV_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading dev status. err = %d\n"

	.comm	_CYAPA_DEV_NORMAL,4,2           ; @CYAPA_DEV_NORMAL
l_.str.1:                               ; @.str.1
	.asciz	"Trackpad device is busy. device state = 0x%x\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_CYAPA_CMD_SOFT_RESET,4,2       ; @CYAPA_CMD_SOFT_RESET
	.comm	_OP_REPORT_BASELINE_MASK,4,2    ; @OP_REPORT_BASELINE_MASK
l_.str.2:                               ; @.str.2
	.asciz	"Failed to send report baseline command. %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Device timed out going to Normal state.\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_CYAPA_CMD_MAX_BASELINE,4,2     ; @CYAPA_CMD_MAX_BASELINE
l_.str.4:                               ; @.str.4
	.asciz	"Failed to read max baseline. err = %d\n"

	.comm	_CYAPA_CMD_MIN_BASELINE,4,2     ; @CYAPA_CMD_MIN_BASELINE
l_.str.5:                               ; @.str.5
	.asciz	"Failed to read min baseline. err = %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Baseline report successful. Max: %d Min: %d\n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.7:                               ; @.str.7
	.asciz	"%d %d\n"

	.no_dead_strip	_cyapa_gen3_show_baseline
.subsections_via_symbols
