	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carm_fill_alloc_buf
_carm_fill_alloc_buf:                   ## @carm_fill_alloc_buf
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$104, %edx
	callq	_memset
	movq	_CARM_MSG_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%rbx)
	movq	_MISC_ALLOC_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rbx)
	movl	%r15d, %edi
	callq	_TAG_ENCODE
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 88(%rbx)
	movl	$1, (%rbx)
	movq	_SGT_32BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	_PDC_SHM_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	sarl	%edi
	addl	(%r14), %edi
	callq	_cpu_to_le32
	movq	%rax, 72(%rbx)
	movl	(%r15), %edi
	sarl	%edi
	callq	_cpu_to_le32
	movq	%rax, 64(%rbx)
	movl	$16384, %edi                    ## imm = 0x4000
	addl	(%r14), %edi
	callq	_cpu_to_le32
	movq	%rax, 56(%rbx)
	movl	$1024, %edi                     ## imm = 0x400
	callq	_cpu_to_le32
	movq	%rax, 48(%rbx)
	movl	(%r14), %edi
	callq	_cpu_to_le32
	movq	%rax, 40(%rbx)
	movq	_RMSG_Q_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 32(%rbx)
	movq	_RBUF_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	(%r14), %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%rbx)
	movq	_CARM_Q_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%rbx)
	movl	(%r15), %edi
	sarl	%edi
	addl	(%r14), %edi
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movl	$65536, %edi                    ## imm = 0x10000
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movl	$104, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARM_MSG_MISC,4,2              ## @CARM_MSG_MISC
	.comm	_MISC_ALLOC_MEM,4,2             ## @MISC_ALLOC_MEM
	.comm	_SGT_32BIT,4,2                  ## @SGT_32BIT
	.comm	_PDC_SHM_SIZE,4,2               ## @PDC_SHM_SIZE
	.comm	_RMSG_Q_LEN,4,2                 ## @RMSG_Q_LEN
	.comm	_RBUF_LEN,4,2                   ## @RBUF_LEN
	.comm	_CARM_Q_LEN,4,2                 ## @CARM_Q_LEN
	.no_dead_strip	_carm_fill_alloc_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carm_fill_alloc_buf
_carm_fill_alloc_buf:                   ; @carm_fill_alloc_buf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #104
	bl	_memset
Lloh0:
	adrp	x8, _CARM_MSG_MISC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CARM_MSG_MISC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MISC_ALLOC_MEM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MISC_ALLOC_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #96]
	mov	x0, x21
	bl	_TAG_ENCODE
	bl	_cpu_to_le32
	str	x0, [x19, #88]
	mov	w8, #1
	str	w8, [x19]
Lloh6:
	adrp	x8, _SGT_32BIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SGT_32BIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #80]
	ldr	w8, [x20]
Lloh9:
	adrp	x21, _PDC_SHM_SIZE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _PDC_SHM_SIZE@GOTPAGEOFF]
	ldr	w9, [x21]
	add	w0, w8, w9, asr #1
	bl	_cpu_to_le32
	str	x0, [x19, #72]
	ldr	w8, [x21]
	asr	w0, w8, #1
	bl	_cpu_to_le32
	str	x0, [x19, #64]
	ldr	w8, [x20]
	add	w0, w8, #4, lsl #12             ; =16384
	bl	_cpu_to_le32
	str	x0, [x19, #56]
	mov	w0, #1024
	bl	_cpu_to_le32
	str	x0, [x19, #48]
	ldr	w0, [x20]
	bl	_cpu_to_le32
	str	x0, [x19, #40]
Lloh11:
	adrp	x8, _RMSG_Q_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RMSG_Q_LEN@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x19, #32]
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _RBUF_LEN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RBUF_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	add	w0, w9, w8
	bl	_cpu_to_le32
	str	x0, [x19, #24]
Lloh17:
	adrp	x8, _CARM_Q_LEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CARM_Q_LEN@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x19, #16]
	ldr	w8, [x20]
	ldr	w9, [x21]
	add	w0, w8, w9, asr #1
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	mov	w0, #65536
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	str	x0, [x8]
	mov	w0, #104
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CARM_MSG_MISC,4,2              ; @CARM_MSG_MISC
	.comm	_MISC_ALLOC_MEM,4,2             ; @MISC_ALLOC_MEM
	.comm	_SGT_32BIT,4,2                  ; @SGT_32BIT
	.comm	_PDC_SHM_SIZE,4,2               ; @PDC_SHM_SIZE
	.comm	_RMSG_Q_LEN,4,2                 ; @RMSG_Q_LEN
	.comm	_RBUF_LEN,4,2                   ; @RBUF_LEN
	.comm	_CARM_Q_LEN,4,2                 ; @CARM_Q_LEN
	.no_dead_strip	_carm_fill_alloc_buf
.subsections_via_symbols
