	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx23885_risc_field
_cx23885_risc_field:                    ## @cx23885_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	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_NO_SYNC_LINE@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_RISC_RESYNC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r13)
	addq	$4, %r13
LBB0_2:
	cmpl	$0, 16(%rbp)
	je	LBB0_16
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 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	%r15, %rdi
	callq	_sg_dma_address
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r12), %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), %r12d                ## 4-byte Folded Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	-52(%rbp), %r12d                ## 4-byte Folded Reload
	incl	%ebx
	cmpl	16(%rbp), %ebx
	je	LBB0_16
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	testl	%r12d, %r12d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_sg_dma_len
	cmpl	%eax, %r12d
	jb	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r15, %rdi
	callq	_sg_dma_len
	addq	$4, %r15
	subl	%eax, %r12d
	jne	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r12d, %r12d
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_sg_dma_len
	subl	%r12d, %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_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	orl	%edi, %r14d
	movq	%r15, %rdi
	callq	_sg_dma_len
	subl	%r12d, %eax
	orl	%eax, %r14d
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r13)
	movq	%r15, %rdi
	callq	_sg_dma_address
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r12), %edi
	callq	_cpu_to_le32
	movl	%eax, 4(%r13)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movl	%eax, 8(%r13)
	movq	%r15, %rdi
	callq	_sg_dma_len
	addl	%ebx, %r12d
	subl	%eax, %r12d
	addq	$4, %r15
	leaq	12(%r13), %r14
	movq	%r15, %rdi
	callq	_sg_dma_len
	cmpl	%eax, %r12d
	jbe	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_RISC_WRITE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %ebx
	movq	%r15, %rdi
	callq	_sg_dma_len
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r14)
	movq	%r15, %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	%r15, %rdi
	callq	_sg_dma_len
	subl	%eax, %r12d
	addq	$4, %r15
	addq	$12, %r14
	movq	%r15, %rdi
	callq	_sg_dma_len
	cmpl	%eax, %r12d
	ja	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	-12(%r14), %r13
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_RISC_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	%r12d, %edi
	movq	_RISC_EOL@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, (%r14)
	movq	%r15, %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_15
LBB0_16:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_cx23885_risc_field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx23885_risc_field
_cx23885_risc_field:                    ; @cx23885_risc_field
	.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, x6
	mov	x28, x5
	mov	x21, x4
	mov	x24, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _NO_SYNC_LINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NO_SYNC_LINE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _RISC_RESYNC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RISC_RESYNC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w0, w8, w3
	bl	_cpu_to_le32
	str	w0, [x22], #4
LBB0_2:
	cbz	w19, LBB0_15
; %bb.3:
	mov	w25, #0
Lloh6:
	adrp	x26, _RISC_WRITE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _RISC_WRITE@GOTPAGEOFF]
Lloh8:
	adrp	x20, _RISC_SOL@GOTPAGE
Lloh9:
	ldr	x20, [x20, _RISC_SOL@GOTPAGEOFF]
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh10:
	adrp	x10, _RISC_EOL@GOTPAGE
Lloh11:
	ldr	x10, [x10, _RISC_EOL@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w8, w8, w21
	orr	w8, w8, w9
	orr	w0, w8, w10
	bl	_cpu_to_le32
	str	w0, [x22]
	mov	x0, x23
	bl	_sg_dma_address
	add	w0, w0, w24
	bl	_cpu_to_le32
	str	w0, [x22, #4]
	mov	w0, #0
	bl	_cpu_to_le32
	str	w0, [x22, #8]
	add	x22, x22, #12
	add	w27, w24, w21
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w27, w28
	add	w25, w25, #1
	cmp	w25, w19
	b.eq	LBB0_15
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	cbz	w24, LBB0_9
LBB0_7:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_sg_dma_len
	cmp	w24, w0
	b.lo	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x23
	bl	_sg_dma_len
	add	x23, x23, #4
	subs	w24, w24, w0
	b.ne	LBB0_7
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_sg_dma_len
	ldr	w8, [x26]
	ldr	w9, [x20]
	sub	w10, w0, w24
	cmp	w10, w21
	b.hs	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x19, x28
	orr	w27, w9, w8
	mov	x0, x23
	bl	_sg_dma_len
	sub	w8, w0, w24
	orr	w0, w27, w8
	bl	_cpu_to_le32
	str	w0, [x22]
	mov	x0, x23
	bl	_sg_dma_address
	add	w0, w0, w24
	bl	_cpu_to_le32
	str	w0, [x22, #4]
	mov	w0, #0
	bl	_cpu_to_le32
	str	w0, [x22, #8]
	mov	x0, x23
	bl	_sg_dma_len
	add	w8, w24, w21
	sub	w27, w8, w0
	add	x24, x23, #4
	add	x28, x22, #12
	mov	x0, x24
	bl	_sg_dma_len
	cmp	w27, w0
	b.ls	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #8
LBB0_12:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x22, x23, #4
	ldr	w24, [x26]
	mov	x0, x22
	bl	_sg_dma_len
	orr	w0, w0, w24
	bl	_cpu_to_le32
	str	w0, [x28]
	mov	x0, x22
	bl	_sg_dma_address
	bl	_cpu_to_le32
	str	w0, [x28, #4]
	mov	w0, #0
	bl	_cpu_to_le32
	str	w0, [x28, #8]
	mov	x0, x22
	bl	_sg_dma_len
	sub	w27, w27, w0
	add	x28, x28, #12
	mov	x0, x23
	bl	_sg_dma_len
	add	x23, x23, #4
	cmp	w27, w0
	b.hi	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	x22, x28, #12
	sub	x24, x23, #4
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x26]
Lloh13:
	adrp	x9, _RISC_EOL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RISC_EOL@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w27
	orr	w0, w8, w9
	bl	_cpu_to_le32
	str	w0, [x28]
	mov	x0, x24
	bl	_sg_dma_address
	bl	_cpu_to_le32
	str	w0, [x22, #16]
	mov	w0, #0
	bl	_cpu_to_le32
	str	w0, [x22, #20]
	add	x22, x22, #24
	mov	x23, x24
	mov	x28, x19
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_5
LBB0_15:
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.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	_cx23885_risc_field
.subsections_via_symbols
