	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ber_add_integer                ## -- Begin function ber_add_integer
	.p2align	4, 0x90
_ber_add_integer:                       ## @ber_add_integer
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_BER_TYPE_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ber_get_element
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_51
## %bb.1:
	movq	%rbx, (%r15)
	movq	%rbx, %rcx
	sarq	$8, %rcx
	movzbl	%cl, %edx
	movl	%ecx, %eax
	incb	%al
	cmpb	$1, %al
	ja	LBB0_4
## %bb.2:
	movl	%ebx, %edi
	andl	$128, %edi
	sete	%sil
	xorl	%r8d, %r8d
	testl	%edx, %edx
	jne	LBB0_5
## %bb.3:
	testl	%edi, %edi
	jne	LBB0_7
	jmp	LBB0_5
LBB0_4:
	testb	$-128, %bl
	sete	%sil
	movl	$1, %r8d
LBB0_5:
	cmpl	$255, %edx
	jne	LBB0_8
## %bb.6:
	testb	%sil, %sil
	je	LBB0_8
LBB0_7:
	movl	$1, %r8d
LBB0_8:
	movq	%rbx, %rdx
	sarq	$16, %rdx
	movzbl	%dl, %esi
	movl	%edx, %eax
	incb	%al
	cmpb	$1, %al
	ja	LBB0_11
## %bb.9:
	andl	$128, %ecx
	sete	%dil
	testl	%esi, %esi
	jne	LBB0_12
## %bb.10:
	testl	%ecx, %ecx
	jne	LBB0_14
	jmp	LBB0_12
LBB0_11:
	testb	$-128, %cl
	sete	%dil
	movl	$2, %r8d
LBB0_12:
	cmpl	$255, %esi
	jne	LBB0_15
## %bb.13:
	testb	%dil, %dil
	je	LBB0_15
LBB0_14:
	movl	$2, %r8d
LBB0_15:
	movq	%rbx, %rcx
	sarq	$24, %rcx
	movzbl	%cl, %esi
	movl	%ecx, %eax
	incb	%al
	cmpb	$1, %al
	ja	LBB0_18
## %bb.16:
	andl	$128, %edx
	sete	%dil
	testl	%esi, %esi
	jne	LBB0_19
## %bb.17:
	testl	%edx, %edx
	jne	LBB0_21
	jmp	LBB0_19
LBB0_18:
	testb	$-128, %dl
	sete	%dil
	movl	$3, %r8d
LBB0_19:
	cmpl	$255, %esi
	jne	LBB0_22
## %bb.20:
	testb	%dil, %dil
	je	LBB0_22
LBB0_21:
	movl	$3, %r8d
LBB0_22:
	movq	%rbx, %rdx
	sarq	$32, %rdx
	movzbl	%dl, %esi
	movl	%edx, %eax
	incb	%al
	cmpb	$1, %al
	ja	LBB0_25
## %bb.23:
	andl	$128, %ecx
	sete	%dil
	testl	%esi, %esi
	jne	LBB0_26
## %bb.24:
	testl	%ecx, %ecx
	jne	LBB0_28
	jmp	LBB0_26
LBB0_25:
	testb	$-128, %cl
	sete	%dil
	movl	$4, %r8d
LBB0_26:
	cmpl	$255, %esi
	jne	LBB0_29
## %bb.27:
	testb	%dil, %dil
	je	LBB0_29
LBB0_28:
	movl	$4, %r8d
LBB0_29:
	movq	%rbx, %rcx
	sarq	$40, %rcx
	movzbl	%cl, %esi
	movl	%ecx, %eax
	incb	%al
	cmpb	$1, %al
	ja	LBB0_32
## %bb.30:
	andl	$128, %edx
	sete	%dil
	testl	%esi, %esi
	jne	LBB0_33
## %bb.31:
	testl	%edx, %edx
	jne	LBB0_35
	jmp	LBB0_33
LBB0_32:
	testb	$-128, %dl
	sete	%dil
	movl	$5, %r8d
LBB0_33:
	cmpl	$255, %esi
	jne	LBB0_36
## %bb.34:
	testb	%dil, %dil
	je	LBB0_36
LBB0_35:
	movl	$5, %r8d
LBB0_36:
	movq	%rbx, %rdx
	sarq	$48, %rdx
	movzbl	%dl, %esi
	movl	%edx, %eax
	incb	%al
	cmpb	$1, %al
	ja	LBB0_39
## %bb.37:
	andl	$128, %ecx
	sete	%dil
	testl	%esi, %esi
	jne	LBB0_40
## %bb.38:
	testl	%ecx, %ecx
	jne	LBB0_42
	jmp	LBB0_40
LBB0_39:
	testb	$-128, %cl
	sete	%dil
	movl	$6, %r8d
LBB0_40:
	cmpl	$255, %esi
	jne	LBB0_43
## %bb.41:
	testb	%dil, %dil
	je	LBB0_43
LBB0_42:
	movl	$6, %r8d
LBB0_43:
	sarq	$56, %rbx
	movzbl	%bl, %ecx
	incb	%bl
	cmpb	$1, %bl
	ja	LBB0_46
## %bb.44:
	andl	$128, %edx
	sete	%bl
	testl	%ecx, %ecx
	jne	LBB0_47
## %bb.45:
	testl	%edx, %edx
	jne	LBB0_49
	jmp	LBB0_47
LBB0_46:
	testb	$-128, %dl
	sete	%bl
	movl	$7, %r8d
LBB0_47:
	cmpl	$255, %ecx
	jne	LBB0_50
## %bb.48:
	testb	%bl, %bl
	je	LBB0_50
LBB0_49:
	movl	$7, %r8d
