	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpl3115_probe
_mpl3115_probe:                         ## @mpl3115_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_MPL3115_WHO_AM_I@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	movq	_MPL3115_DEVICE_ID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_7
## %bb.2:
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%r15, 8(%rax)
	leaq	4(%rax), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	movq	_mpl3115_info@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movl	(%r12), %eax
	movl	%eax, 24(%r14)
	movq	%r15, 16(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_mpl3115_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%r14)
	callq	_ARRAY_SIZE
	movl	%eax, (%r14)
	movq	_MPL3115_CTRL_REG1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_MPL3115_CTRL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte_data
	movl	$50, %edi
	callq	_msleep
	movq	_MPL3115_CTRL_OS_258MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%rbx)
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_12
## %bb.4:
	movq	_mpl3115_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	testl	%eax, %eax
	js	LBB0_12
## %bb.5:
	movq	%r14, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	jns	LBB0_10
## %bb.6:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_iio_triggered_buffer_cleanup
	movl	%r15d, %ebx
	jmp	LBB0_10
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_12:
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPL3115_WHO_AM_I,4,2           ## @MPL3115_WHO_AM_I
	.comm	_MPL3115_DEVICE_ID,4,2          ## @MPL3115_DEVICE_ID
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mpl3115_info,4,2               ## @mpl3115_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_mpl3115_channels,4,2           ## @mpl3115_channels
	.comm	_MPL3115_CTRL_REG1,4,2          ## @MPL3115_CTRL_REG1
	.comm	_MPL3115_CTRL_RESET,4,2         ## @MPL3115_CTRL_RESET
	.comm	_MPL3115_CTRL_OS_258MS,4,2      ## @MPL3115_CTRL_OS_258MS
	.comm	_mpl3115_trigger_handler,4,2    ## @mpl3115_trigger_handler
	.no_dead_strip	_mpl3115_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpl3115_probe
_mpl3115_probe:                         ; @mpl3115_probe
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MPL3115_WHO_AM_I@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPL3115_WHO_AM_I@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
; %bb.1:
Lloh3:
	adrp	x8, _MPL3115_DEVICE_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPL3115_DEVICE_ID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x20
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x19, x0
	bl	_iio_priv
	mov	x22, x0
	str	x20, [x0, #8]
	add	x0, x0, #4
	bl	_mutex_init
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
Lloh6:
	adrp	x8, _mpl3115_info@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mpl3115_info@GOTPAGEOFF]
	str	x8, [x19, #32]
	ldr	w8, [x21]
	str	w8, [x19, #24]
	str	x20, [x19, #16]
Lloh8:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _mpl3115_channels@GOTPAGE
Lloh12:
	ldr	x9, [x9, _mpl3115_channels@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x9]
	stp	w0, w8, [x19, #4]
	bl	_ARRAY_SIZE
	str	w0, [x19]
Lloh14:
	adrp	x21, _MPL3115_CTRL_REG1@GOTPAGE
Lloh15:
	ldr	x21, [x21, _MPL3115_CTRL_REG1@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh16:
	adrp	x8, _MPL3115_CTRL_RESET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MPL3115_CTRL_RESET@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_i2c_smbus_write_byte_data
	mov	w0, #50
	bl	_msleep
Lloh19:
	adrp	x8, _MPL3115_CTRL_OS_258MS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MPL3115_CTRL_OS_258MS@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	str	w2, [x22]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_10
; %bb.4:
Lloh22:
	adrp	x8, _mpl3115_trigger_handler@GOTPAGE
Lloh23:
	ldr	x8, [x8, _mpl3115_trigger_handler@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	tbnz	w0, #31, LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_11
; %bb.6:
	mov	w22, #0
	b	LBB0_12
LBB0_7:
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_10:
	mov	x22, x0
	b	LBB0_12
LBB0_11:
	mov	x22, x0
	mov	x0, x19
	bl	_iio_triggered_buffer_cleanup
LBB0_12:
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MPL3115_WHO_AM_I,4,2           ; @MPL3115_WHO_AM_I
	.comm	_MPL3115_DEVICE_ID,4,2          ; @MPL3115_DEVICE_ID
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mpl3115_info,4,2               ; @mpl3115_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_mpl3115_channels,4,2           ; @mpl3115_channels
	.comm	_MPL3115_CTRL_REG1,4,2          ; @MPL3115_CTRL_REG1
	.comm	_MPL3115_CTRL_RESET,4,2         ; @MPL3115_CTRL_RESET
	.comm	_MPL3115_CTRL_OS_258MS,4,2      ; @MPL3115_CTRL_OS_258MS
	.comm	_mpl3115_trigger_handler,4,2    ; @mpl3115_trigger_handler
	.no_dead_strip	_mpl3115_probe
.subsections_via_symbols
