	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ec_i2c_parse_response
_ec_i2c_parse_response:                 ## @ec_i2c_parse_response
	.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	(%rdi), %eax
	movq	_EC_I2C_STATUS_TIMEOUT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	_EC_I2C_STATUS_NAK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_5:
	movq	_EC_I2C_STATUS_ERROR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_7:
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	4(%rdi), %ecx
	cmpl	(%rdx), %ecx
	jle	LBB0_9
## %bb.8:
	movq	_EPROTO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%ecx, (%r14)
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.11:
	movq	%rsi, %rbx
	addq	$32, %r15
	addq	$8, %rbx
	xorl	%r12d, %r12d
	movq	_I2C_M_RD@GOTPCREL(%rip), %r13
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r12
	movslq	%ecx, %rdx
	addq	$12, %rbx
	xorl	%eax, %eax
	cmpq	%rdx, %r12
	jge	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	testl	%eax, -8(%rbx)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	-4(%rbx), %edx
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_memcpy
	movslq	-4(%rbx), %rax
	leaq	(%r15,%rax,4), %r15
	movl	(%r14), %ecx
	jmp	LBB0_14
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_I2C_STATUS_TIMEOUT,4,2      ## @EC_I2C_STATUS_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_EC_I2C_STATUS_NAK,4,2          ## @EC_I2C_STATUS_NAK
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EC_I2C_STATUS_ERROR,4,2        ## @EC_I2C_STATUS_ERROR
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.no_dead_strip	_ec_i2c_parse_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_parse_response
_ec_i2c_parse_response:                 ; @ec_i2c_parse_response
	.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	x20, x0
	ldr	w8, [x20], #32
Lloh0:
	adrp	x9, _EC_I2C_STATUS_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EC_I2C_STATUS_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
Lloh5:
	adrp	x9, _EC_I2C_STATUS_NAK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EC_I2C_STATUS_NAK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh10:
	adrp	x9, _EC_I2C_STATUS_ERROR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EC_I2C_STATUS_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x19, x2
	ldr	w8, [x0, #4]
	ldr	w9, [x2]
	cmp	w8, w9
	b.le	LBB0_10
; %bb.7:
Lloh15:
	adrp	x8, _EPROTO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
LBB0_10:
	str	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.11:
	mov	x21, #0
	add	x22, x1, #4
Lloh17:
	adrp	x23, _I2C_M_RD@GOTPAGE
Lloh18:
	ldr	x23, [x23, _I2C_M_RD@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #0
	add	x21, x21, #1
	add	x22, x22, #12
	cmp	x21, w8, sxtw
	b.ge	LBB0_9
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldur	w9, [x22, #-4]
	ldr	w10, [x23]
	tst	w10, w9
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldp	w2, w0, [x22]
	mov	x1, x20
	bl	_memcpy
	ldrsw	x8, [x22]
	add	x20, x20, x8, lsl #2
	ldr	w8, [x19]
	b	LBB0_12
LBB0_15:
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_I2C_STATUS_TIMEOUT,4,2      ; @EC_I2C_STATUS_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_EC_I2C_STATUS_NAK,4,2          ; @EC_I2C_STATUS_NAK
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EC_I2C_STATUS_ERROR,4,2        ; @EC_I2C_STATUS_ERROR
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.no_dead_strip	_ec_i2c_parse_response
.subsections_via_symbols
