	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpu3050_drdy_trigger_set_state
_mpu3050_drdy_trigger_set_state:        ## @mpu3050_drdy_trigger_set_state
	.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
	movl	%esi, %ebx
	callq	_iio_trigger_get_drvdata
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.10:
	movl	40(%r14), %edi
	callq	_pm_runtime_get_sync
	movl	$1, (%r14)
	movl	8(%r14), %edi
	movq	_MPU3050_FIFO_EN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_23
## %bb.11:
	movl	8(%r14), %edi
	movq	_MPU3050_USR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MPU3050_USR_CTRL_FIFO_EN@GOTPCREL(%rip), %rax
	movq	_MPU3050_USR_CTRL_FIFO_RST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	testl	%eax, %eax
	jne	LBB0_23
## %bb.12:
	movl	$0, 4(%r14)
	movq	_MPU3050_FIFO_EN_TEMP_OUT@GOTPCREL(%rip), %rax
	movq	_MPU3050_FIFO_EN_GYRO_XOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MPU3050_FIFO_EN_GYRO_YOUT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	8(%r14), %edi
	movq	_MPU3050_FIFO_EN_GYRO_ZOUT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%rbx), %esi
	movq	_MPU3050_FIFO_EN_FOOTER@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_23
## %bb.13:
	movq	%r14, %rdi
	callq	_mpu3050_start_sampling
	testl	%eax, %eax
	jne	LBB0_23
