	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmard06_read_raw
_dmard06_read_raw:                      ## @dmard06_read_raw
	.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
	movq	%r8, %rbx
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %r12
	callq	_iio_priv
	movq	%rax, %r15
	cmpq	$129, %rbx
	je	LBB0_14
## %bb.1:
	cmpq	$131, %rbx
	je	LBB0_12
## %bb.2:
	cmpq	$130, %rbx
	jne	LBB0_19
## %bb.3:
	movq	8(%r15), %rdi
	movl	4(%r12), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_DMARD06_SIGN_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_sign_extend32
	movl	%eax, (%r14)
	movl	(%r15), %edx
	movq	_DMARD06_CHIP_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_7
## %bb.6:
	sarl	%eax
	movl	%eax, (%r14)
LBB0_7:
	movl	(%r12), %edx
	cmpl	$128, %edx
	je	LBB0_10
## %bb.8:
	cmpl	$132, %edx
	je	LBB0_9
	jmp	LBB0_19
LBB0_14:
	cmpl	$132, (%r12)
	jne	LBB0_19
## %bb.15:
	movl	$0, (%r14)
	movl	(%r15), %eax
	movq	_DMARD06_CHIP_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.17:
	movq	_DMARD06_AXIS_SCALE_VAL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_12:
	cmpl	$128, (%r12)
	jne	LBB0_19
## %bb.13:
	movq	_DMARD06_TEMP_CENTER_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_9:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_20
LBB0_16:
	movq	_DMARD05_AXIS_SCALE_VAL@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
LBB0_10:
	movl	(%r15), %edx
	cmpl	(%rcx), %edx
	je	LBB0_9
## %bb.11:
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, (%r14)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading data: %d\n"

	.comm	_DMARD06_SIGN_BIT,4,2           ## @DMARD06_SIGN_BIT
	.comm	_DMARD06_CHIP_ID,4,2            ## @DMARD06_CHIP_ID
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DMARD06_TEMP_CENTER_VAL,4,2    ## @DMARD06_TEMP_CENTER_VAL
	.comm	_DMARD06_AXIS_SCALE_VAL,4,2     ## @DMARD06_AXIS_SCALE_VAL
	.comm	_DMARD05_AXIS_SCALE_VAL,4,2     ## @DMARD05_AXIS_SCALE_VAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_dmard06_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmard06_read_raw
_dmard06_read_raw:                      ; @dmard06_read_raw
	.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, x4
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	bl	_iio_priv
	mov	x20, x0
	cmp	x23, #129
	b.eq	LBB0_8
; %bb.1:
	cmp	x23, #131
	b.eq	LBB0_10
; %bb.2:
	cmp	x23, #130
	b.ne	LBB0_15
; %bb.3:
	ldr	x0, [x20, #8]
	ldr	w1, [x21, #4]
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_17
; %bb.4:
Lloh0:
	adrp	x8, _DMARD06_SIGN_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMARD06_SIGN_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_sign_extend32
	str	w0, [x19]
	ldr	w9, [x20]
Lloh3:
	adrp	x8, _DMARD06_CHIP_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMARD06_CHIP_ID@GOTPAGEOFF]
	ldr	w10, [x8]
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.5:
	asr	w0, w0, #1
	str	w0, [x19]
LBB0_6:
	ldr	w9, [x21]
	cmp	w9, #128
	b.eq	LBB0_18
; %bb.7:
	cmp	w9, #132
	b.eq	LBB0_13
	b	LBB0_15
LBB0_8:
	ldr	w8, [x21]
	cmp	w8, #132
	b.ne	LBB0_15
; %bb.9:
	str	wzr, [x19]
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _DMARD06_CHIP_ID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DMARD06_CHIP_ID@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _DMARD06_AXIS_SCALE_VAL@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DMARD06_AXIS_SCALE_VAL@GOTPAGEOFF]
Lloh10:
	adrp	x11, _DMARD05_AXIS_SCALE_VAL@GOTPAGE
Lloh11:
	ldr	x11, [x11, _DMARD05_AXIS_SCALE_VAL@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x22]
Lloh12:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
	ldr	w8, [x21]
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.11:
Lloh14:
	adrp	x8, _DMARD06_TEMP_CENTER_VAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DMARD06_TEMP_CENTER_VAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
LBB0_12:
	str	w8, [x19]
LBB0_13:
Lloh17:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
LBB0_14:
	ldr	w22, [x8]
	b	LBB0_16
LBB0_15:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_16:
	mov	x0, x22
	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
LBB0_17:
	ldr	x0, [x20, #8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_16
LBB0_18:
	ldr	w9, [x20]
	ldr	w8, [x8]
	cmp	w9, w8
	b.eq	LBB0_13
; %bb.19:
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w8, w8, #1
	b	LBB0_12
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading data: %d\n"

	.comm	_DMARD06_SIGN_BIT,4,2           ; @DMARD06_SIGN_BIT
	.comm	_DMARD06_CHIP_ID,4,2            ; @DMARD06_CHIP_ID
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DMARD06_TEMP_CENTER_VAL,4,2    ; @DMARD06_TEMP_CENTER_VAL
	.comm	_DMARD06_AXIS_SCALE_VAL,4,2     ; @DMARD06_AXIS_SCALE_VAL
	.comm	_DMARD05_AXIS_SCALE_VAL,4,2     ; @DMARD05_AXIS_SCALE_VAL
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.no_dead_strip	_dmard06_read_raw
.subsections_via_symbols
