	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_lsm6dsx_get_drdy_reg
_st_lsm6dsx_get_drdy_reg:               ## @st_lsm6dsx_get_drdy_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-20(%rbp), %rsi
	callq	_st_lsm6dsx_of_get_drdy_pin
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movl	-20(%rbp), %eax
	cmpl	$2, %eax
	je	LBB0_9
LBB0_5:
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.6:
	movq	8(%rbx), %rax
	movl	4(%rax), %eax
	jmp	LBB0_10
LBB0_2:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_7:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_8:
	movl	$1, %eax
LBB0_4:
	movl	%eax, -20(%rbp)
	cmpl	$2, %eax
	jne	LBB0_5
LBB0_9:
	movq	8(%rbx), %rax
	movl	(%rax), %eax
LBB0_10:
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported data ready pin\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_st_lsm6dsx_get_drdy_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_lsm6dsx_get_drdy_reg
_st_lsm6dsx_get_drdy_reg:               ; @st_lsm6dsx_get_drdy_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #12
	bl	_st_lsm6dsx_of_get_drdy_pin
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #2
	b.eq	LBB0_9
LBB0_2:
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.3:
	mov	w0, #0
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #4]
	b	LBB0_10
LBB0_4:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w8, [x8]
	b	LBB0_8
LBB0_6:
	ldr	x0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_7:
	mov	w8, #1
LBB0_8:
	str	w8, [sp, #12]
	cmp	w8, #2
	b.ne	LBB0_2
LBB0_9:
	mov	w0, #0
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
LBB0_10:
	str	w8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported data ready pin\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_st_lsm6dsx_get_drdy_reg
.subsections_via_symbols
