	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_keyboard_state_event
_get_keyboard_state_event:              ## @get_keyboard_state_event
	.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
	subq	$152, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	$0, -136(%rbp)
	movq	_EC_CMD_MKBP_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -144(%rbp)
	movl	$4, -160(%rbp)
	movq	$0, -152(%rbp)
	leaq	-160(%rbp), %rsi
	callq	_cros_ec_cmd_xfer
	movl	%eax, (%rbx)
	movq	_EC_MKBP_EVENT_KEY_MATRIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	4(%rbx), %rdi
	movl	%eax, 8(%rbx)
	movl	-156(%rbp), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	(%rbx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$152, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_CMD_MKBP_STATE,4,2          ## @EC_CMD_MKBP_STATE
	.comm	_EC_MKBP_EVENT_KEY_MATRIX,4,2   ## @EC_MKBP_EVENT_KEY_MATRIX
	.no_dead_strip	_get_keyboard_state_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_keyboard_state_event
_get_keyboard_state_event:              ; @get_keyboard_state_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _EC_CMD_MKBP_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_CMD_MKBP_STATE@GOTPAGEOFF]
	str	xzr, [sp, #32]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	mov	w8, #4
	str	w8, [sp, #8]
	str	xzr, [sp, #16]
	add	x1, sp, #8
	bl	_cros_ec_cmd_xfer
	str	w0, [x19]
Lloh6:
	adrp	x8, _EC_MKBP_EVENT_KEY_MATRIX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EC_MKBP_EVENT_KEY_MATRIX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	x0, x19, #4
	str	w8, [x19, #8]
	ldr	w1, [sp, #12]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19]
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_CMD_MKBP_STATE,4,2          ; @EC_CMD_MKBP_STATE
	.comm	_EC_MKBP_EVENT_KEY_MATRIX,4,2   ; @EC_MKBP_EVENT_KEY_MATRIX
	.no_dead_strip	_get_keyboard_state_event
.subsections_via_symbols
