	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_accel_common_probe          ## -- Begin function st_accel_common_probe
	.p2align	4, 0x90
_st_accel_common_probe:                 ## @st_accel_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	%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, %rbx
	callq	_iio_priv
	movq	%rax, %r14
	movq	40(%rax), %rax
	movq	(%rax), %r13
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_accel_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_st_sensors_power_enable
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.1:
	movq	%rbx, %rdi
	callq	_st_sensors_verify_id
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_20
## %bb.2:
	movq	_ST_ACCEL_NUMBER_DATA_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	_ST_SENSORS_NUMBER_ALL_CHANNELS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	movl	%edx, (%rbx)
	shlq	$2, %rdx
	leaq	8(%rbx), %rdi
	movq	8(%r14), %rax
	movl	16(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_devm_kmemdup
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_apply_acpi_orientation
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_dev_warn
LBB0_5:
	movq	%r12, 16(%rbx)
	movq	8(%r14), %rax
	movq	8(%rax), %rcx
	movq	%rcx, 24(%r14)
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	testq	%r13, %r13
	jne	LBB0_7
## %bb.6:
	movq	_default_accel_pdata@GOTPCREL(%rip), %r13
LBB0_7:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_st_sensors_init_sensor
	testl	%eax, %eax
	js	LBB0_16
## %bb.8:
	movq	%rbx, %rdi
	callq	_st_accel_allocate_ring
	testl	%eax, %eax
	js	LBB0_16
## %bb.9:
	cmpq	$0, (%r14)
	jle	LBB0_11
## %bb.10:
	movq	_ST_ACCEL_TRIGGER_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_st_sensors_allocate_trigger
	testl	%eax, %eax
	js	LBB0_18
LBB0_11:
	movq	%rbx, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_17
## %bb.12:
	movl	%eax, %r15d
	cmpq	$0, (%r14)
	jle	LBB0_19
## %bb.13:
	movq	%rbx, %rdi
	callq	_st_sensors_deallocate_trigger
	jmp	LBB0_19
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_20
LBB0_16:
	movl	%eax, %r15d
	jmp	LBB0_20
LBB0_17:
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_info
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_18:
	movl	%eax, %r15d
LBB0_19:
	movq	%rbx, %rdi
	callq	_st_accel_deallocate_ring
LBB0_20:
	movq	%rbx, %rdi
	callq	_st_sensors_power_disable
LBB0_21:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_accel_info,4,2                 ## @accel_info
	.comm	_ST_ACCEL_NUMBER_DATA_CHANNELS,4,2 ## @ST_ACCEL_NUMBER_DATA_CHANNELS
	.comm	_ST_SENSORS_NUMBER_ALL_CHANNELS,4,2 ## @ST_SENSORS_NUMBER_ALL_CHANNELS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to apply ACPI orientation data: %d\n"

	.comm	_default_accel_pdata,4,2        ## @default_accel_pdata
	.comm	_ST_ACCEL_TRIGGER_OPS,4,2       ## @ST_ACCEL_TRIGGER_OPS
L_.str.1:                               ## @.str.1
	.asciz	"registered accelerometer %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_accel_common_probe          ; -- Begin function st_accel_common_probe
	.p2align	2
_st_accel_common_probe:                 ; @st_accel_common_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	ldr	x8, [x0, #40]
Lloh0:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
	ldr	x24, [x8]
Lloh2:
	ldr	w8, [x9]
	str	w8, [x19, #32]
Lloh3:
	adrp	x8, _accel_info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _accel_info@GOTPAGEOFF]
	str	x8, [x19, #24]
	mov	x0, x19
	bl	_st_sensors_power_enable
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.1:
	mov	x0, x19
	bl	_st_sensors_verify_id
	mov	x21, x0
	tbnz	w0, #31, LBB0_17
; %bb.2:
Lloh5:
	adrp	x8, _ST_ACCEL_NUMBER_DATA_CHANNELS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ST_ACCEL_NUMBER_DATA_CHANNELS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #32]
Lloh8:
	adrp	x8, _ST_SENSORS_NUMBER_ALL_CHANNELS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ST_SENSORS_NUMBER_ALL_CHANNELS@GOTPAGEOFF]
Lloh10:
	ldrsw	x8, [x8]
	mov	x22, x19
	str	w8, [x22], #8
	lsl	x2, x8, #2
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #16]
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_devm_kmemdup
	cbz	x0, LBB0_12
; %bb.3:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_apply_acpi_orientation
	cbz	x0, LBB0_5
; %bb.4:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_dev_warn
LBB0_5:
	str	x23, [x19, #16]
	ldr	x8, [x20, #8]
	ldp	x8, x9, [x8]
	str	x9, [x20, #24]
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh16:
	adrp	x8, _default_accel_pdata@GOTPAGE
Lloh17:
	ldr	x8, [x8, _default_accel_pdata@GOTPAGEOFF]
	cmp	x24, #0
	csel	x1, x8, x24, eq
	mov	x0, x19
	bl	_st_sensors_init_sensor
	tbnz	w0, #31, LBB0_13
; %bb.6:
	mov	x0, x19
	bl	_st_accel_allocate_ring
	tbnz	w0, #31, LBB0_13
; %bb.7:
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.8:
Lloh18:
	adrp	x8, _ST_ACCEL_TRIGGER_OPS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ST_ACCEL_TRIGGER_OPS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_st_sensors_allocate_trigger
	tbnz	w0, #31, LBB0_15
LBB0_9:
	mov	x0, x19
	bl	_iio_device_register
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.10:
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_16
; %bb.11:
	mov	x0, x19
	bl	_st_sensors_deallocate_trigger
	b	LBB0_16
LBB0_12:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_13:
	mov	x21, x0
	b	LBB0_17
LBB0_14:
	ldr	w2, [x19, #4]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_info
	b	LBB0_18
LBB0_15:
	mov	x21, x0
LBB0_16:
	mov	x0, x19
	bl	_st_accel_deallocate_ring
LBB0_17:
	mov	x0, x19
	bl	_st_sensors_power_disable
LBB0_18:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_accel_info,4,2                 ; @accel_info
	.comm	_ST_ACCEL_NUMBER_DATA_CHANNELS,4,2 ; @ST_ACCEL_NUMBER_DATA_CHANNELS
	.comm	_ST_SENSORS_NUMBER_ALL_CHANNELS,4,2 ; @ST_SENSORS_NUMBER_ALL_CHANNELS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to apply ACPI orientation data: %d\n"

	.comm	_default_accel_pdata,4,2        ; @default_accel_pdata
	.comm	_ST_ACCEL_TRIGGER_OPS,4,2       ; @ST_ACCEL_TRIGGER_OPS
l_.str.1:                               ; @.str.1
	.asciz	"registered accelerometer %s\n"

.subsections_via_symbols