LBB0_50:
	incl	%r8d
	movl	%r8d, 8(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ber_link_elements
LBB0_51:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BER_TYPE_INTEGER,4,2           ## @BER_TYPE_INTEGER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ber_add_integer                ; -- Begin function ber_add_integer
	.p2align	2
_ber_add_integer:                       ; @ber_add_integer
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _BER_TYPE_INTEGER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BER_TYPE_INTEGER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ber_get_element
	mov	x20, x0
	cbz	x0, LBB0_58
; %bb.1:
	str	x21, [x20]
	lsr	x9, x21, #8
	ubfx	x10, x21, #8, #8
	cmp	w10, #255
	b.eq	LBB0_3
; %bb.2:
	cbnz	w10, LBB0_5
LBB0_3:
	mov	w8, #0
	ands	w12, w21, #0x80
	cset	w11, eq
	cbnz	w10, LBB0_6
; %bb.4:
	cbnz	w12, LBB0_8
	b	LBB0_6
LBB0_5:
	tst	w21, #0x80
	cset	w11, eq
	mov	w8, #1
LBB0_6:
	cmp	w10, #255
	b.ne	LBB0_9
; %bb.7:
	cbz	w11, LBB0_9
LBB0_8:
	mov	w8, #1
LBB0_9:
	lsr	x10, x21, #16
	ubfx	x11, x21, #16, #8
	cmp	w11, #255
	b.eq	LBB0_11
; %bb.10:
	cbnz	w11, LBB0_13
LBB0_11:
	ands	w12, w9, #0x80
	cset	w9, eq
	cbnz	w11, LBB0_14
; %bb.12:
	cbnz	w12, LBB0_16
	b	LBB0_14
LBB0_13:
	tst	w9, #0x80
	cset	w9, eq
	mov	w8, #2
LBB0_14:
	cmp	w11, #255
	b.ne	LBB0_17
; %bb.15:
	cbz	w9, LBB0_17
LBB0_16:
	mov	w8, #2
LBB0_17:
	lsr	x11, x21, #24
	ubfx	x9, x21, #24, #8
	cmp	w9, #255
	b.eq	LBB0_19
; %bb.18:
	cbnz	w9, LBB0_21
LBB0_19:
	ands	w12, w10, #0x80
	cset	w10, eq
	cbnz	w9, LBB0_22
; %bb.20:
	cbnz	w12, LBB0_24
	b	LBB0_22
LBB0_21:
	tst	w10, #0x80
	cset	w10, eq
	mov	w8, #3
LBB0_22:
	cmp	w9, #255
	b.ne	LBB0_25
; %bb.23:
	cbz	w10, LBB0_25
LBB0_24:
	mov	w8, #3
LBB0_25:
	lsr	x9, x21, #32
	ubfx	x10, x21, #32, #8
	cmp	w10, #255
	b.eq	LBB0_27
; %bb.26:
	cbnz	w10, LBB0_29
LBB0_27:
	ands	w12, w11, #0x80
	cset	w11, eq
	cbnz	w10, LBB0_30
; %bb.28:
	cbnz	w12, LBB0_32
	b	LBB0_30
LBB0_29:
	tst	w11, #0x80
	cset	w11, eq
	mov	w8, #4
LBB0_30:
	cmp	w10, #255
	b.ne	LBB0_33
; %bb.31:
	cbz	w11, LBB0_33
LBB0_32:
	mov	w8, #4
LBB0_33:
	asr	x10, x21, #40
	and	w11, w10, #0xff
	cmp	w11, #255
	b.eq	LBB0_35
; %bb.34:
	cbnz	w11, LBB0_37
LBB0_35:
	ands	w12, w9, #0x80
	cset	w9, eq
	cbnz	w11, LBB0_38
; %bb.36:
	cbnz	w12, LBB0_40
	b	LBB0_38
LBB0_37:
	tst	w9, #0x80
	cset	w9, eq
	mov	w8, #5
LBB0_38:
	cmp	w11, #255
	b.ne	LBB0_41
; %bb.39:
	cbz	w9, LBB0_41
LBB0_40:
	mov	w8, #5
LBB0_41:
	asr	x9, x21, #48
	and	w11, w9, #0xff
	cmp	w11, #255
	b.eq	LBB0_43
; %bb.42:
	cbnz	w11, LBB0_45
LBB0_43:
	ands	w12, w10, #0x80
	cset	w10, eq
	cbnz	w11, LBB0_46
; %bb.44:
	cbnz	w12, LBB0_48
	b	LBB0_46
LBB0_45:
	tst	w10, #0x80
	cset	w10, eq
	mov	w8, #6
LBB0_46:
	cmp	w11, #255
	b.ne	LBB0_49
; %bb.47:
	cbz	w10, LBB0_49
LBB0_48:
	mov	w8, #6
LBB0_49:
	asr	x11, x21, #56
	and	w10, w11, #0xff
	cmn	w11, #1
	b.eq	LBB0_51
; %bb.50:
	cbnz	w10, LBB0_53
LBB0_51:
	ands	w11, w9, #0x80
	cset	w9, eq
	cbnz	w10, LBB0_54
; %bb.52:
	cbnz	w11, LBB0_56
	b	LBB0_54
LBB0_53:
	tst	w9, #0x80
	cset	w9, eq
	mov	w8, #7
LBB0_54:
	cmp	w10, #255
	b.ne	LBB0_57
; %bb.55:
	cbz	w9, LBB0_57
LBB0_56:
	mov	w8, #7
LBB0_57:
	add	w8, w8, #1
	str	w8, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_ber_link_elements
LBB0_58:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BER_TYPE_INTEGER,4,2           ; @BER_TYPE_INTEGER
.subsections_via_symbols
