	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9055_onkey_query
_da9055_onkey_query:                    ## @da9055_onkey_query
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	_DA9055_REG_STATUS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_da9055_reg_read
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	_DA9055_NOKEY_STS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.4:
	movl	4(%rbx), %edi
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_input_report_key
	movl	4(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_1:
	movq	8(%rbx), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_2:
	movl	$10, %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_schedule_delayed_work          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9055_REG_STATUS_A,4,2        ## @DA9055_REG_STATUS_A
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read onkey event %d\n"

	.comm	_DA9055_NOKEY_STS,4,2           ## @DA9055_NOKEY_STS
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.no_dead_strip	_da9055_onkey_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9055_onkey_query
_da9055_onkey_query:                    ; @da9055_onkey_query
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _DA9055_REG_STATUS_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DA9055_REG_STATUS_A@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_da9055_reg_read
	mov	x2, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _DA9055_NOKEY_STS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DA9055_NOKEY_STS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w2
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_input_report_key
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_sync
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_4:
	mov	w0, #10
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_schedule_delayed_work
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9055_REG_STATUS_A,4,2        ; @DA9055_REG_STATUS_A
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read onkey event %d\n"

	.comm	_DA9055_NOKEY_STS,4,2           ; @DA9055_NOKEY_STS
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.no_dead_strip	_da9055_onkey_query
.subsections_via_symbols
