	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ich6_gpio_get
_ich6_gpio_get:                         ## @ich6_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	cmpl	$15, %esi
	ja	LBB0_3
## %bb.1:
	movq	_ichx_priv@GOTPCREL(%rip), %r14
	cmpl	$0, 4(%r14)
	je	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	leal	16(%rbx), %edi
	callq	_BIT
	movl	4(%r14), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ICHX_WRITE
	movl	4(%r14), %esi
	xorl	%edi, %edi
	callq	_ICHX_READ
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	sarl	$16, %r15d
	movl	%ebx, %edi
	callq	_BIT
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%r15d, %ecx
	setne	%al
	jmp	LBB0_5
LBB0_3:
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ichx_gpio_get                  ## TAILCALL
LBB0_2:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ichx_priv,8,2                  ## @ichx_priv
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_ich6_gpio_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ich6_gpio_get
_ich6_gpio_get:                         ; @ich6_gpio_get
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmp	w1, #15
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x20, _ichx_priv@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ichx_priv@GOTPAGEOFF]
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_spin_lock_irqsave
	add	w0, w19, #16
	bl	_BIT
	ldr	w2, [x20, #4]
	mov	w1, #0
	bl	_ICHX_WRITE
	ldr	w1, [x20, #4]
	mov	w0, #0
	bl	_ICHX_READ
	mov	x21, x0
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_BIT
	tst	w0, w21, asr #16
	cset	w0, ne
	b	LBB0_5
LBB0_3:
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ichx_gpio_get
LBB0_4:
Lloh2:
	adrp	x8, _ENXIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ichx_priv,8,2                  ; @ichx_priv
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_ich6_gpio_get
.subsections_via_symbols
