	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adxl372_write_raw
_adxl372_write_raw:                     ## @adxl372_write_raw
	.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	%r8, %rbx
	movl	%edx, %r14d
	callq	_iio_priv
	movq	%rax, %r15
	cmpq	$129, %rbx
	je	LBB0_8
## %bb.1:
	cmpq	$128, %rbx
	jne	LBB0_9
## %bb.2:
	movq	_adxl372_samp_freq_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_adxl372_find_closest_match
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_adxl372_set_odr
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:
	movl	8(%r15), %esi
	movq	%r15, %rdi
	callq	_adxl372_set_activity_time_ms
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movl	4(%r15), %esi
	movq	%r15, %rdi
	callq	_adxl372_set_inactivity_time_ms
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	cmpl	%r14d, (%r15)
	jle	LBB0_10
## %bb.6:
	movq	%r15, %rdi
	movl	%r14d, %esi
	jmp	LBB0_7
LBB0_8:
	movq	_adxl372_bw_freq_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_adxl372_find_closest_match
	movq	%r15, %rdi
	movl	%eax, %esi
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_adxl372_set_bandwidth          ## TAILCALL
LBB0_9:
	movq	_EINVAL@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	_adxl372_samp_freq_tbl,4,2      ## @adxl372_samp_freq_tbl
	.comm	_adxl372_bw_freq_tbl,4,2        ## @adxl372_bw_freq_tbl
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_adxl372_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adxl372_write_raw
_adxl372_write_raw:                     ; @adxl372_write_raw
	.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	x21, x4
	mov	x20, x2
	bl	_iio_priv
	mov	x19, x0
	cmp	x21, #129
	b.eq	LBB0_7
; %bb.1:
	cmp	x21, #128
	b.ne	LBB0_9
; %bb.2:
Lloh0:
	adrp	x8, _adxl372_samp_freq_tbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _adxl372_samp_freq_tbl@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	bl	_adxl372_find_closest_match
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_adxl372_set_odr
	tbnz	w0, #31, LBB0_10
; %bb.3:
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_adxl372_set_activity_time_ms
	tbnz	w0, #31, LBB0_10
; %bb.4:
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_adxl372_set_inactivity_time_ms
	tbnz	w0, #31, LBB0_10
; %bb.5:
	ldr	w8, [x19]
	cmp	w8, w20
	b.le	LBB0_10
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _adxl372_bw_freq_tbl@GOTPAGE
Lloh4:
	ldr	x8, [x8, _adxl372_bw_freq_tbl@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	bl	_adxl372_find_closest_match
	mov	x1, x0
	mov	x0, x19
LBB0_8:
	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
	b	_adxl372_set_bandwidth
LBB0_9:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_adxl372_samp_freq_tbl,4,2      ; @adxl372_samp_freq_tbl
	.comm	_adxl372_bw_freq_tbl,4,2        ; @adxl372_bw_freq_tbl
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_adxl372_write_raw
.subsections_via_symbols
