	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp206c_conv_and_read
_hp206c_conv_and_read:                  ## @hp206c_conv_and_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_iio_priv
	movq	(%rax), %r12
	movq	%r14, %rdi
	callq	_hp206c_wait_dev_rdy
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	leal	(%r13,%r13,2), %esi
	shrl	%esi
	movl	%r13d, %edi
	callq	_usleep_range
	movq	%r14, %rdi
	callq	_hp206c_wait_dev_rdy
	testl	%eax, %eax
	js	LBB0_1
## %bb.5:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_hp206c_read_20bit
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_8
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device not ready: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed convert: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed read: %d\n"

	.no_dead_strip	_hp206c_conv_and_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hp206c_conv_and_read
_hp206c_conv_and_read:                  ; @hp206c_conv_and_read
	.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	x23, x3
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
	bl	_iio_priv
	ldr	x22, [x0]
	mov	x0, x19
	bl	_hp206c_wait_dev_rdy
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x0, x22
	mov	x1, x24
	bl	_i2c_smbus_write_byte
	tbnz	w0, #31, LBB0_6
; %bb.2:
	add	w8, w23, w23, lsl #1
	lsr	w1, w8, #1
	mov	x0, x23
	bl	_usleep_range
	mov	x0, x19
	bl	_hp206c_wait_dev_rdy
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	x0, x22
	mov	x1, x21
	bl	_hp206c_read_20bit
	mov	x20, x0
	tbz	w0, #31, LBB0_8
; %bb.4:
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_8:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device not ready: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed convert: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed read: %d\n"

	.no_dead_strip	_hp206c_conv_and_read
.subsections_via_symbols
