	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_dfsdm_write_raw
_stm32_dfsdm_write_raw:                 ## @stm32_dfsdm_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	%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	%r8, %r14
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_iio_priv
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	cmpq	$128, %r14
	je	LBB0_6
## %bb.1:
	cmpq	$129, %r14
	jne	LBB0_14
## %bb.2:
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.3:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_stm32_dfsdm_compute_all_osrs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	%r15d, (%r14)
	jmp	LBB0_5
LBB0_6:
	movl	%r15d, %ecx
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.7:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movq	8(%rax), %r14
	movq	(%r13), %r13
	movq	%r12, %rdi
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:
	movl	(%r14,%r13,4), %eax
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_9
## %bb.11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax), %edx
	shrl	%edx
	jmp	LBB0_13
LBB0_14:
	negl	%ebx
	jmp	LBB0_15
LBB0_9:
	cmpl	$132, %eax
	jne	LBB0_12
## %bb.10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax), %edx
	jmp	LBB0_13
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
LBB0_13:
	movl	%r15d, %esi
	movq	%r12, %rdi
	callq	_dfsdm_adc_set_samp_freq
	movl	%eax, %ebx
LBB0_5:
	movq	%r12, %rdi
	callq	_iio_device_release_direct_mode
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_stm32_dfsdm_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_dfsdm_write_raw
_stm32_dfsdm_write_raw:                 ; @stm32_dfsdm_write_raw
	.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	x23, x4
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	bl	_iio_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x23, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	x23, #129
	b.ne	LBB0_10
; %bb.2:
	mov	x0, x19
	bl	_iio_device_claim_direct_mode
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_stm32_dfsdm_compute_all_osrs
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.4:
	str	w20, [x21]
LBB0_5:
	mov	x0, x19
	bl	_iio_device_release_direct_mode
	b	LBB0_11
LBB0_6:
	cbz	w20, LBB0_10
; %bb.7:
	ldr	x8, [x21, #8]
	ldr	x23, [x8, #8]
	ldr	x24, [x22]
	mov	x0, x19
	bl	_iio_device_claim_direct_mode
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.8:
	ldr	w8, [x23, x24, lsl #2]
	sub	w9, w8, #130
	cmp	w9, #2
	b.hs	LBB0_13
; %bb.9:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	lsr	w2, w8, #1
	b	LBB0_16
LBB0_10:
	neg	w22, w8
LBB0_11:
	mov	x0, x22
LBB0_12:
	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
LBB0_13:
	cmp	w8, #132
	b.ne	LBB0_15
; %bb.14:
	ldr	x8, [x21, #8]
	ldr	w2, [x8]
	b	LBB0_16
LBB0_15:
	ldr	w2, [x21, #4]
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	bl	_dfsdm_adc_set_samp_freq
	mov	x20, x0
	mov	x0, x19
	bl	_iio_device_release_direct_mode
	mov	x0, x20
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_stm32_dfsdm_write_raw
.subsections_via_symbols
