	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_lsm6dsx_probe               ## -- Begin function st_lsm6dsx_probe
	.p2align	4, 0x90
_st_lsm6dsx_probe:                      ## @st_lsm6dsx_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	$0, -48(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	leaq	56(%r14), %rdi
	callq	_mutex_init
	leaq	52(%r14), %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	addq	$48, %rdi
	callq	_mutex_init
	movq	_ST_LSM6DSX_BUFF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_devm_kzalloc
	movq	%rax, 40(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%r13, 16(%r14)
	movl	%r12d, (%r14)
	movq	%r15, 32(%r14)
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_st_lsm6dsx_check_whoami
	testl	%eax, %eax
	js	LBB0_20
## %bb.4:
	movq	_ST_LSM6DSX_ID_EXT0@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_st_lsm6dsx_alloc_iiodev
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	je	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_st_lsm6dsx_init_device
	testl	%eax, %eax
	js	LBB0_20
## %bb.9:
	movq	24(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_st_lsm6dsx_shub_probe
	testl	%eax, %eax
	js	LBB0_20
LBB0_11:
	cmpl	$0, (%r14)
	jle	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_st_lsm6dsx_fifo_setup
	testl	%eax, %eax
	js	LBB0_20
LBB0_13:
	movq	_ST_LSM6DSX_ID_MAX@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.15:
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	movslq	%ecx, %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %rbx
	jge	LBB0_20
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	testl	%esi, %esi
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	16(%r14), %rdi
	callq	_devm_iio_device_register
	testl	%eax, %eax
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	(%r15), %ecx
	jmp	LBB0_19
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ST_LSM6DSX_BUFF_SIZE,4,2       ## @ST_LSM6DSX_BUFF_SIZE
	.comm	_ST_LSM6DSX_ID_EXT0,4,2         ## @ST_LSM6DSX_ID_EXT0
	.comm	_ST_LSM6DSX_ID_MAX,4,2          ## @ST_LSM6DSX_ID_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_lsm6dsx_probe               ; -- Begin function st_lsm6dsx_probe
	.p2align	2
_st_lsm6dsx_probe:                      ; @st_lsm6dsx_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_18
; %bb.1:
	mov	x19, x0
	mov	x0, x23
	mov	x1, x19
	bl	_dev_set_drvdata
	add	x0, x19, #56
	bl	_mutex_init
	add	x0, x19, #52
	bl	_mutex_init
	add	x0, x19, #48
	bl	_mutex_init
Lloh2:
	adrp	x8, _ST_LSM6DSX_BUFF_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ST_LSM6DSX_BUFF_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x23
	bl	_devm_kzalloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_18
; %bb.2:
	str	x23, [x19, #16]
	str	w22, [x19]
	str	x21, [x19, #32]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_st_lsm6dsx_check_whoami
	tbnz	w0, #31, LBB0_19
; %bb.3:
Lloh5:
	adrp	x21, _ST_LSM6DSX_ID_EXT0@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ST_LSM6DSX_ID_EXT0@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_st_lsm6dsx_alloc_iiodev
	ldr	x8, [x19, #8]
	str	w0, [x8, x20, lsl #2]
	cbz	w0, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_5
LBB0_7:
	mov	x0, x19
	bl	_st_lsm6dsx_init_device
	tbnz	w0, #31, LBB0_19
; %bb.8:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_st_lsm6dsx_shub_probe
	tbnz	w0, #31, LBB0_19
LBB0_10:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_st_lsm6dsx_fifo_setup
	tbnz	w0, #31, LBB0_19
LBB0_12:
Lloh7:
	adrp	x20, _ST_LSM6DSX_ID_MAX@GOTPAGE
Lloh8:
	ldr	x20, [x20, _ST_LSM6DSX_ID_MAX@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.13:
	mov	x21, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	w0, #0
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_19
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	w1, [x9, x21, lsl #2]
	cbz	w1, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x0, [x19, #16]
	bl	_devm_iio_device_register
	cbnz	w0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x20]
	b	LBB0_14
LBB0_18:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_20:
	mov	w0, #0
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ST_LSM6DSX_BUFF_SIZE,4,2       ; @ST_LSM6DSX_BUFF_SIZE
	.comm	_ST_LSM6DSX_ID_EXT0,4,2         ; @ST_LSM6DSX_ID_EXT0
	.comm	_ST_LSM6DSX_ID_MAX,4,2          ; @ST_LSM6DSX_ID_MAX
.subsections_via_symbols
