	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx90614_iir_search
_mlx90614_iir_search:                   ## @mlx90614_iir_search
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_mlx90614_iir_values@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	cmpl	%r15d, (%rdi,%rbx,4)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_1
LBB0_3:
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jne	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movq	_MLX90614_CONFIG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_word_data
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	_MLX90614_CONFIG_FIR_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movq	_MLX90614_CONST_FIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_MLX90614_CONFIG_FIR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %edx
	movq	_MLX90614_CONFIG_IIR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MLX90614_CONFIG_IIR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	notl	%eax
	andl	%edx, %eax
	orl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx90614_write_word            ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mlx90614_iir_values,8,3        ## @mlx90614_iir_values
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX90614_CONFIG,4,2            ## @MLX90614_CONFIG
	.comm	_MLX90614_CONFIG_FIR_MASK,4,2   ## @MLX90614_CONFIG_FIR_MASK
	.comm	_MLX90614_CONST_FIR,4,2         ## @MLX90614_CONST_FIR
	.comm	_MLX90614_CONFIG_FIR_SHIFT,4,2  ## @MLX90614_CONFIG_FIR_SHIFT
	.comm	_MLX90614_CONFIG_IIR_MASK,4,2   ## @MLX90614_CONFIG_IIR_MASK
	.comm	_MLX90614_CONFIG_IIR_SHIFT,4,2  ## @MLX90614_CONFIG_IIR_SHIFT
	.no_dead_strip	_mlx90614_iir_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx90614_iir_search
_mlx90614_iir_search:                   ; @mlx90614_iir_search
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _mlx90614_iir_values@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mlx90614_iir_values@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	ldr	w8, [x0, x21, lsl #2]
	cmp	w8, w20
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.ne	LBB0_7
; %bb.6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
Lloh5:
	adrp	x20, _MLX90614_CONFIG@GOTPAGE
Lloh6:
	ldr	x20, [x20, _MLX90614_CONFIG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_i2c_smbus_read_word_data
	tbnz	w0, #31, LBB0_9
; %bb.8:
Lloh7:
	adrp	x8, _MLX90614_CONFIG_FIR_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MLX90614_CONFIG_FIR_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh10:
	adrp	x9, _MLX90614_CONST_FIR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MLX90614_CONST_FIR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _MLX90614_CONFIG_FIR_SHIFT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MLX90614_CONFIG_FIR_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh16:
	adrp	x10, _MLX90614_CONFIG_IIR_MASK@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MLX90614_CONFIG_IIR_MASK@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh18:
	ldr	w9, [x10]
	bic	w8, w8, w9
Lloh19:
	adrp	x9, _MLX90614_CONFIG_IIR_SHIFT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MLX90614_CONFIG_IIR_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	lsl	w9, w21, w9
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	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
	b	_mlx90614_write_word
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_mlx90614_iir_values,8,3        ; @mlx90614_iir_values
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX90614_CONFIG,4,2            ; @MLX90614_CONFIG
	.comm	_MLX90614_CONFIG_FIR_MASK,4,2   ; @MLX90614_CONFIG_FIR_MASK
	.comm	_MLX90614_CONST_FIR,4,2         ; @MLX90614_CONST_FIR
	.comm	_MLX90614_CONFIG_FIR_SHIFT,4,2  ; @MLX90614_CONFIG_FIR_SHIFT
	.comm	_MLX90614_CONFIG_IIR_MASK,4,2   ; @MLX90614_CONFIG_IIR_MASK
	.comm	_MLX90614_CONFIG_IIR_SHIFT,4,2  ; @MLX90614_CONFIG_IIR_SHIFT
	.no_dead_strip	_mlx90614_iir_search
.subsections_via_symbols
