	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx25821_risc_field
_cx25821_risc_field:                    ## @cx25821_risc_field
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	cmpl	$0, 24(%rbp)
	je	LBB0_2
## %bb.1:
	movq	_RISC_JUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, (%r13)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movl	%eax, 4(%r13)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movl	%eax, 8(%r13)
	addq	$12, %r13
LBB0_2:
	movq	_NO_SYNC_LINE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_RISC_RESYNC@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r13)
	addq	$4, %r13
LBB0_4:
	cmpl	$0, 16(%rbp)
	je	LBB0_18
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	orl	%ebx, %edi
	orl	%r14d, %edi
	movq	_RISC_EOL@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, (%r13)
	movq	%r12, %rdi
	callq	_sg_dma_address
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r15), %edi
	callq	_cpu_to_le32
	movl	%eax, 4(%r13)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movl	%eax, 8(%r13)
	addq	$12, %r13
	addl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	addl	-52(%rbp), %r15d                ## 4-byte Folded Reload
	incl	%ebx
	cmpl	16(%rbp), %ebx
	je	LBB0_18
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	testl	%r15d, %r15d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_sg_dma_len
	cmpl	%eax, %r15d
	jb	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%r12, %rdi
	callq	_sg_dma_len
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_sg_next
	movq	%rax, %r12
	subl	%ebx, %r15d
	jne	LBB0_7
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r15d, %r15d
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_sg_dma_len
	subl	%r15d, %eax
	movq	_RISC_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_RISC_SOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %eax
	jae	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	orl	%edi, %r14d
	movq	%r12, %rdi
	callq	_sg_dma_len
	subl	%r15d, %eax
	orl	%eax, %r14d
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r13)
	movq	%r12, %rdi
	callq	_sg_dma_address
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r15), %edi
	callq	_cpu_to_le32
	movl	%eax, 4(%r13)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movl	%eax, 8(%r13)
	movq	%r12, %rdi
	callq	_sg_dma_len
	addl	%ebx, %r15d
	subl	%eax, %r15d
	movq	%r12, %rdi
	callq	_sg_next
	movq	%rax, %r12
	leaq	12(%r13), %r14
	movq	%rax, %rdi
	callq	_sg_dma_len
	cmpl	%eax, %r15d
	jbe	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_RISC_WRITE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %ebx
	movq	%r12, %rdi
	callq	_sg_dma_len
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r14)
	movq	%r12, %rdi
	callq	_sg_dma_address
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, 4(%r14)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movl	%eax, 8(%r14)
	movq	%r12, %rdi
	callq	_sg_dma_len
	subl	%eax, %r15d
	movq	%r12, %rdi
	callq	_sg_next
	movq	%rax, %r12
	addq	$12, %r14
	movq	%rax, %rdi
	callq	_sg_dma_len
	cmpl	%eax, %r15d
	ja	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	-12(%r14), %r13
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_RISC_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	%r15d, %edi
	movq	_RISC_EOL@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, (%r14)
	movq	%r12, %rdi
	callq	_sg_dma_address
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, 16(%r13)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movl	%eax, 20(%r13)
	addq	$24, %r13
	jmp	LBB0_17
LBB0_18:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RISC_JUMP,4,2                  ## @RISC_JUMP
	.comm	_NO_SYNC_LINE,4,2               ## @NO_SYNC_LINE
	.comm	_RISC_RESYNC,4,2                ## @RISC_RESYNC
	.comm	_RISC_WRITE,4,2                 ## @RISC_WRITE
	.comm	_RISC_SOL,4,2                   ## @RISC_SOL
	.comm	_RISC_EOL,4,2                   ## @RISC_EOL
	.no_dead_strip	_cx25821_risc_field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx25821_risc_field
