	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx90632_probe
_mlx90632_probe:                        ## @mlx90632_probe
	.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	%rsi, %r13
	movq	%rdi, %r14
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_mlx90632_regmap@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_4:
	movq	%r12, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, 24(%r15)
	movq	%rbx, 8(%r15)
	leaq	16(%r15), %rdi
	callq	_mutex_init
	movq	%r14, 24(%r12)
	movl	(%r13), %eax
	movl	%eax, 20(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_mlx90632_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r12)
	movq	_mlx90632_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%r12)
	callq	_ARRAY_SIZE
	movl	%eax, (%r12)
	movq	%r15, %rdi
	callq	_mlx90632_wakeup
	testl	%eax, %eax
	js	LBB0_5
## %bb.8:
	movq	8(%r15), %rdi
	movq	_MLX90632_EE_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movl	-44(%rbp), %edx
	movq	_MLX90632_ID_MEDICAL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_16
LBB0_5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_9:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	movl	%ebx, %edx
LBB0_7:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_MLX90632_ID_CONSUMER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_16
LBB0_14:
	movq	_MLX90632_DSP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	movq	_MLX90632_DSP_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_20
## %bb.15:
	leaq	L_.str.6(%rip), %rsi
LBB0_16:
	movq	%r14, %rdi
	callq	_dev_dbg
	movl	$1000, (%r15)                   ## imm = 0x3E8
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	movq	%r14, %rdi
	callq	_pm_runtime_set_active
	testl	%eax, %eax
	js	LBB0_17
## %bb.18:
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	_MLX90632_SLEEP_DELAY_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r14, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%r12, %rdi
	callq	_iio_device_register
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_17:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mlx90632_sleep
	jmp	LBB0_19
