	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h1_gpio_get
_h1_gpio_get:                           ## @h1_gpio_get
	.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	%r12
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	-128(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_CMD_KB_CHROME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	_SUB_CMD_H1_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_WILCO_EC_MSG_LEGACY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%r15, -72(%rbp)
	movabsq	$68719476776, %rax              ## imm = 0x1000000028
	movq	%rax, -88(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_wilco_ec_mailbox
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	cmpq	$0, -40(%rbp)
	je	LBB0_3
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	movl	-48(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_4:
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_KB_CHROME,4,2              ## @CMD_KB_CHROME
	.comm	_SUB_CMD_H1_GPIO,4,2            ## @SUB_CMD_H1_GPIO
	.comm	_WILCO_EC_MSG_LEGACY,4,2        ## @WILCO_EC_MSG_LEGACY
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_h1_gpio_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function h1_gpio_get
lCPI0_0:
	.long	40                              ; 0x28
	.long	16                              ; 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_h1_gpio_get:                           ; @h1_gpio_get
	.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
	mov	x20, x0
	add	x21, sp, #56
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh0:
	adrp	x8, _CMD_KB_CHROME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_KB_CHROME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SUB_CMD_H1_GPIO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUB_CMD_H1_GPIO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #84]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh6:
	adrp	x8, _WILCO_EC_MSG_LEGACY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WILCO_EC_MSG_LEGACY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x8, sp, #40
	stp	x8, x21, [sp, #8]
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp]
	mov	x1, sp
	mov	x0, x20
	bl	_wilco_ec_mailbox
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x8, [sp, #48]
	cbz	x8, LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	w0, #0
	ldr	w8, [sp, #40]
	str	w8, [x19]
LBB0_4:
	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
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_KB_CHROME,4,2              ; @CMD_KB_CHROME
	.comm	_SUB_CMD_H1_GPIO,4,2            ; @SUB_CMD_H1_GPIO
	.comm	_WILCO_EC_MSG_LEGACY,4,2        ; @WILCO_EC_MSG_LEGACY
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_h1_gpio_get
.subsections_via_symbols
