	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_msg_len
_set_msg_len:                           ## @set_msg_len
	.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
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r12
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_memset
	movl	$4, %r13d
	cmpl	$3, %ebx
	jg	LBB0_3
## %bb.1:
	leal	(,%rbx,8), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%ebx, %r13d
	cmpl	%r15d, %eax
	jae	LBB0_3
## %bb.2:
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_4
LBB0_3:
	movslq	%ebx, %rax
	leaq	(%r12,%rax,4), %rbx
	movl	%r15d, %edi
	callq	_cpu_to_be32
	movl	%eax, -44(%rbp)
	movslq	%r13d, %rdx
	leaq	(,%rdx,4), %rax
	subq	%rax, %rbx
	leaq	-44(%rbp), %rsi
	subq	%rax, %rsi
	addq	$16, %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
	.no_dead_strip	_set_msg_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_msg_len
_set_msg_len:                           ; @set_msg_len
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	w1, #0
	bl	_memset
	cmp	w20, #3
	b.le	LBB0_2
; %bb.1:
	mov	w22, #4
	b	LBB0_4
LBB0_2:
	lsl	w8, w20, #3
	mov	w9, #1
	lsl	w8, w9, w8
	mov	x22, x20
	cmp	w8, w19
	b.hs	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _EOVERFLOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOVERFLOW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	add	x20, x21, w20, sxtw #2
	mov	x0, x19
	bl	_cpu_to_be32
	str	w0, [sp, #12]
	sbfiz	x8, x22, #2, #32
	sub	x0, x20, x8
	add	x9, sp, #12
	sub	x8, x9, x8
	add	x1, x8, #16
	mov	x2, x22
	bl	_memcpy
	mov	w0, #0
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
	.no_dead_strip	_set_msg_len
.subsections_via_symbols
