	.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	$56, %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
	movl	(%rdx), %eax
	testl	%eax, %eax
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	xorl	%edi, %edi
	xorl	%r13d, %r13d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
	movslq	%eax, %rcx
	cmpq	%rcx, %rdi
	jge	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	8(%rdx), %rcx
	movq	%rdi, %rsi
	shlq	$4, %rsi
	movl	(%rcx,%rsi), %r12d
	addl	%r12d, %r13d
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	jg	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rcx,%rsi), %r13
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	leaq	(%rcx,%rax,4), %r14
	cmpq	%r14, %rbx
	cmoveq	%rcx, %rbx
	movslq	%r12d, %r12
	subq	%rbx, %r14
	sarq	$2, %r14
	cmpq	%r12, %r14
	cmovgel	%r12d, %r14d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movslq	%r14d, %rax
	leaq	(%rbx,%rax,4), %rbx
	leaq	(%r13,%rax,4), %r13
	subl	%eax, %r12d
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_1:
	xorl	%r13d, %r13d
LBB0_10:
	leal	40(%r13), %r14d
	movl	%r14d, %edi
	movl	$16, %esi
	callq	_roundup
	subl	%r14d, %eax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
LBB0_12:
	movq	_FW_RI_DATA_IMMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 24(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movl	%r13d, %edi
	callq	_cpu_to_be32
	movl	%eax, (%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_4:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$56, %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:
	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	x20, x1
	ldr	x22, [x1, #32]
	ldr	w8, [x2]
	cmp	w8, #1
	str	x4, [sp, #8]                    ; 8-byte Folded Spill
	b.lt	LBB0_8
; %bb.1:
	mov	x23, x3
	mov	x24, x2
	mov	x25, x0
	mov	x28, #0
	mov	w21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x28, x28, #1
	cmp	x28, w8, sxtw
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x9, [x24, #8]
	lsl	x10, x28, #4
	ldr	w19, [x9, x10]
	add	w21, w19, w21
	cmp	w21, w23
	b.gt	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w19, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x9, x28, lsl #4
	ldr	x26, [x8, #8]
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x9, x8, [x25]
	add	x9, x8, x9, lsl #2
	cmp	x22, x9
	csel	x22, x8, x22, eq
	sub	x8, x9, x22
	asr	x8, x8, #2
	cmp	x8, w19, sxtw
	csel	w27, w8, w19, lt
	mov	x0, x22
	mov	x1, x26
	mov	x2, x27
	bl	_memcpy
	sbfiz	x8, x27, #2, #32
	add	x22, x22, x8
	add	x26, x26, x8
	subs	w19, w19, w27
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	b	LBB0_2
LBB0_8:
	mov	w21, #0
LBB0_9:
	add	w23, w21, #40
	mov	x0, x23
	mov	w1, #16
	bl	_roundup
	subs	w2, w0, w23
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x22
	mov	w1, #0
	bl	_memset
LBB0_11:
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, x21
	bl	_cpu_to_be32
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	w21, [x8]
	b	LBB0_13
LBB0_12:
Lloh3:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
	.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
