	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpr0521_trigger_consumer_handler
_rpr0521_trigger_consumer_handler:      ## @rpr0521_trigger_consumer_handler
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	8(%rsi), %r14
	movq	%r14, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_iio_trigger_using_own
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, (%rbx)
	movq	$0, 16(%r15)
LBB0_3:
	cmpq	$0, (%rbx)
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_iio_get_time_ns
	movq	%rax, (%rbx)
LBB0_5:
	movl	8(%r15), %edi
	movq	_RPR0521_REG_PXS_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	movl	$7, %ecx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_8
LBB0_6:
	movq	(%rbx), %rdx
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdi
	callq	_iio_push_to_buffers_with_timestamp
LBB0_8:
	movq	$0, (%rbx)
	movl	(%r14), %edi
	callq	_iio_trigger_notify_done
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RPR0521_REG_PXS_DATA,4,2       ## @RPR0521_REG_PXS_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trigger consumer can't read from sensor.\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_rpr0521_trigger_consumer_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpr0521_trigger_consumer_handler
_rpr0521_trigger_consumer_handler:      ; @rpr0521_trigger_consumer_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x20, [x1, #8]
	mov	x0, x20
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x20
	bl	_iio_trigger_using_own
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_3
; %bb.2:
	str	x8, [x19]
	str	xzr, [x21, #16]
LBB0_3:
	ldr	x8, [x19]
	cbnz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_iio_get_time_ns
	str	x0, [x19]
LBB0_5:
	ldr	w0, [x21, #8]
Lloh3:
	adrp	x8, _RPR0521_REG_PXS_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RPR0521_REG_PXS_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	w3, #7
	bl	_regmap_bulk_read
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x0, [x21]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_7:
	ldr	x2, [x19]
	add	x1, sp, #8
	mov	x0, x20
	bl	_iio_push_to_buffers_with_timestamp
LBB0_8:
	str	xzr, [x19]
	ldr	w0, [x20]
	bl	_iio_trigger_notify_done
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RPR0521_REG_PXS_DATA,4,2       ; @RPR0521_REG_PXS_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trigger consumer can't read from sensor.\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_rpr0521_trigger_consumer_handler
.subsections_via_symbols
