	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wf_ad7417_temp_get
_wf_ad7417_temp_get:                    ## @wf_ad7417_temp_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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rbx
	movl	$0, (%rsi)
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	$0, -48(%rbp)
	movl	4(%rbx), %edi
	leaq	-48(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_master_send
	movl	$-1, %r15d
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movl	4(%rbx), %edi
	leaq	-48(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_master_recv
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	leaq	-48(%rbp), %rdi
	callq	_be16_to_cpup
	shll	$8, %eax
	movl	%eax, (%r14)
	xorl	%r15d, %r15d
LBB0_3:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wf_ad7417_temp_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wf_ad7417_temp_get
_wf_ad7417_temp_get:                    ; @wf_ad7417_temp_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x19, [x0]
	str	wzr, [x1]
	mov	x0, x19
	bl	_mutex_lock
	str	xzr, [sp, #8]
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	mov	w2, #1
	bl	_i2c_master_send
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	mov	w2, #2
	bl	_i2c_master_recv
	tbnz	w0, #31, LBB0_3
; %bb.2:
	add	x0, sp, #8
	bl	_be16_to_cpup
	mov	w21, #0
	lsl	w8, w0, #8
	str	w8, [x20]
	b	LBB0_4
LBB0_3:
	mov	w21, #-1
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wf_ad7417_temp_get
.subsections_via_symbols
