	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfd77402_measure
_rfd77402_measure:                      ## @rfd77402_measure
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_RFD77402_CMD_MCPU_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RFD77402_STATUS_MCPU_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_rfd77402_set_state
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r14), %edi
	movq	_RFD77402_CMD_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RFD77402_CMD_SINGLE@GOTPCREL(%rip), %rax
	movq	_RFD77402_CMD_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	(%r14), %edi
	movq	_RFD77402_ICSR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_30
## %bb.5:
	movq	_RFD77402_ICSR_RESULT@GOTPCREL(%rip), %r12
	testl	%ebx, (%r12)
	je	LBB0_6
LBB0_25:
	movl	(%r14), %edi
	movq	_RFD77402_RESULT_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_word_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_30
## %bb.26:
	movq	_RFD77402_RESULT_ERR_MASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_27
LBB0_28:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_29:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_30
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_31
LBB0_3:
	movl	%eax, %ebx
LBB0_30:
	movq	_RFD77402_CMD_MCPU_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RFD77402_STATUS_MCPU_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_rfd77402_set_state
LBB0_31:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$20, %edi
	callq	_msleep
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_30
## %bb.7:
	testl	%ebx, (%r12)
	jne	LBB0_25
## %bb.8:
	movl	$20, %edi
	callq	_msleep
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_30
## %bb.9:
	testl	%ebx, (%r12)
	jne	LBB0_25
## %bb.10:
	movl	$20, %edi
	callq	_msleep
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_30
## %bb.11:
	testl	%ebx, (%r12)
	jne	LBB0_25
## %bb.12:
	movl	$20, %edi
	callq	_msleep
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_30
## %bb.13:
	testl	%ebx, (%r12)
	jne	LBB0_25
## %bb.14:
	movl	$20, %edi
	callq	_msleep
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_30
## %bb.15:
	testl	%ebx, (%r12)
	jne	LBB0_25
## %bb.16:
	movl	$20, %edi
	callq	_msleep
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_30
## %bb.17:
	testl	%ebx, (%r12)
	jne	LBB0_25
## %bb.18:
	movl	$20, %edi
	callq	_msleep
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_30
## %bb.19:
	testl	%ebx, (%r12)
	jne	LBB0_25
## %bb.20:
	movl	$20, %edi
	callq	_msleep
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_30
## %bb.21:
	testl	%ebx, (%r12)
	jne	LBB0_25
## %bb.22:
	movl	$20, %edi
	callq	_msleep
	movl	(%r14), %edi
	movl	(%r15), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_30
## %bb.23:
	testl	%ebx, (%r12)
	jne	LBB0_25
## %bb.24:
	movl	$20, %edi
	callq	_msleep
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_27:
	movq	_RFD77402_RESULT_VALID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_28
## %bb.32:
	movq	_RFD77402_RESULT_DIST_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	shrl	$2, %eax
	movl	%eax, %ebx
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_RFD77402_CMD_MCPU_ON,4,2       ## @RFD77402_CMD_MCPU_ON
	.comm	_RFD77402_STATUS_MCPU_ON,4,2    ## @RFD77402_STATUS_MCPU_ON
	.comm	_RFD77402_CMD_R,4,2             ## @RFD77402_CMD_R
	.comm	_RFD77402_CMD_SINGLE,4,2        ## @RFD77402_CMD_SINGLE
	.comm	_RFD77402_CMD_VALID,4,2         ## @RFD77402_CMD_VALID
	.comm	_RFD77402_ICSR,4,2              ## @RFD77402_ICSR
	.comm	_RFD77402_ICSR_RESULT,4,2       ## @RFD77402_ICSR_RESULT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_RFD77402_RESULT_R,4,2          ## @RFD77402_RESULT_R
	.comm	_RFD77402_RESULT_ERR_MASK,4,2   ## @RFD77402_RESULT_ERR_MASK
	.comm	_RFD77402_RESULT_VALID,4,2      ## @RFD77402_RESULT_VALID
	.comm	_EIO,4,2                        ## @EIO
	.comm	_RFD77402_RESULT_DIST_MASK,4,2  ## @RFD77402_RESULT_DIST_MASK
	.comm	_RFD77402_CMD_MCPU_OFF,4,2      ## @RFD77402_CMD_MCPU_OFF
	.comm	_RFD77402_STATUS_MCPU_OFF,4,2   ## @RFD77402_STATUS_MCPU_OFF
	.no_dead_strip	_rfd77402_measure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfd77402_measure
_rfd77402_measure:                      ; @rfd77402_measure
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
Lloh0:
	adrp	x8, _RFD77402_CMD_MCPU_ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RFD77402_CMD_MCPU_ON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _RFD77402_STATUS_MCPU_ON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RFD77402_STATUS_MCPU_ON@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_rfd77402_set_state
	tbnz	w0, #31, LBB0_8
