	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx90614_read_raw
_mlx90614_read_raw:                     ## @mlx90614_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, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	callq	_iio_priv
	addq	$-130, %rbx
	cmpq	$4, %rbx
	ja	LBB0_26
## %bb.1:
	movq	%rax, %r12
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_18:
	movq	_MLX90614_CONST_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_15:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_28
LBB0_2:
	movl	4(%r13), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_26
## %bb.5:
	movl	(%r13), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	cmpl	$1, %eax
	jne	LBB0_26
## %bb.8:
	movq	_MLX90614_TOBJ2@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_26:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_27:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_28
LBB0_16:
	movq	_MLX90614_CONST_OFFSET_DEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_MLX90614_CONST_OFFSET_REM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_24:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_mlx90614_power_get
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	4(%r12), %edi
	movq	_MLX90614_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_word_data
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_mlx90614_power_put
	testl	%ebx, %ebx
	js	LBB0_28
## %bb.25:
	movq	_mlx90614_iir_values@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MLX90614_CONFIG_IIR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%ebx, %edx
	movslq	(%rax,%rdx,4), %rdx
	imulq	$1374389535, %rdx, %rdx         ## imm = 0x51EB851F
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$37, %rdx
	addl	%esi, %edx
	movl	%edx, (%r14)
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	movslq	(%rax,%rcx,4), %rax
	imulq	$1374389535, %rax, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	addl	%edx, %ecx
	imull	$100, %ecx, %ecx
	subl	%ecx, %eax
	imull	$10000, %eax, %eax              ## imm = 0x2710
LBB0_17:
	movl	%eax, (%r15)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_28
LBB0_19:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_mlx90614_power_get
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	4(%r12), %edi
	movq	_MLX90614_EMISSIVITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_word_data
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_mlx90614_power_put
	testl	%ebx, %ebx
	js	LBB0_28
## %bb.20:
	movq	_MLX90614_CONST_RAW_EMISSIVITY_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_22
## %bb.21:
	movl	$1, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_3:
	movq	_MLX90614_TA@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_22:
	movl	$0, (%r14)
	movq	_MLX90614_CONST_EMISSIVITY_RESOLUTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%ebx, %eax
LBB0_23:
	movl	%eax, (%r15)
	movq	_IIO_VAL_INT_PLUS_NANO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_28
LBB0_6:
	movq	_MLX90614_TOBJ1@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %r15d
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_mlx90614_power_get
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movl	4(%r12), %edi
	movl	%r15d, %esi
	callq	_i2c_smbus_read_word_data
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mlx90614_power_put
	testl	%ebx, %ebx
	js	LBB0_28
## %bb.12:
	testl	$32768, %ebx                    ## imm = 0x8000
	jne	LBB0_13
## %bb.14:
	movl	%ebx, (%r14)
	jmp	LBB0_15
LBB0_10:
	movl	%eax, %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_27
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_2
	.long	L0_0_set_16
	.long	L0_0_set_24
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_MLX90614_TA,4,2                ## @MLX90614_TA
	.comm	_MLX90614_TOBJ1,4,2             ## @MLX90614_TOBJ1
	.comm	_MLX90614_TOBJ2,4,2             ## @MLX90614_TOBJ2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_MLX90614_CONST_OFFSET_DEC,4,2  ## @MLX90614_CONST_OFFSET_DEC
	.comm	_MLX90614_CONST_OFFSET_REM,4,2  ## @MLX90614_CONST_OFFSET_REM
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_MLX90614_CONST_SCALE,4,2       ## @MLX90614_CONST_SCALE
	.comm	_MLX90614_EMISSIVITY,4,2        ## @MLX90614_EMISSIVITY
	.comm	_MLX90614_CONST_RAW_EMISSIVITY_MAX,4,2 ## @MLX90614_CONST_RAW_EMISSIVITY_MAX
	.comm	_MLX90614_CONST_EMISSIVITY_RESOLUTION,4,2 ## @MLX90614_CONST_EMISSIVITY_RESOLUTION
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ## @IIO_VAL_INT_PLUS_NANO
	.comm	_MLX90614_CONFIG,4,2            ## @MLX90614_CONFIG
	.comm	_mlx90614_iir_values,8,3        ## @mlx90614_iir_values
	.comm	_MLX90614_CONFIG_IIR_MASK,4,2   ## @MLX90614_CONFIG_IIR_MASK
	.no_dead_strip	_mlx90614_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx90614_read_raw
_mlx90614_read_raw:                     ; @mlx90614_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	x20, x3
	mov	x19, x2
	mov	x22, x1
	bl	_iio_priv
	sub	x8, x23, #130
	cmp	x8, #4
	b.hi	LBB0_9
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _MLX90614_CONST_SCALE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLX90614_CONST_SCALE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_3:
Lloh5:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	b	LBB0_27
LBB0_4:
	ldr	w8, [x22, #4]
	cmp	w8, #129
	b.eq	LBB0_18
; %bb.5:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.6:
	ldr	w8, [x22]
	cbz	w8, LBB0_21
; %bb.7:
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, _MLX90614_TOBJ2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX90614_TOBJ2@GOTPAGEOFF]
	b	LBB0_22
LBB0_9:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_27
LBB0_11:
Lloh12:
	adrp	x8, _MLX90614_CONST_OFFSET_DEC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX90614_CONST_OFFSET_DEC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _MLX90614_CONST_OFFSET_REM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MLX90614_CONST_OFFSET_REM@GOTPAGEOFF]
	str	w8, [x19]
