	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_gyro_common_probe           ## -- Begin function st_gyro_common_probe
	.p2align	4, 0x90
_st_gyro_common_probe:                  ## @st_gyro_common_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_iio_priv
	movq	%rax, %r14
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_gyro_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	%r15, %rdi
	callq	_st_sensors_power_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.1:
	movq	%r15, %rdi
	callq	_st_sensors_verify_id
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movq	_ST_GYRO_NUMBER_DATA_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	8(%r14), %rax
	movl	16(%rax), %ecx
	movl	%ecx, 12(%r15)
	movq	_ST_SENSORS_NUMBER_ALL_CHANNELS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r15)
	movq	8(%rax), %rcx
	movq	%rcx, 24(%r14)
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_gyro_pdata@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_st_sensors_init_sensor
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movq	%r15, %rdi
	callq	_st_gyro_allocate_ring
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:
	cmpq	$0, (%r14)
	jle	LBB0_6
## %bb.5:
	movq	_ST_GYRO_TRIGGER_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_st_sensors_allocate_trigger
	testl	%eax, %eax
	js	LBB0_13
LBB0_6:
	movq	%r15, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movl	%eax, %ebx
	cmpq	$0, (%r14)
	jle	LBB0_14
## %bb.8:
	movq	%r15, %rdi
	callq	_st_sensors_deallocate_trigger
	jmp	LBB0_14
LBB0_9:
	movl	%eax, %ebx
LBB0_15:
	movq	%r15, %rdi
	callq	_st_sensors_power_disable
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	(%r15), %edx
	addq	$4, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_13:
	movl	%eax, %ebx
LBB0_14:
	movq	%r15, %rdi
	callq	_st_gyro_deallocate_ring
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_gyro_info,4,2                  ## @gyro_info
	.comm	_ST_GYRO_NUMBER_DATA_CHANNELS,4,2 ## @ST_GYRO_NUMBER_DATA_CHANNELS
	.comm	_ST_SENSORS_NUMBER_ALL_CHANNELS,4,2 ## @ST_SENSORS_NUMBER_ALL_CHANNELS
	.comm	_gyro_pdata,4,2                 ## @gyro_pdata
	.comm	_ST_GYRO_TRIGGER_OPS,4,2        ## @ST_GYRO_TRIGGER_OPS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"registered gyroscope %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_gyro_common_probe           ; -- Begin function st_gyro_common_probe
	.p2align	2
_st_gyro_common_probe:                  ; @st_gyro_common_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
	bl	_iio_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh3:
	adrp	x8, _gyro_info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gyro_info@GOTPAGEOFF]
	str	x8, [x19, #16]
	mov	x0, x19
	bl	_st_sensors_power_enable
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.1:
	mov	x0, x19
	bl	_st_sensors_verify_id
	tbnz	w0, #31, LBB0_9
; %bb.2:
Lloh5:
	adrp	x8, _ST_GYRO_NUMBER_DATA_CHANNELS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ST_GYRO_NUMBER_DATA_CHANNELS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	ldr	x8, [x20, #8]
	ldr	w9, [x8, #16]
Lloh8:
	adrp	x10, _ST_SENSORS_NUMBER_ALL_CHANNELS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ST_SENSORS_NUMBER_ALL_CHANNELS@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #8]
	ldp	x8, x9, [x8]
	str	x9, [x20, #24]
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh11:
	adrp	x1, _gyro_pdata@GOTPAGE
Lloh12:
	ldr	x1, [x1, _gyro_pdata@GOTPAGEOFF]
	mov	x0, x19
	bl	_st_sensors_init_sensor
	tbnz	w0, #31, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_st_gyro_allocate_ring
	tbnz	w0, #31, LBB0_9
; %bb.4:
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _ST_GYRO_TRIGGER_OPS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ST_GYRO_TRIGGER_OPS@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_st_sensors_allocate_trigger
	tbnz	w0, #31, LBB0_13
LBB0_6:
	mov	x0, x19
	bl	_iio_device_register
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.7:
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.8:
	mov	x0, x19
	bl	_st_sensors_deallocate_trigger
	b	LBB0_14
LBB0_9:
	mov	x21, x0
LBB0_10:
	mov	x0, x19
	bl	_st_sensors_power_disable
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:
	ldr	w2, [x19], #4
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_11
LBB0_13:
	mov	x21, x0
LBB0_14:
	mov	x0, x19
	bl	_st_gyro_deallocate_ring
	b	LBB0_10
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_gyro_info,4,2                  ; @gyro_info
	.comm	_ST_GYRO_NUMBER_DATA_CHANNELS,4,2 ; @ST_GYRO_NUMBER_DATA_CHANNELS
	.comm	_ST_SENSORS_NUMBER_ALL_CHANNELS,4,2 ; @ST_SENSORS_NUMBER_ALL_CHANNELS
	.comm	_gyro_pdata,4,2                 ; @gyro_pdata
	.comm	_ST_GYRO_TRIGGER_OPS,4,2        ; @ST_GYRO_TRIGGER_OPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"registered gyroscope %s\n"

.subsections_via_symbols
