	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dccp_encode_value_var          ## -- Begin function dccp_encode_value_var
	.p2align	4, 0x90
_dccp_encode_value_var:                 ## @dccp_encode_value_var
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	movq	_DCCP_OPTVAL_MAXLEN@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jg	LBB0_2
## %bb.1:
	movslq	%eax, %rcx
	shrq	$40, %rcx
	movzbl	%cl, %ecx
	movl	%ecx, (%rsi)
	addq	$4, %rsi
LBB0_2:
	cmpl	$5, %edx
	jl	LBB0_4
## %bb.3:
	movl	%eax, %ecx
	sarl	$31, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, (%rsi)
	addq	$4, %rsi
	jmp	LBB0_5
LBB0_4:
	cmpl	$4, %edx
	jne	LBB0_6
LBB0_5:
	movl	%eax, %ecx
	shrl	$24, %ecx
	movl	%ecx, (%rsi)
	addq	$4, %rsi
LBB0_7:
	movl	%eax, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, (%rsi)
	addq	$4, %rsi
LBB0_9:
	movzbl	%ah, %ecx
	movl	%ecx, (%rsi)
	addq	$4, %rsi
LBB0_11:
	movzbl	%al, %eax
	movl	%eax, (%rsi)
LBB0_12:
	popq	%rbp
	retq
LBB0_6:
	cmpl	$3, %edx
	jge	LBB0_7
## %bb.8:
	cmpl	$2, %edx
	je	LBB0_9
## %bb.10:
	testl	%edx, %edx
	jg	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_DCCP_OPTVAL_MAXLEN,4,2         ## @DCCP_OPTVAL_MAXLEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dccp_encode_value_var          ; -- Begin function dccp_encode_value_var
	.p2align	2
_dccp_encode_value_var:                 ; @dccp_encode_value_var
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _DCCP_OPTVAL_MAXLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCCP_OPTVAL_MAXLEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.gt	LBB0_2
; %bb.1:
	sxtw	x8, w0
	ubfx	x8, x8, #40, #8
	str	w8, [x1], #4
LBB0_2:
	cmp	w2, #5
	b.lt	LBB0_4
; %bb.3:
	asr	w8, w0, #31
	and	w8, w8, #0xff
	str	w8, [x1], #4
	b	LBB0_5
LBB0_4:
	cmp	w2, #4
	b.ne	LBB0_10
LBB0_5:
	lsr	w8, w0, #24
	str	w8, [x1], #4
LBB0_6:
	ubfx	w8, w0, #16, #8
	str	w8, [x1], #4
LBB0_7:
	ubfx	w8, w0, #8, #8
	str	w8, [x1], #4
LBB0_8:
	and	w8, w0, #0xff
	str	w8, [x1]
LBB0_9:
	ret
LBB0_10:
	cmp	w2, #3
	b.ge	LBB0_6
; %bb.11:
	cmp	w2, #2
	b.eq	LBB0_7
; %bb.12:
	cmp	w2, #1
	b.ge	LBB0_8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DCCP_OPTVAL_MAXLEN,4,2         ; @DCCP_OPTVAL_MAXLEN
.subsections_via_symbols