_cx25821_risc_field:                    ; @cx25821_risc_field
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x6
	mov	x20, x5
	mov	x21, x4
	mov	x25, x3
	mov	x24, x2
	mov	x22, x1
	mov	x23, x0
	cbz	w7, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _RISC_JUMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RISC_JUMP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [x23]
	mov	w0, #0
	bl	_cpu_to_le32
	str	w0, [x23, #4]
	mov	w0, #0
	bl	_cpu_to_le32
	str	w0, [x23, #8]
	add	x23, x23, #12
LBB0_2:
Lloh3:
	adrp	x8, _NO_SYNC_LINE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NO_SYNC_LINE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w25
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _RISC_RESYNC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RISC_RESYNC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w0, w8, w25
	bl	_cpu_to_le32
	str	w0, [x23], #4
LBB0_4:
	cbz	w19, LBB0_16
; %bb.5:
	mov	w25, #0
Lloh9:
	adrp	x26, _RISC_WRITE@GOTPAGE
Lloh10:
	ldr	x26, [x26, _RISC_WRITE@GOTPAGEOFF]
Lloh11:
	adrp	x28, _RISC_SOL@GOTPAGE
Lloh12:
	ldr	x28, [x28, _RISC_SOL@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
Lloh13:
	adrp	x10, _RISC_EOL@GOTPAGE
Lloh14:
	ldr	x10, [x10, _RISC_EOL@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w8, w8, w21
	orr	w8, w8, w9
	orr	w0, w8, w10
	bl	_cpu_to_le32
	str	w0, [x23]
	mov	x0, x22
	bl	_sg_dma_address
	add	w0, w0, w24
	bl	_cpu_to_le32
	str	w0, [x23, #4]
	mov	w0, #0
	bl	_cpu_to_le32
	str	w0, [x23, #8]
	add	x23, x23, #12
	add	w24, w24, w21
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w24, w24, w20
	add	w25, w25, #1
	cmp	w25, w19
	b.eq	LBB0_16
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	cbz	w24, LBB0_11
LBB0_9:                                 ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_sg_dma_len
	cmp	w24, w0
	b.lo	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x22
	bl	_sg_dma_len
	sub	w24, w24, w0
	mov	x0, x22
	bl	_sg_next
	mov	x22, x0
	cbnz	w24, LBB0_9
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	bl	_sg_dma_len
	ldr	w8, [x26]
	ldr	w9, [x28]
	sub	w10, w0, w24
	cmp	w10, w21
	b.hs	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	orr	w27, w9, w8
	mov	x0, x22
	bl	_sg_dma_len
	sub	w8, w0, w24
	orr	w0, w27, w8
	bl	_cpu_to_le32
	str	w0, [x23]
	mov	x0, x22
	bl	_sg_dma_address
	add	w0, w0, w24
	bl	_cpu_to_le32
	str	w0, [x23, #4]
	mov	w0, #0
	bl	_cpu_to_le32
	str	w0, [x23, #8]
	mov	x0, x22
	bl	_sg_dma_len
	add	w8, w24, w21
	sub	w24, w8, w0
	mov	x0, x22
	bl	_sg_next
	mov	x22, x0
	add	x27, x23, #12
	bl	_sg_dma_len
	cmp	w24, w0
	b.ls	LBB0_15
LBB0_13:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w23, [x26]
	mov	x0, x22
	bl	_sg_dma_len
	orr	w0, w0, w23
	bl	_cpu_to_le32
	str	w0, [x27]
	mov	x0, x22
	bl	_sg_dma_address
	bl	_cpu_to_le32
	str	w0, [x27, #4]
	mov	w0, #0
	bl	_cpu_to_le32
	str	w0, [x27, #8]
	mov	x0, x22
	bl	_sg_dma_len
	sub	w24, w24, w0
	mov	x0, x22
	bl	_sg_next
	mov	x22, x0
	add	x27, x27, #12
	bl	_sg_dma_len
	cmp	w24, w0
	b.hi	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	sub	x23, x27, #12
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x26]
Lloh16:
	adrp	x9, _RISC_EOL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RISC_EOL@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w24
	orr	w0, w8, w9
	bl	_cpu_to_le32
	str	w0, [x27]
	mov	x0, x22
	bl	_sg_dma_address
	bl	_cpu_to_le32
	str	w0, [x23, #16]
	mov	w0, #0
	bl	_cpu_to_le32
	str	w0, [x23, #20]
	add	x23, x23, #24
	b	LBB0_7
LBB0_16:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_RISC_JUMP,4,2                  ; @RISC_JUMP
	.comm	_NO_SYNC_LINE,4,2               ; @NO_SYNC_LINE
	.comm	_RISC_RESYNC,4,2                ; @RISC_RESYNC
	.comm	_RISC_WRITE,4,2                 ; @RISC_WRITE
	.comm	_RISC_SOL,4,2                   ; @RISC_SOL
	.comm	_RISC_EOL,4,2                   ; @RISC_EOL
	.no_dead_strip	_cx25821_risc_field
.subsections_via_symbols
