	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_lsm6dsx_init_device
_st_lsm6dsx_init_device:                ## @st_lsm6dsx_init_device
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %r15d
	movq	8(%rdi), %rax
	movl	(%rax), %r12d
	movq	_ST_LSM6DSX_REG_RESET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_FIELD_PREP
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	$50, %edi
	callq	_msleep
	movl	(%r14), %r15d
	movq	8(%r14), %rax
	movl	(%rax), %r12d
	movq	_ST_LSM6DSX_REG_BOOT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_FIELD_PREP
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movl	$50, %edi
	callq	_msleep
	movl	(%r14), %r15d
	movq	_ST_LSM6DSX_REG_BDU_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ST_LSM6DSX_REG_BDU_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_FIELD_PREP
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	leaq	-36(%rbp), %rsi
	movq	%r14, %rdi
	callq	_st_lsm6dsx_get_drdy_reg
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movl	(%r14), %r12d
	movl	-36(%rbp), %r15d
	movq	_ST_LSM6DSX_REG_FIFO_FTH_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_FIELD_PREP
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_st_lsm6dsx_init_shub
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_st_lsm6dsx_init_hw_timer
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_LSM6DSX_REG_RESET_MASK,4,2  ## @ST_LSM6DSX_REG_RESET_MASK
	.comm	_ST_LSM6DSX_REG_BOOT_MASK,4,2   ## @ST_LSM6DSX_REG_BOOT_MASK
	.comm	_ST_LSM6DSX_REG_BDU_ADDR,4,2    ## @ST_LSM6DSX_REG_BDU_ADDR
	.comm	_ST_LSM6DSX_REG_BDU_MASK,4,2    ## @ST_LSM6DSX_REG_BDU_MASK
	.comm	_ST_LSM6DSX_REG_FIFO_FTH_IRQ_MASK,4,2 ## @ST_LSM6DSX_REG_FIFO_FTH_IRQ_MASK
	.no_dead_strip	_st_lsm6dsx_init_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_lsm6dsx_init_device
_st_lsm6dsx_init_device:                ; @st_lsm6dsx_init_device
	.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	x19, x0
	ldr	w20, [x0]
	ldr	x8, [x0, #8]
	ldr	w21, [x8]
Lloh0:
	adrp	x8, _ST_LSM6DSX_REG_RESET_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST_LSM6DSX_REG_RESET_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x22
	mov	w1, #1
	bl	_FIELD_PREP
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	w0, #50
	bl	_msleep
	ldr	w20, [x19]
	ldr	x8, [x19, #8]
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _ST_LSM6DSX_REG_BOOT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ST_LSM6DSX_REG_BOOT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x0, x22
	mov	w1, #1
	bl	_FIELD_PREP
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_7
; %bb.2:
	mov	w0, #50
	bl	_msleep
	ldr	w20, [x19]
Lloh6:
	adrp	x8, _ST_LSM6DSX_REG_BDU_ADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ST_LSM6DSX_REG_BDU_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
Lloh9:
	adrp	x8, _ST_LSM6DSX_REG_BDU_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ST_LSM6DSX_REG_BDU_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	mov	x0, x22
	mov	w1, #1
	bl	_FIELD_PREP
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_7
; %bb.3:
	add	x1, sp, #12
	mov	x0, x19
	bl	_st_lsm6dsx_get_drdy_reg
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	w20, [x19]
	ldr	w21, [sp, #12]
Lloh12:
	adrp	x8, _ST_LSM6DSX_REG_FIFO_FTH_IRQ_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ST_LSM6DSX_REG_FIFO_FTH_IRQ_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	mov	x0, x22
	mov	w1, #1
	bl	_FIELD_PREP
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_st_lsm6dsx_init_shub
	tbnz	w0, #31, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_st_lsm6dsx_init_hw_timer
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_LSM6DSX_REG_RESET_MASK,4,2  ; @ST_LSM6DSX_REG_RESET_MASK
	.comm	_ST_LSM6DSX_REG_BOOT_MASK,4,2   ; @ST_LSM6DSX_REG_BOOT_MASK
	.comm	_ST_LSM6DSX_REG_BDU_ADDR,4,2    ; @ST_LSM6DSX_REG_BDU_ADDR
	.comm	_ST_LSM6DSX_REG_BDU_MASK,4,2    ; @ST_LSM6DSX_REG_BDU_MASK
	.comm	_ST_LSM6DSX_REG_FIFO_FTH_IRQ_MASK,4,2 ; @ST_LSM6DSX_REG_FIFO_FTH_IRQ_MASK
	.no_dead_strip	_st_lsm6dsx_init_device
.subsections_via_symbols
