	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eic_read
_eic_read:                              ## @eic_read
	.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
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rbx
	movl	$2, -144(%rbp)
	leaq	-56(%rbp), %rax
	movq	%rax, -136(%rbp)
	movl	$0, -128(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -124(%rbp)
	movl	$8, -120(%rbp)
	leaq	-96(%rbp), %rcx
	movq	%rcx, -112(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -104(%rbp)
	movl	%eax, -100(%rbp)
	movq	_SHT21_READ_SNB_CMD1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_SHT21_READ_SNB_CMD2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	(%rbx), %edi
	leaq	-144(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movl	-96(%rbp), %r14d
	movl	-88(%rbp), %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movl	-80(%rbp), %r13d
	movl	-72(%rbp), %r15d
	movq	_SHT21_READ_SNAC_CMD1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_SHT21_READ_SNAC_CMD2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	$6, -120(%rbp)
	movl	(%rbx), %edi
	leaq	-144(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movl	-84(%rbp), %ecx
	movl	-80(%rbp), %r8d
	movl	-96(%rbp), %eax
	movl	-92(%rbp), %ebx
	movq	(%r12), %rdi
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	movl	$8, %esi
	movl	%r14d, %r9d
	pushq	%rbx
	pushq	%rax
	pushq	%r15
	pushq	%r13
	pushq	-152(%rbp)                      ## 8-byte Folded Reload
	callq	_snprintf
	addq	$48, %rsp
	testl	%eax, %eax
	jns	LBB0_4
LBB0_3:
	movq	(%r12), %rcx
	movq	$0, (%rcx)
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_SHT21_READ_SNB_CMD1,4,2        ## @SHT21_READ_SNB_CMD1
	.comm	_SHT21_READ_SNB_CMD2,4,2        ## @SHT21_READ_SNB_CMD2
	.comm	_SHT21_READ_SNAC_CMD1,4,2       ## @SHT21_READ_SNAC_CMD1
	.comm	_SHT21_READ_SNAC_CMD2,4,2       ## @SHT21_READ_SNAC_CMD2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02x%02x%02x%02x%02x%02x%02x%02x\n"

	.no_dead_strip	_eic_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eic_read
_eic_read:                              ; @eic_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x23, [x0, #8]
	mov	w8, #2
	str	w8, [sp, #16]
	sub	x8, x29, #64
	str	x8, [sp, #24]
	str	wzr, [sp, #32]
	ldr	w8, [x23, #4]
	mov	w9, #8
	stp	w8, w9, [sp, #36]
	add	x9, sp, #64
	str	x9, [sp, #48]
Lloh3:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #56]
Lloh6:
	adrp	x8, _SHT21_READ_SNB_CMD1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SHT21_READ_SNB_CMD1@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SHT21_READ_SNB_CMD2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SHT21_READ_SNB_CMD2@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w8, w9, [x29, #-64]
	ldr	w0, [x23]
	add	x1, sp, #16
	mov	w2, #2
	bl	_i2c_transfer
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w20, [sp, #64]
	ldr	w21, [sp, #72]
	ldr	w22, [sp, #80]
	ldr	w24, [sp, #88]
Lloh12:
	adrp	x8, _SHT21_READ_SNAC_CMD1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SHT21_READ_SNAC_CMD1@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _SHT21_READ_SNAC_CMD2@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SHT21_READ_SNAC_CMD2@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w8, w9, [x29, #-64]
	mov	w8, #6
	str	w8, [sp, #40]
	ldr	w0, [x23]
	add	x1, sp, #16
	mov	w2, #2
	bl	_i2c_transfer
	tbnz	w0, #31, LBB0_3
; %bb.2:
	ldp	w3, w4, [sp, #76]
	ldp	w8, w9, [sp, #64]
	ldr	x0, [x19]
	stp	w8, w9, [sp, #4]
	str	w24, [sp]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #8
	mov	x5, x20
	mov	x6, x21
	mov	x7, x22
	bl	_snprintf
	tbz	w0, #31, LBB0_4
LBB0_3:
	ldr	x8, [x19]
	str	xzr, [x8]
LBB0_4:
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_SHT21_READ_SNB_CMD1,4,2        ; @SHT21_READ_SNB_CMD1
	.comm	_SHT21_READ_SNB_CMD2,4,2        ; @SHT21_READ_SNB_CMD2
	.comm	_SHT21_READ_SNAC_CMD1,4,2       ; @SHT21_READ_SNAC_CMD1
	.comm	_SHT21_READ_SNAC_CMD2,4,2       ; @SHT21_READ_SNAC_CMD2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02x%02x%02x%02x%02x%02x%02x%02x\n"

	.no_dead_strip	_eic_read
.subsections_via_symbols