LBB0_20:
	leaq	L_.str.7(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mlx90632_regmap,4,2            ## @mlx90632_regmap
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate regmap: %d\n"

	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_mlx90632_info,4,2              ## @mlx90632_info
	.comm	_mlx90632_channels,4,2          ## @mlx90632_channels
L_.str.2:                               ## @.str.2
	.asciz	"Wakeup failed: %d\n"

	.comm	_MLX90632_EE_VERSION,4,2        ## @MLX90632_EE_VERSION
L_.str.3:                               ## @.str.3
	.asciz	"read of version failed: %d\n"

	.comm	_MLX90632_ID_MEDICAL,4,2        ## @MLX90632_ID_MEDICAL
L_.str.4:                               ## @.str.4
	.asciz	"Detected Medical EEPROM calibration %x\n"

	.comm	_MLX90632_ID_CONSUMER,4,2       ## @MLX90632_ID_CONSUMER
L_.str.5:                               ## @.str.5
	.asciz	"Detected Consumer EEPROM calibration %x\n"

	.comm	_MLX90632_DSP_MASK,4,2          ## @MLX90632_DSP_MASK
	.comm	_MLX90632_DSP_VERSION,4,2       ## @MLX90632_DSP_VERSION
L_.str.6:                               ## @.str.6
	.asciz	"Detected Unknown EEPROM calibration %x\n"

L_.str.7:                               ## @.str.7
	.asciz	"Wrong DSP version %x (expected %x)\n"

	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_MLX90632_SLEEP_DELAY_MS,4,2    ## @MLX90632_SLEEP_DELAY_MS
	.no_dead_strip	_mlx90632_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx90632_probe
_mlx90632_probe:                        ; @mlx90632_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x1
	mov	x19, x0
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, _mlx90632_regmap@GOTPAGE
Lloh1:
	ldr	x1, [x1, _mlx90632_regmap@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x22, x0
	str	x22, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_19
LBB0_3:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_19
LBB0_5:
	mov	x0, x20
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	str	x19, [x21, #24]
	str	x23, [x21, #8]
	add	x0, x21, #16
	bl	_mutex_init
	str	x19, [x20, #24]
	ldr	w8, [x22]
Lloh8:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _mlx90632_info@GOTPAGE
Lloh12:
	ldr	x10, [x10, _mlx90632_info@GOTPAGEOFF]
	stp	w9, w8, [x20, #16]
	str	x10, [x20, #8]
Lloh13:
	adrp	x8, _mlx90632_channels@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mlx90632_channels@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	str	w0, [x20, #4]
	bl	_ARRAY_SIZE
	str	w0, [x20]
	mov	x0, x21
	bl	_mlx90632_wakeup
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldr	x0, [x21, #8]
Lloh16:
	adrp	x8, _MLX90632_EE_VERSION@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MLX90632_EE_VERSION@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x2, sp, #28
	bl	_regmap_read
	tbnz	w0, #31, LBB0_10
; %bb.7:
	ldr	w2, [sp, #28]
Lloh19:
	adrp	x8, _MLX90632_ID_MEDICAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MLX90632_ID_MEDICAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_12
; %bb.8:
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_9:
	mov	x22, x0
	str	x22, [sp]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	x22, x0
	str	x22, [sp]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_19
LBB0_12:
Lloh28:
	adrp	x8, _MLX90632_ID_CONSUMER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MLX90632_ID_CONSUMER@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_14
; %bb.13:
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_14:
Lloh33:
	adrp	x8, _MLX90632_DSP_MASK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MLX90632_DSP_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	and	w9, w8, w2
Lloh36:
	adrp	x8, _MLX90632_DSP_VERSION@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MLX90632_DSP_VERSION@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_20
; %bb.15:
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_16:
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_dbg
	mov	w8, #1000
	str	w8, [x21]
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x19
	bl	_pm_runtime_set_active
	tbnz	w0, #31, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_pm_runtime_enable
Lloh41:
	adrp	x8, _MLX90632_SLEEP_DELAY_MS@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MLX90632_SLEEP_DELAY_MS@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x19
	bl	_pm_runtime_use_autosuspend
	mov	x0, x20
	bl	_iio_device_register
	mov	x22, x0
	b	LBB0_19
LBB0_18:
	mov	x22, x0
	mov	x0, x21
	bl	_mlx90632_sleep
LBB0_19:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_20:
	stp	x2, x8, [sp]
Lloh44:
	adrp	x1, l_.str.7@PAGE
Lloh45:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh46:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mlx90632_regmap,4,2            ; @mlx90632_regmap
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate regmap: %d\n"

	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_mlx90632_info,4,2              ; @mlx90632_info
	.comm	_mlx90632_channels,4,2          ; @mlx90632_channels
l_.str.2:                               ; @.str.2
	.asciz	"Wakeup failed: %d\n"

	.comm	_MLX90632_EE_VERSION,4,2        ; @MLX90632_EE_VERSION
l_.str.3:                               ; @.str.3
	.asciz	"read of version failed: %d\n"

	.comm	_MLX90632_ID_MEDICAL,4,2        ; @MLX90632_ID_MEDICAL
l_.str.4:                               ; @.str.4
	.asciz	"Detected Medical EEPROM calibration %x\n"

	.comm	_MLX90632_ID_CONSUMER,4,2       ; @MLX90632_ID_CONSUMER
l_.str.5:                               ; @.str.5
	.asciz	"Detected Consumer EEPROM calibration %x\n"

	.comm	_MLX90632_DSP_MASK,4,2          ; @MLX90632_DSP_MASK
	.comm	_MLX90632_DSP_VERSION,4,2       ; @MLX90632_DSP_VERSION
l_.str.6:                               ; @.str.6
	.asciz	"Detected Unknown EEPROM calibration %x\n"

l_.str.7:                               ; @.str.7
	.asciz	"Wrong DSP version %x (expected %x)\n"

	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_MLX90632_SLEEP_DELAY_MS,4,2    ; @MLX90632_SLEEP_DELAY_MS
	.no_dead_strip	_mlx90632_probe
.subsections_via_symbols