; %bb.1:
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _RFD77402_CMD_R@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RFD77402_CMD_R@GOTPAGEOFF]
Lloh8:
	adrp	x9, _RFD77402_CMD_SINGLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RFD77402_CMD_SINGLE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _RFD77402_CMD_VALID@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RFD77402_CMD_VALID@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldr	w0, [x19]
Lloh15:
	adrp	x21, _RFD77402_ICSR@GOTPAGE
Lloh16:
	ldr	x21, [x21, _RFD77402_ICSR@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.3:
Lloh17:
	adrp	x22, _RFD77402_ICSR_RESULT@GOTPAGE
Lloh18:
	ldr	x22, [x22, _RFD77402_ICSR_RESULT@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_12
LBB0_4:
	ldr	w0, [x19]
Lloh19:
	adrp	x8, _RFD77402_RESULT_R@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RFD77402_RESULT_R@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_word_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.5:
Lloh22:
	adrp	x8, _RFD77402_RESULT_ERR_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RFD77402_RESULT_ERR_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_31
LBB0_6:
Lloh25:
	adrp	x8, _EIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_8:
	mov	x20, x0
	b	LBB0_11
LBB0_9:
	mov	x20, x0
LBB0_10:
Lloh27:
	adrp	x8, _RFD77402_CMD_MCPU_OFF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RFD77402_CMD_MCPU_OFF@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _RFD77402_STATUS_MCPU_OFF@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RFD77402_STATUS_MCPU_OFF@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rfd77402_set_state
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.13:
	ldr	w8, [x22]
	tst	w8, w20
	b.ne	LBB0_4
; %bb.14:
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.15:
	ldr	w8, [x22]
	tst	w8, w20
	b.ne	LBB0_4
; %bb.16:
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.17:
	ldr	w8, [x22]
	tst	w8, w20
	b.ne	LBB0_4
; %bb.18:
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.19:
	ldr	w8, [x22]
	tst	w8, w20
	b.ne	LBB0_4
; %bb.20:
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.21:
	ldr	w8, [x22]
	tst	w8, w20
	b.ne	LBB0_4
; %bb.22:
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.23:
	ldr	w8, [x22]
	tst	w8, w20
	b.ne	LBB0_4
; %bb.24:
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.25:
	ldr	w8, [x22]
	tst	w8, w20
	b.ne	LBB0_4
; %bb.26:
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.27:
	ldr	w8, [x22]
	tst	w8, w20
	b.ne	LBB0_4
; %bb.28:
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.29:
	ldr	w8, [x22]
	tst	w8, w20
	b.ne	LBB0_4
; %bb.30:
	mov	w0, #20
	bl	_msleep
Lloh33:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_7
LBB0_31:
Lloh35:
	adrp	x8, _RFD77402_RESULT_VALID@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RFD77402_RESULT_VALID@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.32:
Lloh38:
	adrp	x8, _RFD77402_RESULT_DIST_MASK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RFD77402_RESULT_DIST_MASK@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	and	w8, w8, w20
	lsr	w20, w8, #2
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_RFD77402_CMD_MCPU_ON,4,2       ; @RFD77402_CMD_MCPU_ON
	.comm	_RFD77402_STATUS_MCPU_ON,4,2    ; @RFD77402_STATUS_MCPU_ON
	.comm	_RFD77402_CMD_R,4,2             ; @RFD77402_CMD_R
	.comm	_RFD77402_CMD_SINGLE,4,2        ; @RFD77402_CMD_SINGLE
	.comm	_RFD77402_CMD_VALID,4,2         ; @RFD77402_CMD_VALID
	.comm	_RFD77402_ICSR,4,2              ; @RFD77402_ICSR
	.comm	_RFD77402_ICSR_RESULT,4,2       ; @RFD77402_ICSR_RESULT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_RFD77402_RESULT_R,4,2          ; @RFD77402_RESULT_R
	.comm	_RFD77402_RESULT_ERR_MASK,4,2   ; @RFD77402_RESULT_ERR_MASK
	.comm	_RFD77402_RESULT_VALID,4,2      ; @RFD77402_RESULT_VALID
	.comm	_EIO,4,2                        ; @EIO
	.comm	_RFD77402_RESULT_DIST_MASK,4,2  ; @RFD77402_RESULT_DIST_MASK
	.comm	_RFD77402_CMD_MCPU_OFF,4,2      ; @RFD77402_CMD_MCPU_OFF
	.comm	_RFD77402_STATUS_MCPU_OFF,4,2   ; @RFD77402_STATUS_MCPU_OFF
	.no_dead_strip	_rfd77402_measure
.subsections_via_symbols
