	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_lsm6dsx_init_shub
_st_lsm6dsx_init_shub:                  ## @st_lsm6dsx_init_shub
	.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
	movq	8(%rdi), %rax
	movq	16(%rdi), %r15
	movq	(%rax), %r12
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_of_property_read_bool
	testq	%rax, %rax
	jne	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
	testq	%r12, %r12
	je	LBB0_6
## %bb.3:
	cmpq	$0, (%r12)
	je	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_st_lsm6dsx_set_page
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movl	16(%r15), %esi
	movl	$1, %edi
	callq	_ST_LSM6DSX_SHIFT_VAL
	movl	(%r14), %edi
	movq	24(%r15), %rsi
	movl	16(%r15), %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_st_lsm6dsx_set_page
	testl	%ebx, %ebx
	js	LBB0_11
LBB0_6:
	cmpq	$0, 8(%r15)
	je	LBB0_11
## %bb.7:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_st_lsm6dsx_set_page
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:
	movl	(%r15), %esi
	movl	$3, %edi
	callq	_ST_LSM6DSX_SHIFT_VAL
	movl	(%r14), %edi
	movq	8(%r15), %rsi
	movl	(%r15), %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_st_lsm6dsx_set_page
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"st,pullups"

	.no_dead_strip	_st_lsm6dsx_init_shub
.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_shub
_st_lsm6dsx_init_shub:                  ; @st_lsm6dsx_init_shub
	.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
	ldp	x8, x21, [x0, #8]
	ldp	x20, x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_property_read_bool
	cbnz	x0, LBB0_4
LBB0_2:
	cbz	x20, LBB0_6
; %bb.3:
	ldr	x8, [x20]
	cbz	x8, LBB0_11
LBB0_4:
	mov	x0, x19
	mov	w1, #1
	bl	_st_lsm6dsx_set_page
	tbnz	w0, #31, LBB0_9
; %bb.5:
	ldr	w1, [x21, #16]
	mov	w0, #1
	bl	_ST_LSM6DSX_SHIFT_VAL
	mov	x3, x0
	ldr	w0, [x19]
	ldr	x1, [x21, #24]
	ldr	w2, [x21, #16]
	bl	_regmap_update_bits
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_st_lsm6dsx_set_page
	tbnz	w20, #31, LBB0_10
LBB0_6:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_10
LBB0_7:
	mov	x0, x19
	mov	w1, #1
	bl	_st_lsm6dsx_set_page
	tbnz	w0, #31, LBB0_9
; %bb.8:
	ldr	w1, [x21]
	mov	w0, #3
	bl	_ST_LSM6DSX_SHIFT_VAL
	mov	x3, x0
	ldr	w0, [x19]
	ldr	x1, [x21, #8]
	ldr	w2, [x21]
	bl	_regmap_update_bits
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_st_lsm6dsx_set_page
	b	LBB0_10
LBB0_9:
	mov	x20, x0
LBB0_10:
	mov	x0, x20
	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_11:
	mov	w20, #0
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_7
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"st,pullups"

	.no_dead_strip	_st_lsm6dsx_init_shub
.subsections_via_symbols
