	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_immd
_build_immd:                            ## @build_immd
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	32(%rsi), %rbx
	cmpl	$0, (%rdx)
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	movl	$8, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdx), %rax
	movslq	-8(%rax,%r14), %r15
	addl	%r15d, %r12d
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jg	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax,%r14), %rsi
	movq	%rbx, %rdi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	movq	%rdx, %r12
	movl	%r15d, %edx
	callq	_memcpy
	movq	%r12, %rdx
	movq	%rbx, %r12
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%r15,4), %rbx
	incq	%r13
	movslq	(%rdx), %rax
	addq	$16, %r14
	cmpq	%rax, %r13
	jl	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%r12d, %r12d
LBB0_6:
	leal	8(%r12), %r14d
	movl	%r14d, %edi
	movl	$16, %esi
	callq	_ROUND_UP
	subl	%r14d, %eax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
LBB0_8:
	movq	_FW_RI_DATA_IMMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 24(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movl	%r12d, %edi
	callq	_htobe32
	movl	%eax, (%r14)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_4:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_FW_RI_DATA_IMMD,4,2            ## @FW_RI_DATA_IMMD
	.no_dead_strip	_build_immd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_immd
_build_immd:                            ; @build_immd
	.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, x4
	mov	x20, x1
	ldr	x21, [x1, #32]
	ldr	w8, [x2]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x23, x3
	mov	x24, x2
	mov	x26, #0
	mov	x27, #0
	mov	w22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #8]
	ldrsw	x25, [x8, x26]
	add	w22, w25, w22
	cmp	w22, w23
	b.gt	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, x26
	ldr	x1, [x8, #8]
	mov	x0, x21
	mov	x2, x25
	bl	_memcpy
	add	x21, x21, x25, lsl #2
	add	x27, x27, #1
	ldrsw	x8, [x24]
	add	x26, x26, #16
	cmp	x27, x8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
	add	w23, w22, #8
	mov	x0, x23
	mov	w1, #16
	bl	_ROUND_UP
	subs	w2, w0, w23
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x21
	mov	w1, #0
	bl	_memset
LBB0_7:
Lloh0:
	adrp	x8, _FW_RI_DATA_IMMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_RI_DATA_IMMD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	stp	xzr, xzr, [x20, #8]
	mov	x0, x22
	bl	_htobe32
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20]
	str	w22, [x19]
	b	LBB0_9
LBB0_8:
Lloh3:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_FW_RI_DATA_IMMD,4,2            ; @FW_RI_DATA_IMMD
	.no_dead_strip	_build_immd
.subsections_via_symbols
