	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lidar_probe
_lidar_probe:                           ## @lidar_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	%rdi, %r14
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movl	4(%r14), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_lidar_i2c_xfer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movl	$1, (%r15)
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_5:
	movl	4(%r14), %edi
	movq	_I2C_FUNC_SMBUS_WORD_DATA@GOTPCREL(%rip), %rax
	movq	_I2C_FUNC_SMBUS_BYTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	_lidar_smbus_xfer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
LBB0_7:
	movq	_lidar_info@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r12)
	movq	_LIDAR_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_lidar_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 20(%r12)
	callq	_ARRAY_SIZE
	movl	%eax, 16(%r12)
	movq	%r14, 8(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, 16(%r15)
	movq	%r12, 8(%r15)
	movq	_lidar_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	%r12, %rdi
	callq	_iio_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r14, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%r14, %rdi
	callq	_pm_runtime_set_active
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_10
LBB0_11:
	movq	%r12, %rdi
	callq	_iio_triggered_buffer_cleanup
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	_pm_runtime_idle
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.comm	_lidar_i2c_xfer,4,2             ## @lidar_i2c_xfer
	.comm	_I2C_FUNC_SMBUS_WORD_DATA,4,2   ## @I2C_FUNC_SMBUS_WORD_DATA
	.comm	_I2C_FUNC_SMBUS_BYTE,4,2        ## @I2C_FUNC_SMBUS_BYTE
	.comm	_lidar_smbus_xfer,4,2           ## @lidar_smbus_xfer
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_lidar_info,4,2                 ## @lidar_info
	.comm	_LIDAR_DRV_NAME,4,2             ## @LIDAR_DRV_NAME
	.comm	_lidar_channels,4,2             ## @lidar_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_lidar_trigger_handler,4,2      ## @lidar_trigger_handler
	.no_dead_strip	_lidar_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lidar_probe
_lidar_probe:                           ; @lidar_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	x19, x0
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	x0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _lidar_i2c_xfer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lidar_i2c_xfer@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #24]
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_5:
Lloh8:
	adrp	x8, _I2C_FUNC_SMBUS_WORD_DATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_WORD_DATA@GOTPAGEOFF]
	ldr	w0, [x19, #4]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _I2C_FUNC_SMBUS_BYTE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_BYTE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_i2c_check_functionality
	cbz	x0, LBB0_12
; %bb.6:
Lloh14:
	adrp	x8, _lidar_smbus_xfer@GOTPAGE
Lloh15:
	ldr	x8, [x8, _lidar_smbus_xfer@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x21, #24]
LBB0_7:
Lloh17:
	adrp	x8, _lidar_info@GOTPAGE
Lloh18:
	ldr	x8, [x8, _lidar_info@GOTPAGEOFF]
	str	x8, [x20, #32]
Lloh19:
	adrp	x8, _LIDAR_DRV_NAME@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LIDAR_DRV_NAME@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _lidar_channels@GOTPAGE
Lloh23:
	ldr	x9, [x9, _lidar_channels@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #20]
	bl	_ARRAY_SIZE
	str	w0, [x20, #16]
	str	x19, [x20, #8]
Lloh25:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	stp	x20, x19, [x21, #8]
Lloh28:
	adrp	x8, _lidar_trigger_handler@GOTPAGE
Lloh29:
	ldr	x8, [x8, _lidar_trigger_handler@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.8:
	mov	x0, x20
	bl	_iio_device_register
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	w1, #1000
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x19
	bl	_pm_runtime_use_autosuspend
	mov	x0, x19
	bl	_pm_runtime_set_active
	mov	x21, x0
	cbz	w0, LBB0_13
LBB0_10:
	mov	x0, x20
	bl	_iio_triggered_buffer_cleanup
LBB0_11:
	mov	x0, x21
	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
LBB0_12:
Lloh31:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_4
LBB0_13:
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_pm_runtime_idle
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.comm	_lidar_i2c_xfer,4,2             ; @lidar_i2c_xfer
	.comm	_I2C_FUNC_SMBUS_WORD_DATA,4,2   ; @I2C_FUNC_SMBUS_WORD_DATA
	.comm	_I2C_FUNC_SMBUS_BYTE,4,2        ; @I2C_FUNC_SMBUS_BYTE
	.comm	_lidar_smbus_xfer,4,2           ; @lidar_smbus_xfer
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_lidar_info,4,2                 ; @lidar_info
	.comm	_LIDAR_DRV_NAME,4,2             ; @LIDAR_DRV_NAME
	.comm	_lidar_channels,4,2             ; @lidar_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_lidar_trigger_handler,4,2      ; @lidar_trigger_handler
	.no_dead_strip	_lidar_probe
.subsections_via_symbols
