	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_sensors_init_sensor         ## -- Begin function st_sensors_init_sensor
	.p2align	4, 0x90
_st_sensors_init_sensor:                ## @st_sensors_init_sensor
	.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	%rsi, %rbx
	movq	%rdi, %r15
	callq	_iio_priv
	movq	%rax, %r14
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_st_sensors_of_probe
	testq	%rax, %rax
	cmoveq	%rbx, %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_st_sensors_set_drdy_int_pin
	testl	%eax, %eax
	js	LBB0_15
LBB0_2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_st_sensors_set_enable
	testl	%eax, %eax
	js	LBB0_15
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_st_sensors_set_dataready_irq
	testl	%eax, %eax
	js	LBB0_15
## %bb.4:
	movq	32(%r14), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_st_sensors_set_fullscale
	testl	%eax, %eax
	jns	LBB0_7
	jmp	LBB0_15
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_7:
	movl	24(%r14), %esi
	movq	%r15, %rdi
	callq	_st_sensors_set_odr
	testl	%eax, %eax
	js	LBB0_15
## %bb.8:
	movq	8(%r14), %rax
	movq	56(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.9:
	movq	48(%rax), %rdx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_st_sensors_write_data_with_mask
	testl	%eax, %eax
	js	LBB0_15
## %bb.10:
	movq	8(%r14), %rax
LBB0_11:
	movq	40(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:
	movq	32(%rax), %rdx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_st_sensors_write_data_with_mask
	testl	%eax, %eax
	js	LBB0_15
LBB0_13:
	cmpq	$0, 16(%r14)
	je	LBB0_16
## %bb.14:
	movl	(%r14), %edx
	xorl	%eax, %eax
	cmpl	$1, %edx
	sete	%al
	movq	8(%r14), %rcx
	shlq	$4, %rax
	movq	(%rax,%rcx), %r14
	movq	8(%rax,%rcx), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	_st_sensors_write_data_with_mask
	testl	%eax, %eax
	js	LBB0_15
LBB0_16:
	movq	_ST_SENSORS_ENABLE_ALL_AXIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_st_sensors_set_axis_enable     ## TAILCALL
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Full-scale not possible\n"

L_.str.1:                               ## @.str.1
	.asciz	"set interrupt line to open drain mode on pin %d\n"

	.comm	_ST_SENSORS_ENABLE_ALL_AXIS,4,2 ## @ST_SENSORS_ENABLE_ALL_AXIS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_sensors_init_sensor         ; -- Begin function st_sensors_init_sensor
	.p2align	2
_st_sensors_init_sensor:                ; @st_sensors_init_sensor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	ldr	w0, [x19]
	mov	x1, x21
	bl	_st_sensors_of_probe
	cmp	x0, #0
	csel	x1, x21, x0, eq
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_st_sensors_set_drdy_int_pin
	tbnz	w0, #31, LBB0_16
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	bl	_st_sensors_set_enable
	tbnz	w0, #31, LBB0_16
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_st_sensors_set_dataready_irq
	tbnz	w0, #31, LBB0_16
; %bb.4:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_st_sensors_set_fullscale
	tbz	w0, #31, LBB0_7
	b	LBB0_16
LBB0_6:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_7:
	ldr	w1, [x20, #24]
	mov	x0, x19
	bl	_st_sensors_set_odr
	tbnz	w0, #31, LBB0_16
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	x1, [x8, #56]
	cbz	x1, LBB0_11
; %bb.9:
	ldr	x2, [x8, #48]
	mov	x0, x19
	mov	w3, #1
	bl	_st_sensors_write_data_with_mask
	tbnz	w0, #31, LBB0_16
; %bb.10:
	ldr	x8, [x20, #8]
LBB0_11:
	ldr	x1, [x8, #40]
	cbz	x1, LBB0_13
; %bb.12:
	ldr	x2, [x8, #32]
	mov	x0, x19
	mov	w3, #1
	bl	_st_sensors_write_data_with_mask
	tbnz	w0, #31, LBB0_16
LBB0_13:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	w8, [x20]
	cmp	w8, #1
	cset	w9, eq
	ldr	x10, [x20, #8]
	mov	w11, #8
	mov	w12, #24
	csel	x11, x12, x11, eq
	lsl	x9, x9, #4
	ldr	x20, [x10, x9]
	ldr	x21, [x10, x11]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	w3, #1
	bl	_st_sensors_write_data_with_mask
	tbnz	w0, #31, LBB0_16
LBB0_15:
Lloh4:
	adrp	x8, _ST_SENSORS_ENABLE_ALL_AXIS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ST_SENSORS_ENABLE_ALL_AXIS@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	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
	add	sp, sp, #64
	b	_st_sensors_set_axis_enable
LBB0_16:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Full-scale not possible\n"

l_.str.1:                               ; @.str.1
	.asciz	"set interrupt line to open drain mode on pin %d\n"

	.comm	_ST_SENSORS_ENABLE_ALL_AXIS,4,2 ; @ST_SENSORS_ENABLE_ALL_AXIS
.subsections_via_symbols
