	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_adc_dma_request
_stm32_adc_dma_request:                 ## @stm32_adc_dma_request
	.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	%rdi, %rbx
	callq	_iio_priv
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dma_request_slave_channel
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_STM32_DMA_BUFFER_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdx
	addq	$8, %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_alloc_coherent
	movl	%eax, 12(%r12)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	-56(%rbp), %rbx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	32(%r12), %rax
	movq	16(%r12), %rcx
	movq	24(%r12), %rdx
	addq	(%rax), %rdx
	movq	(%rcx), %rax
	addq	(%rax), %rdx
	movq	%rdx, -48(%rbp)
	movq	_DMA_SLAVE_BUSWIDTH_2_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_dmaengine_slave_config
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r15d
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	movl	12(%r12), %edx
	movl	8(%r12), %ecx
	callq	_dma_free_coherent
	movl	%r15d, %r14d
	jmp	LBB0_6
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movq	(%r12), %rdi
	callq	_dma_release_channel
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx"

	.comm	_STM32_DMA_BUFFER_SIZE,4,2      ## @STM32_DMA_BUFFER_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_SLAVE_BUSWIDTH_2_BYTES,4,2 ## @DMA_SLAVE_BUSWIDTH_2_BYTES
	.no_dead_strip	_stm32_adc_dma_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_adc_dma_request
_stm32_adc_dma_request:                 ; @stm32_adc_dma_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	bl	_iio_priv
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dma_request_slave_channel
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0]
Lloh2:
	adrp	x21, _STM32_DMA_BUFFER_SIZE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _STM32_DMA_BUFFER_SIZE@GOTPAGEOFF]
	ldr	w0, [x8]
	ldr	w1, [x21]
	add	x2, x19, #8
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	bl	_dma_alloc_coherent
	str	w0, [x19, #12]
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldp	x9, x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x10, [x19, #16]
	ldr	x10, [x10]
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x8, x8, x10
	str	x8, [sp, #8]
Lloh7:
	adrp	x8, _DMA_SLAVE_BUSWIDTH_2_BYTES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMA_SLAVE_BUSWIDTH_2_BYTES@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [sp]
	ldr	x0, [x19]
	mov	x1, sp
	bl	_dmaengine_slave_config
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	w1, [x21]
	ldp	w3, w2, [x19, #8]
	bl	_dma_free_coherent
	b	LBB0_6
LBB0_4:
	mov	w20, #0
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	ldr	x0, [x19]
	bl	_dma_release_channel
LBB0_7:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx"

	.comm	_STM32_DMA_BUFFER_SIZE,4,2      ; @STM32_DMA_BUFFER_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_SLAVE_BUSWIDTH_2_BYTES,4,2 ; @DMA_SLAVE_BUSWIDTH_2_BYTES
	.no_dead_strip	_stm32_adc_dma_request
.subsections_via_symbols
