	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ec_i2c_count_response
_ec_i2c_count_response:                 ## @ec_i2c_count_response
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%esi, %r8d
	cmpl	$1, %esi
	jne	LBB0_4
## %bb.3:
	movl	$4, %eax
	xorl	%esi, %esi
LBB0_10:
	testb	$1, %r8b
	je	LBB0_13
## %bb.11:
	shlq	$4, %rsi
	testl	%ecx, (%rdi,%rsi)
	je	LBB0_13
## %bb.12:
	addl	8(%rdi,%rsi), %eax
LBB0_13:
	popq	%rbp
	retq
LBB0_1:
	movl	$4, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	leaq	24(%rdi), %rdx
	movl	$4, %eax
	xorl	%esi, %esi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rsi
	addq	$32, %rdx
	cmpq	%rsi, %r9
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ecx, -24(%rdx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	-16(%rdx), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	testl	%ecx, -8(%rdx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	(%rdx), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.no_dead_strip	_ec_i2c_count_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ec_i2c_count_response
_ec_i2c_count_response:                 ; @ec_i2c_count_response
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, w1
	add	x10, x0, #8
	mov	w0, #4
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #16
	subs	x9, x9, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-8]
	tst	w8, w11
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x10]
	add	w0, w0, w11
	b	LBB0_2
LBB0_5:
	ret
LBB0_6:
	mov	w0, #4
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.no_dead_strip	_ec_i2c_count_response
.subsections_via_symbols