Lloh17:
	ldr	w8, [x9]
	b	LBB0_14
LBB0_12:
	mov	x0, x21
	mov	w1, #0
	bl	_mlx90614_power_get
	mov	x0, x21
	bl	_mutex_lock
	ldr	w0, [x21, #4]
Lloh18:
	adrp	x8, _MLX90614_CONFIG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MLX90614_CONFIG@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_word_data
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x21
	bl	_mlx90614_power_put
	tbnz	w22, #31, LBB0_27
; %bb.13:
Lloh21:
	adrp	x8, _mlx90614_iir_values@GOTPAGE
Lloh22:
	ldr	x8, [x8, _mlx90614_iir_values@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _MLX90614_CONFIG_IIR_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MLX90614_CONFIG_IIR_MASK@GOTPAGEOFF]
	ldr	w10, [x9]
	mov	w11, w22
	and	x10, x10, x11
	ldrsw	x10, [x8, x10, lsl #2]
	mov	w12, #34079
	movk	w12, #20971, lsl #16
	mul	x10, x10, x12
	lsr	x13, x10, #63
	asr	x10, x10, #37
	add	w10, w10, w13
	str	w10, [x19]
	ldr	w9, [x9]
	and	x9, x9, x11
	ldrsw	x8, [x8, x9, lsl #2]
	mul	x9, x8, x12
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	mov	w10, #100
	msub	w8, w9, w10, w8
	mov	w9, #10000
	mul	w8, w8, w9
LBB0_14:
	str	w8, [x20]
Lloh26:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh28:
	ldr	w22, [x8]
	b	LBB0_27
LBB0_15:
	mov	x0, x21
	mov	w1, #0
	bl	_mlx90614_power_get
	mov	x0, x21
	bl	_mutex_lock
	ldr	w0, [x21, #4]
Lloh29:
	adrp	x8, _MLX90614_EMISSIVITY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MLX90614_EMISSIVITY@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_word_data
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x21
	bl	_mlx90614_power_put
	tbnz	w22, #31, LBB0_27
; %bb.16:
Lloh32:
	adrp	x8, _MLX90614_CONST_RAW_EMISSIVITY_MAX@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MLX90614_CONST_RAW_EMISSIVITY_MAX@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_19
; %bb.17:
	mov	w8, #0
	mov	w9, #1
	str	w9, [x19]
	b	LBB0_20
LBB0_18:
Lloh35:
	adrp	x8, _MLX90614_TA@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MLX90614_TA@GOTPAGEOFF]
	b	LBB0_22
LBB0_19:
	str	wzr, [x19]
Lloh37:
	adrp	x8, _MLX90614_CONST_EMISSIVITY_RESOLUTION@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MLX90614_CONST_EMISSIVITY_RESOLUTION@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	mul	w8, w8, w22
LBB0_20:
	str	w8, [x20]
Lloh40:
	adrp	x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGEOFF]
Lloh42:
	ldr	w22, [x8]
	b	LBB0_27
LBB0_21:
Lloh43:
	adrp	x8, _MLX90614_TOBJ1@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MLX90614_TOBJ1@GOTPAGEOFF]
LBB0_22:
	ldr	w20, [x8]
	mov	x0, x21
	mov	w1, #1
	bl	_mlx90614_power_get
	tbnz	w0, #31, LBB0_26
; %bb.23:
	ldr	w0, [x21, #4]
	mov	x1, x20
	bl	_i2c_smbus_read_word_data
	mov	x22, x0
	mov	x0, x21
	bl	_mlx90614_power_put
	tbnz	w22, #31, LBB0_27
; %bb.24:
	tbnz	w22, #15, LBB0_28
; %bb.25:
	str	w22, [x19]
	b	LBB0_3
LBB0_26:
	mov	x22, x0
LBB0_27:
	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_28:
Lloh45:
	adrp	x8, _EIO@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- End function
	.comm	_MLX90614_TA,4,2                ; @MLX90614_TA
	.comm	_MLX90614_TOBJ1,4,2             ; @MLX90614_TOBJ1
	.comm	_MLX90614_TOBJ2,4,2             ; @MLX90614_TOBJ2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_MLX90614_CONST_OFFSET_DEC,4,2  ; @MLX90614_CONST_OFFSET_DEC
	.comm	_MLX90614_CONST_OFFSET_REM,4,2  ; @MLX90614_CONST_OFFSET_REM
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_MLX90614_CONST_SCALE,4,2       ; @MLX90614_CONST_SCALE
	.comm	_MLX90614_EMISSIVITY,4,2        ; @MLX90614_EMISSIVITY
	.comm	_MLX90614_CONST_RAW_EMISSIVITY_MAX,4,2 ; @MLX90614_CONST_RAW_EMISSIVITY_MAX
	.comm	_MLX90614_CONST_EMISSIVITY_RESOLUTION,4,2 ; @MLX90614_CONST_EMISSIVITY_RESOLUTION
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ; @IIO_VAL_INT_PLUS_NANO
	.comm	_MLX90614_CONFIG,4,2            ; @MLX90614_CONFIG
	.comm	_mlx90614_iir_values,8,3        ; @mlx90614_iir_values
	.comm	_MLX90614_CONFIG_IIR_MASK,4,2   ; @MLX90614_CONFIG_IIR_MASK
	.no_dead_strip	_mlx90614_read_raw
.subsections_via_symbols
