	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_lsm6dsx_alloc_iiodev
_st_lsm6dsx_alloc_iiodev:               ## @st_lsm6dsx_alloc_iiodev
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	8(%rdi), %edi
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	8(%r13), %eax
	movl	%eax, 28(%rbx)
	movq	_st_lsm6dsx_available_scan_masks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	(%r13), %rax
	movq	16(%rax), %rax
	movl	%r15d, %r14d
	movl	4(%rax,%r14,8), %ecx
	movl	%ecx, 20(%rbx)
	movl	(%rax,%r14,8), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movl	%r15d, (%rax)
	movq	%r13, 24(%rax)
	movq	(%r13), %rax
	movq	8(%rax), %rcx
	movq	(%rcx,%r14,8), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r12)
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movl	$1, 4(%r12)
	cmpl	$129, %r15d
	je	LBB0_5
## %bb.2:
	cmpl	$128, %r15d
	jne	LBB0_7
## %bb.3:
	leaq	L_.str.1(%rip), %rdx
	movq	_st_lsm6dsx_gyro_info@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str(%rip), %rdx
	movq	_st_lsm6dsx_acc_info@GOTPCREL(%rip), %rax
LBB0_6:
	movq	%rax, 8(%rbx)
	movl	8(%r12), %edi
	movl	$4, %esi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_scnprintf
	movl	8(%r12), %eax
	movl	%eax, (%rbx)
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_st_lsm6dsx_available_scan_masks,4,2 ## @st_lsm6dsx_available_scan_masks
	.comm	_st_lsm6dsx_acc_info,4,2        ## @st_lsm6dsx_acc_info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s_accel"

	.comm	_st_lsm6dsx_gyro_info,4,2       ## @st_lsm6dsx_gyro_info
L_.str.1:                               ## @.str.1
	.asciz	"%s_gyro"

	.no_dead_strip	_st_lsm6dsx_alloc_iiodev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_lsm6dsx_alloc_iiodev
_st_lsm6dsx_alloc_iiodev:               ; @st_lsm6dsx_alloc_iiodev
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	ldr	w0, [x0, #8]
	mov	w1, #32
	bl	_devm_iio_device_alloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	ldr	w8, [x23, #8]
Lloh3:
	adrp	x9, _st_lsm6dsx_available_scan_masks@GOTPAGE
Lloh4:
	ldr	x9, [x9, _st_lsm6dsx_available_scan_masks@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	mov	w9, w21
	lsl	x24, x9, #3
	ldr	d0, [x8, x24]
	str	d0, [x19, #16]
	mov	x0, x19
	bl	_iio_priv
	mov	x22, x0
	str	x23, [x0, #24]
	ldr	x8, [x23]
	ldp	x8, x9, [x8]
	ldr	x9, [x9, x24]
	ldr	w9, [x9]
	ldr	x8, [x8, x24]
	ldr	w8, [x8]
	stp	w8, w9, [x0, #12]
	mov	w8, #1
	stp	w21, w8, [x0]
	cmp	w21, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w21, #128
	b.ne	LBB0_6
; %bb.3:
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh8:
	adrp	x8, _st_lsm6dsx_gyro_info@GOTPAGE
Lloh9:
	ldr	x8, [x8, _st_lsm6dsx_gyro_info@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
Lloh12:
	adrp	x8, _st_lsm6dsx_acc_info@GOTPAGE
Lloh13:
	ldr	x8, [x8, _st_lsm6dsx_acc_info@GOTPAGEOFF]
LBB0_5:
	str	x8, [x19, #8]
	ldr	w0, [x22, #8]
	mov	w1, #4
	mov	x3, x20
	bl	_scnprintf
	ldr	w8, [x22, #8]
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
	mov	x19, #0
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_st_lsm6dsx_available_scan_masks,4,2 ; @st_lsm6dsx_available_scan_masks
	.comm	_st_lsm6dsx_acc_info,4,2        ; @st_lsm6dsx_acc_info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s_accel"

	.comm	_st_lsm6dsx_gyro_info,4,2       ; @st_lsm6dsx_gyro_info
l_.str.1:                               ; @.str.1
	.asciz	"%s_gyro"

	.no_dead_strip	_st_lsm6dsx_alloc_iiodev
.subsections_via_symbols
