	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_build_sges
_ocrdma_build_sges:                     ## @ocrdma_build_sges
	.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	%rsi, %r15
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	jle	LBB0_3
## %bb.1:
	movq	%rcx, %rbx
	movq	%rdi, %r12
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$12, %rbx
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	movl	%eax, 16(%r15,%r14)
	movl	-4(%rbx), %edi
	movl	%edi, 12(%r15,%r14)
	callq	_upper_32_bits
	movl	%eax, 8(%r15,%r14)
	movq	-12(%rbx), %rax
	movq	%rax, (%r15,%r14)
	addl	%eax, (%r12)
	addq	$16, %rbx
	addq	$24, %r14
	cmpq	%r14, %r13
	jne	LBB0_2
LBB0_3:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ocrdma_build_sges
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_build_sges
_ocrdma_build_sges:                     ; @ocrdma_build_sges
	.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	x20, x2
	mov	x19, x1
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, x0
	mov	w22, w20
	add	x23, x3, #8
	add	x24, x19, #12
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x23]
	str	d0, [x24]
	fmov	w0, s0
	bl	_upper_32_bits
	stur	w0, [x24, #-4]
	ldur	x8, [x23, #-8]
	stur	x8, [x24, #-12]
	ldr	w9, [x21]
	add	w8, w9, w8
	str	w8, [x21]
	add	x23, x23, #16
	add	x24, x24, #24
	subs	x22, x22, #1
	b.ne	LBB0_2
LBB0_3:
	cbz	w20, LBB0_5
; %bb.4:
	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_5:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	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
	b	_memset
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ocrdma_build_sges
.subsections_via_symbols
