	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nau7802_read_conversion
_nau7802_read_conversion:               ## @nau7802_read_conversion
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	8(%r15), %edi
	movq	_NAU7802_REG_ADC_B2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	shll	$16, %ebx
	movl	%ebx, (%r15)
	movl	8(%r15), %edi
	movq	_NAU7802_REG_ADC_B1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	shll	$8, %ebx
	orl	%ebx, (%r15)
	movl	8(%r15), %edi
	movq	_NAU7802_REG_ADC_B0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	orl	%ebx, %edi
	movl	%edi, (%r15)
	movl	$23, %esi
	callq	_sign_extend32
	movl	%eax, (%r15)
LBB0_4:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAU7802_REG_ADC_B2,4,2         ## @NAU7802_REG_ADC_B2
	.comm	_NAU7802_REG_ADC_B1,4,2         ## @NAU7802_REG_ADC_B1
	.comm	_NAU7802_REG_ADC_B0,4,2         ## @NAU7802_REG_ADC_B0
	.no_dead_strip	_nau7802_read_conversion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nau7802_read_conversion
_nau7802_read_conversion:               ; @nau7802_read_conversion
	.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	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x8, _NAU7802_REG_ADC_B2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAU7802_REG_ADC_B2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	lsl	w8, w21, #16
	str	w8, [x20]
	ldr	w0, [x20, #8]
Lloh3:
	adrp	x8, _NAU7802_REG_ADC_B1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NAU7802_REG_ADC_B1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	w8, [x20]
	orr	w8, w8, w21, lsl #8
	str	w8, [x20]
	ldr	w0, [x20, #8]
Lloh6:
	adrp	x8, _NAU7802_REG_ADC_B0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NAU7802_REG_ADC_B0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldr	w8, [x20]
	orr	w0, w8, w21
	str	w0, [x20]
	mov	w1, #23
	bl	_sign_extend32
	str	w0, [x20]
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NAU7802_REG_ADC_B2,4,2         ; @NAU7802_REG_ADC_B2
	.comm	_NAU7802_REG_ADC_B1,4,2         ; @NAU7802_REG_ADC_B1
	.comm	_NAU7802_REG_ADC_B0,4,2         ; @NAU7802_REG_ADC_B0
	.no_dead_strip	_nau7802_read_conversion
.subsections_via_symbols
