	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx90614_write_raw
_mlx90614_write_raw:                    ## @mlx90614_write_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r15d
	movl	%edx, %r12d
	callq	_iio_priv
	movq	%rax, %r14
	cmpq	$128, %rbx
	je	LBB0_7
## %bb.1:
	cmpq	$129, %rbx
	jne	LBB0_10
## %bb.2:
	cmpl	$1, %r12d
	jg	LBB0_10
## %bb.3:
	movl	%r15d, %eax
	orl	%r12d, %eax
	js	LBB0_10
## %bb.4:
	cmpl	$1, %r12d
	jne	LBB0_6
## %bb.5:
	testl	%r15d, %r15d
	jne	LBB0_10
LBB0_6:
	movq	_MLX90614_CONST_RAW_EMISSIVITY_MAX@GOTPCREL(%rip), %rax
	imull	(%rax), %r12d
	movq	_MLX90614_CONST_EMISSIVITY_RESOLUTION@GOTPCREL(%rip), %rcx
	movl	%r15d, %eax
	cltd
	idivl	(%rcx)
	addl	%eax, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mlx90614_power_get
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	4(%r14), %edi
	movq	_MLX90614_EMISSIVITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_mlx90614_write_word
	jmp	LBB0_9
LBB0_7:
	movl	%r15d, %eax
	orl	%r12d, %eax
	js	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mlx90614_power_get
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	4(%r14), %edi
	imull	$100, %r12d, %eax
	movslq	%r15d, %rcx
	imulq	$1759218605, %rcx, %rsi         ## imm = 0x68DB8BAD
	movq	%rsi, %rcx
	shrq	$63, %rcx
	sarq	$44, %rsi
	addl	%ecx, %esi
	addl	%eax, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_mlx90614_iir_search
LBB0_9:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_mlx90614_power_put
	movl	%ebx, %eax
	jmp	LBB0_11
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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	_MLX90614_EMISSIVITY,4,2        ## @MLX90614_EMISSIVITY
	.no_dead_strip	_mlx90614_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx90614_write_raw
_mlx90614_write_raw:                    ; @mlx90614_write_raw
	.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	x22, x4
	mov	x21, x3
	mov	x20, x2
	bl	_iio_priv
	mov	x19, x0
	cmp	x22, #128
	b.eq	LBB0_7
; %bb.1:
	cmp	x22, #129
	b.ne	LBB0_10
; %bb.2:
	cmp	w20, #1
	b.gt	LBB0_10
; %bb.3:
	orr	w8, w21, w20
	tbnz	w8, #31, LBB0_10
; %bb.4:
	cmp	w20, #1
	b.ne	LBB0_6
; %bb.5:
	cbnz	w21, LBB0_10
LBB0_6:
Lloh0:
	adrp	x8, _MLX90614_CONST_RAW_EMISSIVITY_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX90614_CONST_RAW_EMISSIVITY_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MLX90614_CONST_EMISSIVITY_RESOLUTION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX90614_CONST_EMISSIVITY_RESOLUTION@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sdiv	w9, w21, w9
	madd	w20, w8, w20, w9
	mov	x0, x19
	mov	w1, #0
	bl	_mlx90614_power_get
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _MLX90614_EMISSIVITY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX90614_EMISSIVITY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_mlx90614_write_word
	b	LBB0_9
LBB0_7:
	orr	w8, w21, w20
	tbnz	w8, #31, LBB0_10
; %bb.8:
	mov	x0, x19
	mov	w1, #0
	bl	_mlx90614_power_get
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x19, #4]
	mov	w8, #100
	mov	w9, #35757
	movk	w9, #26843, lsl #16
	smull	x9, w21, w9
	lsr	x10, x9, #63
	asr	x9, x9, #44
	add	w9, w9, w10
	madd	w1, w20, w8, w9
	bl	_mlx90614_iir_search
LBB0_9:
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	bl	_mlx90614_power_put
	mov	x0, x20
	b	LBB0_11
LBB0_10:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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	_MLX90614_EMISSIVITY,4,2        ; @MLX90614_EMISSIVITY
	.no_dead_strip	_mlx90614_write_raw
.subsections_via_symbols