## %bb.14:
	movl	8(%r14), %edi
	movq	_MPU3050_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	40(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_16:
	movq	_MPU3050_INT_RAW_RDY_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, -20(%rbp)
	cmpq	$0, 32(%r14)
	je	LBB0_18
## %bb.17:
	movq	_MPU3050_INT_ACTL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -20(%rbp)
LBB0_18:
	cmpq	$0, 24(%r14)
	je	LBB0_20
## %bb.19:
	movq	_MPU3050_INT_LATCH_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -20(%rbp)
LBB0_20:
	cmpq	$0, 16(%r14)
	je	LBB0_22
## %bb.21:
	movq	_MPU3050_INT_OPEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -20(%rbp)
LBB0_22:
	movl	8(%r14), %edi
	movq	_MPU3050_INT_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_write
	jmp	LBB0_23
LBB0_1:
	movl	8(%r14), %edi
	movq	_MPU3050_INT_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	40(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_3:
	movl	8(%r14), %edi
	movq	_MPU3050_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	40(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_5:
	movl	8(%r14), %edi
	movq	_MPU3050_FIFO_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	40(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
LBB0_7:
	movl	8(%r14), %edi
	movq	_MPU3050_USR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MPU3050_USR_CTRL_FIFO_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	40(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
LBB0_9:
	movl	40(%r14), %edi
	callq	_pm_runtime_mark_last_busy
	movl	40(%r14), %edi
	callq	_pm_runtime_put_autosuspend
	movl	$0, (%r14)
	xorl	%eax, %eax
LBB0_23:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPU3050_INT_CFG,4,2            ## @MPU3050_INT_CFG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error disabling IRQ\n"

	.comm	_MPU3050_INT_STATUS,4,2         ## @MPU3050_INT_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"error clearing IRQ status\n"

	.comm	_MPU3050_FIFO_EN,4,2            ## @MPU3050_FIFO_EN
L_.str.2:                               ## @.str.2
	.asciz	"error disabling FIFO\n"

	.comm	_MPU3050_USR_CTRL,4,2           ## @MPU3050_USR_CTRL
	.comm	_MPU3050_USR_CTRL_FIFO_RST,4,2  ## @MPU3050_USR_CTRL_FIFO_RST
L_.str.3:                               ## @.str.3
	.asciz	"error resetting FIFO\n"

	.comm	_MPU3050_USR_CTRL_FIFO_EN,4,2   ## @MPU3050_USR_CTRL_FIFO_EN
	.comm	_MPU3050_FIFO_EN_TEMP_OUT,4,2   ## @MPU3050_FIFO_EN_TEMP_OUT
	.comm	_MPU3050_FIFO_EN_GYRO_XOUT,4,2  ## @MPU3050_FIFO_EN_GYRO_XOUT
	.comm	_MPU3050_FIFO_EN_GYRO_YOUT,4,2  ## @MPU3050_FIFO_EN_GYRO_YOUT
	.comm	_MPU3050_FIFO_EN_GYRO_ZOUT,4,2  ## @MPU3050_FIFO_EN_GYRO_ZOUT
	.comm	_MPU3050_FIFO_EN_FOOTER,4,2     ## @MPU3050_FIFO_EN_FOOTER
	.comm	_MPU3050_INT_RAW_RDY_EN,4,2     ## @MPU3050_INT_RAW_RDY_EN
	.comm	_MPU3050_INT_ACTL,4,2           ## @MPU3050_INT_ACTL
	.comm	_MPU3050_INT_LATCH_EN,4,2       ## @MPU3050_INT_LATCH_EN
	.comm	_MPU3050_INT_OPEN,4,2           ## @MPU3050_INT_OPEN
	.no_dead_strip	_mpu3050_drdy_trigger_set_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpu3050_drdy_trigger_set_state
_mpu3050_drdy_trigger_set_state:        ; @mpu3050_drdy_trigger_set_state
	.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	x20, x1
	bl	_iio_trigger_get_drvdata
	bl	_iio_priv
	mov	x19, x0
	cbz	w20, LBB0_14
; %bb.1:
	ldr	w0, [x19, #40]
	bl	_pm_runtime_get_sync
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x20, _MPU3050_FIFO_EN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MPU3050_FIFO_EN@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #0
	bl	_regmap_write
	cbnz	w0, LBB0_23
; %bb.2:
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x8, _MPU3050_USR_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MPU3050_USR_CTRL@GOTPAGEOFF]
Lloh4:
	adrp	x9, _MPU3050_USR_CTRL_FIFO_EN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MPU3050_USR_CTRL_FIFO_EN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _MPU3050_USR_CTRL_FIFO_RST@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MPU3050_USR_CTRL_FIFO_RST@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x3, x2
	bl	_regmap_update_bits
	cbnz	w0, LBB0_23
; %bb.3:
	str	wzr, [x19, #4]
	ldr	w0, [x19, #8]
Lloh11:
	adrp	x8, _MPU3050_FIFO_EN_TEMP_OUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MPU3050_FIFO_EN_TEMP_OUT@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _MPU3050_FIFO_EN_GYRO_XOUT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MPU3050_FIFO_EN_GYRO_XOUT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _MPU3050_FIFO_EN_GYRO_YOUT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MPU3050_FIFO_EN_GYRO_YOUT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _MPU3050_FIFO_EN_GYRO_ZOUT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MPU3050_FIFO_EN_GYRO_ZOUT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _MPU3050_FIFO_EN_FOOTER@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MPU3050_FIFO_EN_FOOTER@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w2, w8, w9
	bl	_regmap_write
	cbnz	w0, LBB0_23
; %bb.4:
	mov	x0, x19
	bl	_mpu3050_start_sampling
	cbnz	w0, LBB0_23
; %bb.5:
	ldr	w0, [x19, #8]
Lloh26:
	adrp	x8, _MPU3050_INT_STATUS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MPU3050_INT_STATUS@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w0, [x19, #40]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_7:
Lloh31:
	adrp	x8, _MPU3050_INT_RAW_RDY_EN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MPU3050_INT_RAW_RDY_EN@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	str	w2, [sp, #12]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.8:
Lloh34:
	adrp	x8, _MPU3050_INT_ACTL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MPU3050_INT_ACTL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	orr	w2, w8, w2
	str	w2, [sp, #12]
LBB0_9:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_11
; %bb.10:
Lloh37:
	adrp	x8, _MPU3050_INT_LATCH_EN@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MPU3050_INT_LATCH_EN@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	orr	w2, w2, w8
	str	w2, [sp, #12]
LBB0_11:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_13
; %bb.12:
Lloh40:
	adrp	x8, _MPU3050_INT_OPEN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MPU3050_INT_OPEN@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	orr	w2, w2, w8
	str	w2, [sp, #12]
LBB0_13:
	ldr	w0, [x19, #8]
Lloh43:
	adrp	x8, _MPU3050_INT_CFG@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MPU3050_INT_CFG@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	bl	_regmap_write
	b	LBB0_23
LBB0_14:
	ldr	w0, [x19, #8]
Lloh46:
	adrp	x8, _MPU3050_INT_CFG@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MPU3050_INT_CFG@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_regmap_write
	cbz	w0, LBB0_16
; %bb.15:
	ldr	w0, [x19, #40]
Lloh49:
	adrp	x1, l_.str@PAGE
Lloh50:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_16:
	ldr	w0, [x19, #8]
Lloh51:
	adrp	x8, _MPU3050_INT_STATUS@GOTPAGE
Lloh52:
	ldr	x8, [x8, _MPU3050_INT_STATUS@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_18
; %bb.17:
	ldr	w0, [x19, #40]
Lloh54:
	adrp	x1, l_.str.1@PAGE
Lloh55:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_18:
	ldr	w0, [x19, #8]
Lloh56:
	adrp	x8, _MPU3050_FIFO_EN@GOTPAGE
Lloh57:
	ldr	x8, [x8, _MPU3050_FIFO_EN@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_regmap_write
	cbz	w0, LBB0_20
; %bb.19:
	ldr	w0, [x19, #40]
Lloh59:
	adrp	x1, l_.str.2@PAGE
Lloh60:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
LBB0_20:
	ldr	w0, [x19, #8]
Lloh61:
	adrp	x8, _MPU3050_USR_CTRL@GOTPAGE
Lloh62:
	ldr	x8, [x8, _MPU3050_USR_CTRL@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
Lloh64:
	adrp	x8, _MPU3050_USR_CTRL_FIFO_RST@GOTPAGE
Lloh65:
	ldr	x8, [x8, _MPU3050_USR_CTRL_FIFO_RST@GOTPAGEOFF]
Lloh66:
	ldr	w2, [x8]
	bl	_regmap_write
	cbz	w0, LBB0_22
; %bb.21:
	ldr	w0, [x19, #40]
Lloh67:
	adrp	x1, l_.str.3@PAGE
Lloh68:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
LBB0_22:
	ldr	w0, [x19, #40]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19, #40]
	bl	_pm_runtime_put_autosuspend
	mov	w0, #0
	str	wzr, [x19]
LBB0_23:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_MPU3050_INT_CFG,4,2            ; @MPU3050_INT_CFG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error disabling IRQ\n"

	.comm	_MPU3050_INT_STATUS,4,2         ; @MPU3050_INT_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"error clearing IRQ status\n"

	.comm	_MPU3050_FIFO_EN,4,2            ; @MPU3050_FIFO_EN
l_.str.2:                               ; @.str.2
	.asciz	"error disabling FIFO\n"

	.comm	_MPU3050_USR_CTRL,4,2           ; @MPU3050_USR_CTRL
	.comm	_MPU3050_USR_CTRL_FIFO_RST,4,2  ; @MPU3050_USR_CTRL_FIFO_RST
l_.str.3:                               ; @.str.3
	.asciz	"error resetting FIFO\n"

	.comm	_MPU3050_USR_CTRL_FIFO_EN,4,2   ; @MPU3050_USR_CTRL_FIFO_EN
	.comm	_MPU3050_FIFO_EN_TEMP_OUT,4,2   ; @MPU3050_FIFO_EN_TEMP_OUT
	.comm	_MPU3050_FIFO_EN_GYRO_XOUT,4,2  ; @MPU3050_FIFO_EN_GYRO_XOUT
	.comm	_MPU3050_FIFO_EN_GYRO_YOUT,4,2  ; @MPU3050_FIFO_EN_GYRO_YOUT
	.comm	_MPU3050_FIFO_EN_GYRO_ZOUT,4,2  ; @MPU3050_FIFO_EN_GYRO_ZOUT
	.comm	_MPU3050_FIFO_EN_FOOTER,4,2     ; @MPU3050_FIFO_EN_FOOTER
	.comm	_MPU3050_INT_RAW_RDY_EN,4,2     ; @MPU3050_INT_RAW_RDY_EN
	.comm	_MPU3050_INT_ACTL,4,2           ; @MPU3050_INT_ACTL
	.comm	_MPU3050_INT_LATCH_EN,4,2       ; @MPU3050_INT_LATCH_EN
	.comm	_MPU3050_INT_OPEN,4,2           ; @MPU3050_INT_OPEN
	.no_dead_strip	_mpu3050_drdy_trigger_set_state
.subsections_via_symbols
