	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adis_trigger_handler
_adis_trigger_handler:                  ## @adis_trigger_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	8(%rsi), %r15
	movq	%r15, %rdi
	callq	_iio_device_get_drvdata
	cmpl	$0, 8(%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	16(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	leaq	12(%rbx), %rdi
	callq	_mutex_lock
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	_ADIS_REG_PAGE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ADIS_WRITE_REG
	movq	40(%rbx), %rsi
	movq	%rax, (%rsi)
	movq	$0, 8(%rsi)
	movq	24(%rbx), %rdi
	movl	$2, %edx
	callq	_spi_write
LBB0_5:
	movq	24(%rbx), %rdi
	leaq	32(%rbx), %rsi
	callq	_spi_sync
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	24(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_7:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	addq	$12, %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	8(%rbx), %esi
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_iio_push_to_buffers_with_timestamp
	movl	(%r15), %edi
	callq	_iio_trigger_notify_done
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ADIS_REG_PAGE_ID,4,2           ## @ADIS_REG_PAGE_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read data: %d"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adis_trigger_handler
_adis_trigger_handler:                  ; @adis_trigger_handler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	ldr	x19, [x1, #8]
	mov	x0, x19
	bl	_iio_device_get_drvdata
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
	add	x0, x21, #12
	bl	_mutex_lock
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _ADIS_REG_PAGE_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADIS_REG_PAGE_ID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ADIS_WRITE_REG
	ldr	x1, [x21, #40]
	stp	x0, xzr, [x1]
	ldr	x0, [x21, #24]
	mov	w2, #2
	bl	_spi_write
LBB0_4:
	ldr	x0, [x21, #24]
	add	x1, x21, #32
	bl	_spi_sync
	cbz	w0, LBB0_6
; %bb.5:
	mov	x2, x0
	ldr	x0, [x21, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_6:
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x21
	str	xzr, [x0], #12
	bl	_mutex_unlock
LBB0_8:
	ldr	w1, [x21, #8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_iio_push_to_buffers_with_timestamp
	ldr	w0, [x19]
	bl	_iio_trigger_notify_done
Lloh5:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_9:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ADIS_REG_PAGE_ID,4,2           ; @ADIS_REG_PAGE_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read data: %d"

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