	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_lsm6dsx_shub_set_enable     ## -- Begin function st_lsm6dsx_shub_set_enable
	.p2align	4, 0x90
_st_lsm6dsx_shub_set_enable:            ## @st_lsm6dsx_shub_set_enable
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_st_lsm6dsx_shub_config_channels
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	8(%rbx), %r15
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_st_lsm6dsx_shub_set_odr
	testl	%eax, %eax
	jns	LBB0_5
	jmp	LBB0_7
LBB0_3:
	movq	32(%r15), %rsi
	movl	24(%r15), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_st_lsm6dsx_shub_write_with_mask
	testl	%eax, %eax
	js	LBB0_7
LBB0_5:
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	setne	%al
	movl	16(%r15,%rax,4), %ecx
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_st_lsm6dsx_shub_write_with_mask
	testl	%eax, %eax
	js	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_st_lsm6dsx_shub_master_enable  ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_lsm6dsx_shub_set_enable     ; -- Begin function st_lsm6dsx_shub_set_enable
	.p2align	2
_st_lsm6dsx_shub_set_enable:            ; @st_lsm6dsx_shub_set_enable
	.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, x1
	mov	x20, x0
	bl	_st_lsm6dsx_shub_config_channels
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	x21, [x20, #8]
	cbz	w19, LBB0_3
; %bb.2:
	ldr	w1, [x20]
	mov	x0, x20
	bl	_st_lsm6dsx_shub_set_odr
	tbz	w0, #31, LBB0_4
	b	LBB0_7
LBB0_3:
	ldr	x1, [x21, #32]
	ldr	w2, [x21, #24]
	mov	x0, x20
	mov	w3, #0
	bl	_st_lsm6dsx_shub_write_with_mask
	tbnz	w0, #31, LBB0_7
LBB0_4:
	ldr	x1, [x21, #8]
	cbz	x1, LBB0_6
; %bb.5:
	cmp	w19, #0
	mov	w8, #20
	mov	w9, #16
	csel	x8, x9, x8, eq
	ldr	w3, [x21, x8]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_st_lsm6dsx_shub_write_with_mask
	tbnz	w0, #31, LBB0_7
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	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
	b	_st_lsm6dsx_shub_master_enable
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
