	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ichx_read_bit
_ichx_read_bit:                         ## @ichx_read_bit
	.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
	movl	%esi, %r12d
	movl	%edi, %r15d
	movl	%esi, %ebx
	shrl	$5, %ebx
	movq	_ichx_priv@GOTPCREL(%rip), %r13
	leaq	8(%r13), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r13), %rax
	movq	8(%rax), %rax
	movslq	%r15d, %r15
	movq	(%rax,%r15,8), %rax
	movl	(%rax,%rbx,4), %edi
	movl	24(%r13), %esi
	callq	_ICHX_READ
	movq	_GPIO_LVL@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_3
## %bb.1:
	movq	16(%r13), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	(%r13), %rcx
	orl	(%rcx,%rbx,4), %eax
LBB0_3:
	movl	%eax, %ebx
	andl	$31, %r12d
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r12d, %edi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%ebx, %eax
	setne	%cl
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ichx_priv,32,3                 ## @ichx_priv
	.comm	_GPIO_LVL,4,2                   ## @GPIO_LVL
	.no_dead_strip	_ichx_read_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ichx_read_bit
_ichx_read_bit:                         ; @ichx_read_bit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x22, x0
	lsr	w23, w1, #5
Lloh0:
	adrp	x24, _ichx_priv@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ichx_priv@GOTPAGEOFF]
	add	x20, x24, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x24, #16]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, w22, sxtw #3]
	ldr	w0, [x8, w23, uxtw #2]
	ldr	w1, [x24, #24]
	bl	_ICHX_READ
	mov	x21, x0
Lloh2:
	adrp	x8, _GPIO_LVL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPIO_LVL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x24, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x24]
	ldr	w8, [x8, x23, lsl #2]
	orr	w21, w8, w21
LBB0_3:
	and	w19, w19, #0x1f
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_BIT
	tst	w0, w21
	cset	w0, ne
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ichx_priv,32,3                 ; @ichx_priv
	.comm	_GPIO_LVL,4,2                   ; @GPIO_LVL
	.no_dead_strip	_ichx_read_bit
.subsections_via_symbols
