	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_dma_prep_dma_memcpy
_bcm2835_dma_prep_dma_memcpy:           ## @bcm2835_dma_prep_dma_memcpy
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_to_bcm2835_dma_chan
	movq	%rax, %rdi
	movq	_BCM2835_DMA_D_INC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_BCM2835_DMA_S_INC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_BCM2835_DMA_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_BCM2835_DMA_WAIT_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_bcm2835_dma_max_frame_length
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	orl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	orl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_bcm2835_dma_frames_for_length
	movq	_DMA_MEM_TO_MEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	subq	$8, %rsp
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movq	%rax, %r9
	pushq	%r10
	pushq	$0
	pushq	%r14
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	callq	_bcm2835_dma_create_cb_chain
	addq	$48, %rsp
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vchan_tx_prep                  ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM2835_DMA_D_INC,4,2          ## @BCM2835_DMA_D_INC
	.comm	_BCM2835_DMA_S_INC,4,2          ## @BCM2835_DMA_S_INC
	.comm	_BCM2835_DMA_INT_EN,4,2         ## @BCM2835_DMA_INT_EN
	.comm	_BCM2835_DMA_WAIT_RESP,4,2      ## @BCM2835_DMA_WAIT_RESP
	.comm	_DMA_MEM_TO_MEM,4,2             ## @DMA_MEM_TO_MEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_bcm2835_dma_prep_dma_memcpy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_dma_prep_dma_memcpy
_bcm2835_dma_prep_dma_memcpy:           ; @bcm2835_dma_prep_dma_memcpy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x23, x3
	mov	x22, x2
	mov	x21, x1
	mov	x24, x0
	bl	_to_bcm2835_dma_chan
	mov	x20, x0
Lloh0:
	adrp	x8, _BCM2835_DMA_D_INC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCM2835_DMA_D_INC@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
Lloh3:
	adrp	x8, _BCM2835_DMA_S_INC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BCM2835_DMA_S_INC@GOTPAGEOFF]
Lloh5:
	ldr	w27, [x8]
Lloh6:
	adrp	x8, _BCM2835_DMA_INT_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BCM2835_DMA_INT_EN@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
Lloh9:
	adrp	x8, _BCM2835_DMA_WAIT_RESP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BCM2835_DMA_WAIT_RESP@GOTPAGEOFF]
Lloh11:
	ldr	w28, [x8]
	bl	_bcm2835_dma_max_frame_length
	cbz	w21, LBB0_5
; %bb.1:
	cbz	w22, LBB0_5
; %bb.2:
	cbz	x23, LBB0_5
; %bb.3:
	mov	x1, x0
	orr	w25, w28, w25
	orr	w26, w27, w26
	mov	x0, x23
	bl	_bcm2835_dma_frames_for_length
	mov	x5, x0
Lloh12:
	adrp	x8, _DMA_MEM_TO_MEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMA_MEM_TO_MEM@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
	str	x23, [sp]
	mov	x0, x24
	mov	w2, #0
	mov	x3, x26
	mov	x4, x25
	mov	x6, x22
	mov	x7, x21
	bl	_bcm2835_dma_create_cb_chain
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_vchan_tx_prep
LBB0_5:
	mov	x0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM2835_DMA_D_INC,4,2          ; @BCM2835_DMA_D_INC
	.comm	_BCM2835_DMA_S_INC,4,2          ; @BCM2835_DMA_S_INC
	.comm	_BCM2835_DMA_INT_EN,4,2         ; @BCM2835_DMA_INT_EN
	.comm	_BCM2835_DMA_WAIT_RESP,4,2      ; @BCM2835_DMA_WAIT_RESP
	.comm	_DMA_MEM_TO_MEM,4,2             ; @DMA_MEM_TO_MEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_bcm2835_dma_prep_dma_memcpy
.subsections_via_symbols
