	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_asn1_encode_uint            ## -- Begin function br_asn1_encode_uint
	.p2align	4, 0x90
_br_asn1_encode_uint:                   ## @br_asn1_encode_uint
	.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
	movq	%rsi, %r15
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	%r15, %r12
	shrq	$32, %r12
	incq	%rdi
	movb	$2, (%rbx)
	movl	%r15d, %esi
	callq	_br_asn1_encode_length
	movslq	%eax, %r13
	leaq	(%rbx,%r13), %rdi
	incq	%rdi
	movb	$0, 1(%rbx,%r13)
	movslq	%r15d, %rbx
	addq	%rbx, %rdi
	sarq	$32, %r15
	subq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_memcpy
	leaq	(%rbx,%r13), %rax
	incq	%rax
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
	movl	%r15d, %esi
	callq	_br_asn1_encode_length
                                        ## kill: def $eax killed $eax def $rax
	addl	%r15d, %eax
	incl	%eax
	cltq
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_asn1_encode_uint            ; -- Begin function br_asn1_encode_uint
	.p2align	2
_br_asn1_encode_uint:                   ; @br_asn1_encode_uint
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x2
	mov	x21, x0
	lsr	x22, x19, #32
	mov	w8, #2
	strb	w8, [x21], #1
	mov	x0, x21
	mov	x1, x19
	bl	_br_asn1_encode_length
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
	sxtw	x24, w19
	add	x8, x21, x23
	add	x9, x8, x24
	strb	wzr, [x8]
	sub	x0, x9, x19, asr #32
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	add	x8, x24, x23
	add	x0, x8, #1
	b	LBB0_3
LBB0_2:
	mov	x1, x19
	bl	_br_asn1_encode_length
	add	w8, w19, w0
	add	w8, w8, #1
	sxtw	x0, w8
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
