	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bma220_trigger_handler
_bma220_trigger_handler:                ## @bma220_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %r12
	movq	%r12, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_BMA220_REG_ACCEL_X@GOTPCREL(%rip), %rax
	movq	_BMA220_READ_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	(%rbx), %r15
	movl	%ecx, (%r15)
	movl	12(%rbx), %r13d
	movq	_bma220_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	leaq	-1(%rax), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	$1, %edx
	movl	%r13d, %ecx
	callq	_spi_write_then_read
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	12(%rbx), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_iio_push_to_buffers_with_timestamp
LBB0_2:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	(%r12), %edi
	callq	_iio_trigger_notify_done
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BMA220_REG_ACCEL_X,4,2         ## @BMA220_REG_ACCEL_X
	.comm	_BMA220_READ_MASK,4,2           ## @BMA220_READ_MASK
	.comm	_bma220_channels,4,2            ## @bma220_channels
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_bma220_trigger_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bma220_trigger_handler
_bma220_trigger_handler:                ; @bma220_trigger_handler
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	ldr	x19, [x1, #8]
	mov	x0, x19
	bl	_iio_priv
	mov	x22, x0
	ldr	x23, [x0, #16]
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x8, _BMA220_REG_ACCEL_X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMA220_REG_ACCEL_X@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BMA220_READ_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BMA220_READ_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x24, [x22]
	str	w8, [x24]
	ldr	w25, [x22, #12]
Lloh6:
	adrp	x8, _bma220_channels@GOTPAGE
Lloh7:
	ldr	x8, [x8, _bma220_channels@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_ARRAY_SIZE
	sub	x4, x0, #1
	mov	x0, x23
	mov	x1, x24
	mov	w2, #1
	mov	x3, x25
	bl	_spi_write_then_read
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w1, [x22, #12]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_iio_push_to_buffers_with_timestamp
LBB0_2:
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w0, [x19]
	bl	_iio_trigger_notify_done
Lloh9:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BMA220_REG_ACCEL_X,4,2         ; @BMA220_REG_ACCEL_X
	.comm	_BMA220_READ_MASK,4,2           ; @BMA220_READ_MASK
	.comm	_bma220_channels,4,2            ; @bma220_channels
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_bma220_trigger_handler
.subsections_via_symbols
