	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx90632_perform_measurement
_mlx90632_perform_measurement:          ## @mlx90632_perform_measurement
	.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	%rdi, %r13
	movl	8(%rdi), %edi
	movq	_MLX90632_REG_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MLX90632_STAT_DATA_RDY@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	$-100, %ebx
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %edi
	movl	(%r15), %esi
	movq	%r14, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax
	testl	%eax, (%r12)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	incl	%ebx
	jne	LBB0_2
## %bb.5:
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	movq	_MLX90632_STAT_CYCLE_POS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	shrl	$2, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX90632_REG_STATUS,4,2        ## @MLX90632_REG_STATUS
	.comm	_MLX90632_STAT_DATA_RDY,4,2     ## @MLX90632_STAT_DATA_RDY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data not ready"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_MLX90632_STAT_CYCLE_POS,4,2    ## @MLX90632_STAT_CYCLE_POS
	.no_dead_strip	_mlx90632_perform_measurement
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx90632_perform_measurement
_mlx90632_perform_measurement:          ; @mlx90632_perform_measurement
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x20, _MLX90632_REG_STATUS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MLX90632_REG_STATUS@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _MLX90632_STAT_DATA_RDY@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MLX90632_STAT_DATA_RDY@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w3, #0
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	w22, #-100
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	adds	w22, w22, #1
	b.lo	LBB0_2
; %bb.5:
	ldr	x0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh6:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x9, _MLX90632_STAT_CYCLE_POS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MLX90632_STAT_CYCLE_POS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
	lsr	w0, w8, #2
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX90632_REG_STATUS,4,2        ; @MLX90632_REG_STATUS
	.comm	_MLX90632_STAT_DATA_RDY,4,2     ; @MLX90632_STAT_DATA_RDY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data not ready"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_MLX90632_STAT_CYCLE_POS,4,2    ; @MLX90632_STAT_CYCLE_POS
	.no_dead_strip	_mlx90632_perform_measurement
.subsections_via_symbols
