	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adxl372_buffer_postenable
_adxl372_buffer_postenable:             ## @adxl372_buffer_postenable
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_iio_priv
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_iio_triggered_buffer_postenable
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_ADXL372_INT1_MAP_FIFO_FULL_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_adxl372_set_interrupts
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	(%r15), %rax
	movl	(%rax), %r13d
	movq	_adxl372_axis_lookup_table@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	cmpl	(%rdi,%rbx,8), %r13d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_8:
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jne	LBB0_10
## %bb.9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_14
LBB0_1:
	movl	%eax, %r13d
	jmp	LBB0_15
LBB0_3:
	movl	%eax, %r13d
	jmp	LBB0_14
LBB0_10:
	movq	(%r12), %rax
	movl	%ebx, %ecx
	movl	4(%rax,%rcx,8), %eax
	movl	%eax, 12(%r14)
	movq	(%r15), %rdi
	movl	8(%r15), %esi
	callq	_bitmap_weight
	movl	%eax, %ecx
	movl	%eax, (%r14)
	movl	4(%r14), %edx
	imull	%eax, %edx
	movq	_ADXL372_FIFO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	jle	LBB0_12
## %bb.11:
	cltd
	idivl	%ecx
	movl	%eax, 4(%r14)
LBB0_12:
	movq	_ADXL372_FIFO_STREAMED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_adxl372_configure_fifo
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jns	LBB0_15
## %bb.13:
	movl	%eax, %r12d
	movq	_ADXL372_FIFO_BYPASSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_adxl372_set_interrupts
	movl	%r12d, %r13d
LBB0_14:
	movq	%r15, %rdi
	callq	_iio_triggered_buffer_predisable
LBB0_15:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADXL372_INT1_MAP_FIFO_FULL_MSK,4,2 ## @ADXL372_INT1_MAP_FIFO_FULL_MSK
	.comm	_adxl372_axis_lookup_table,8,3  ## @adxl372_axis_lookup_table
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ADXL372_FIFO_SIZE,4,2          ## @ADXL372_FIFO_SIZE
	.comm	_ADXL372_FIFO_STREAMED,4,2      ## @ADXL372_FIFO_STREAMED
	.comm	_ADXL372_FIFO_BYPASSED,4,2      ## @ADXL372_FIFO_BYPASSED
	.no_dead_strip	_adxl372_buffer_postenable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adxl372_buffer_postenable
_adxl372_buffer_postenable:             ; @adxl372_buffer_postenable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x19
	bl	_iio_triggered_buffer_postenable
	tbnz	w0, #31, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _ADXL372_INT1_MAP_FIFO_FULL_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADXL372_INT1_MAP_FIFO_FULL_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_adxl372_set_interrupts
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	x8, [x19]
	ldr	w23, [x8]
Lloh3:
	adrp	x21, _adxl372_axis_lookup_table@GOTPAGE
Lloh4:
	ldr	x21, [x21, _adxl372_axis_lookup_table@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x24, #0
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	w8, [x0, x24]
	cmp	w23, w8
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	add	x24, x24, #8
	cmp	x22, w0, sxtw
	b.lt	LBB0_4
	b	LBB0_9
LBB0_6:
	mov	x21, x0
	b	LBB0_17
LBB0_7:
	mov	x21, x0
	b	LBB0_16
LBB0_8:
	mov	w22, #0
LBB0_9:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.ne	LBB0_11
; %bb.10:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_11:
	ldr	x8, [x21]
	add	x8, x8, w22, uxtw #3
	ldr	w8, [x8, #4]
	str	w8, [x20, #12]
	ldr	x0, [x19]
	ldr	w1, [x19, #8]
	bl	_bitmap_weight
	str	w0, [x20]
	ldr	w8, [x20, #4]
	mul	w9, w8, w0
Lloh8:
	adrp	x8, _ADXL372_FIFO_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ADXL372_FIFO_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w9, w8
	b.le	LBB0_13
; %bb.12:
	sdiv	w8, w8, w0
	str	w8, [x20, #4]
LBB0_13:
Lloh11:
	adrp	x8, _ADXL372_FIFO_STREAMED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ADXL372_FIFO_STREAMED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x20
	bl	_adxl372_configure_fifo
	tbnz	w0, #31, LBB0_15
; %bb.14:
	mov	w21, #0
	b	LBB0_17
LBB0_15:
	mov	x21, x0
Lloh14:
	adrp	x8, _ADXL372_FIFO_BYPASSED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ADXL372_FIFO_BYPASSED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_adxl372_set_interrupts
LBB0_16:
	mov	x0, x19
	bl	_iio_triggered_buffer_predisable
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ADXL372_INT1_MAP_FIFO_FULL_MSK,4,2 ; @ADXL372_INT1_MAP_FIFO_FULL_MSK
	.comm	_adxl372_axis_lookup_table,8,3  ; @adxl372_axis_lookup_table
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ADXL372_FIFO_SIZE,4,2          ; @ADXL372_FIFO_SIZE
	.comm	_ADXL372_FIFO_STREAMED,4,2      ; @ADXL372_FIFO_STREAMED
	.comm	_ADXL372_FIFO_BYPASSED,4,2      ; @ADXL372_FIFO_BYPASSED
	.no_dead_strip	_adxl372_buffer_postenable
.subsections_via_symbols
