	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ber_read_element
_ber_read_element:                      ## @ber_read_element
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	-80(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	callq	_get_id
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	movl	-56(%rbp), %esi
	movq	-80(%rbp), %rdx
	cmpl	$0, -52(%rbp)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTF
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_get_len
	cmpl	$-1, %eax
	je	LBB0_39
## %bb.3:
	movl	%eax, %r12d
	movl	-44(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTF
	movl	-44(%rbp), %r14d
	cmpl	$-1, (%r15)
	jne	LBB0_6
## %bb.4:
	movl	4(%r15), %eax
	subl	8(%r15), %eax
	cmpl	%eax, %r14d
	jle	LBB0_6
## %bb.5:
	movq	_ECANCELED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_39
LBB0_1:
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_39
LBB0_6:
	movq	-80(%rbp), %rax
	movq	%rax, (%r13)
	movl	%r14d, 8(%r13)
	movl	-56(%rbp), %edx
	movl	%edx, 12(%r13)
	movl	16(%r13), %ecx
	testl	%ecx, %ecx
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	je	LBB0_7
LBB0_22:
	addl	$-128, %ecx
	cmpl	$9, %ecx
	ja	LBB0_38
## %bb.23:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_25:
	movl	-44(%rbp), %eax
	cmpl	$8, %eax
	jg	LBB0_39
## %bb.26:
	testl	%eax, %eax
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	jle	LBB0_27
## %bb.28:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	leaq	-88(%rbp), %rsi
	callq	_ber_getc
	cmpl	$1, %eax
	jne	LBB0_39
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	shlq	$8, %r14
	orq	-88(%rbp), %r14
	incl	%r12d
	addl	$8, %ebx
	cmpl	-44(%rbp), %r12d
	jl	LBB0_29
	jmp	LBB0_31
LBB0_7:
	cmpl	$0, -52(%rbp)
	je	LBB0_18
## %bb.8:
	movl	$129, 16(%r13)
LBB0_9:
	movq	48(%r13), %r14
	testq	%r14, %r14
	jne	LBB0_11
## %bb.10:
	xorl	%edi, %edi
	callq	_ber_get_element
	movq	%rax, %r14
	movq	%rax, 48(%r13)
	testq	%rax, %rax
	je	LBB0_39
LBB0_11:
	cmpl	$0, -44(%rbp)
	jg	LBB0_12
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	40(%r14), %r14
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ber_read_element
	cmpl	$-1, %eax
	je	LBB0_39
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	subl	%eax, -44(%rbp)
	jle	LBB0_38
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	$0, 40(%r14)
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%edi, %edi
	callq	_ber_get_element
	movq	%rax, 40(%r14)
	testq	%rax, %rax
	je	LBB0_39
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$0, -44(%rbp)
	jg	LBB0_17
	jmp	LBB0_38
LBB0_34:
	movl	-44(%rbp), %edi
	incl	%edi
	callq	_malloc
	movq	%rax, 56(%r13)
	testq	%rax, %rax
	je	LBB0_39
## %bb.35:
	movl	$1, 32(%r13)
	movl	-44(%rbp), %edx
	movl	%edx, 8(%r13)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ber_read
	movq	56(%r13), %rax
	movslq	-44(%rbp), %rcx
	movq	$0, (%rax,%rcx,8)
	jmp	LBB0_38
LBB0_18:
	movq	_BER_CLASS_UNIVERSAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	je	LBB0_21
## %bb.19:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_36
## %bb.20:
	movq	%r13, %rdi
	callq	*%rax
LBB0_21:
	movl	%eax, 16(%r13)
	movl	%eax, %ecx
	jmp	LBB0_22
LBB0_24:
	movl	-44(%rbp), %eax
	jmp	LBB0_37
LBB0_32:
	movl	-44(%rbp), %edi
	callq	_malloc
	movq	%rax, 56(%r13)
	testq	%rax, %rax
	je	LBB0_39
## %bb.33:
	movl	$1, 32(%r13)
	movl	-44(%rbp), %edx
	movl	%edx, 8(%r13)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ber_read
	jmp	LBB0_38
LBB0_27:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_31:
	leal	-8(%rbx), %ecx
	movq	%r14, %rax
                                        ## kill: def $cl killed $cl killed $ecx
	sarq	%cl, %rax
	movsbq	%al, %rax
	sarq	$7, %rax
	movq	_ULLONG_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	movslq	%edx, %rcx
	andq	%rax, %rcx
	orq	%r14, %rcx
	movq	%rcx, 24(%r13)
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_38
LBB0_36:
	movl	$132, 16(%r13)
	movl	%r14d, %eax
LBB0_37:
	testl	%eax, %eax
	jne	LBB0_39
LBB0_38:
	addl	%ebx, %r12d
	addl	-68(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
LBB0_39:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_34
	.long	L0_0_set_34
	.long	L0_0_set_24
	.long	L0_0_set_25
	.long	L0_0_set_38
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_32
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ber read got class %d type %lu, %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"constructive"

L_.str.2:                               ## @.str.2
	.asciz	"primitive"

L_.str.3:                               ## @.str.3
	.asciz	"ber read element size %zd\n"

	.comm	_ECANCELED,4,2                  ## @ECANCELED
	.comm	_errno,4,2                      ## @errno
	.comm	_BER_CLASS_UNIVERSAL,4,2        ## @BER_CLASS_UNIVERSAL
	.comm	_ULLONG_MAX,4,2                 ## @ULLONG_MAX
	.no_dead_strip	_ber_read_element
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ber_read_element
_ber_read_element:                      ; @ber_read_element
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x21, x0
	add	x1, sp, #40
	add	x2, sp, #36
	add	x3, sp, #32
	bl	_get_id
	cmn	w0, #1
	b.eq	LBB0_39
; %bb.1:
	mov	x19, x0
	ldp	w9, w1, [sp, #32]
	ldr	x8, [sp, #40]
Lloh0:
	adrp	x10, l_.str.1@PAGE
Lloh1:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh2:
	adrp	x11, l_.str.2@PAGE
Lloh3:
	add	x11, x11, l_.str.2@PAGEOFF
	cmp	w9, #0
	csel	x9, x11, x10, eq
	stp	x8, x9, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTF
	add	x1, sp, #28
	mov	x0, x21
	bl	_get_len
	cmn	w0, #1
	b.eq	LBB0_39
; %bb.2:
	mov	x20, x0
	ldr	w1, [sp, #28]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DPRINTF
	ldr	w24, [sp, #28]
	ldr	w8, [x21]
	cmn	w8, #1
	b.ne	LBB0_5
; %bb.3:
	ldp	w8, w9, [x21, #4]
	sub	w8, w8, w9
	cmp	w24, w8
	b.le	LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _ECANCELED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECANCELED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _errno@GOTPAGE
Lloh12:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh13:
	str	w8, [x9]
	mov	w0, #-1
	b	LBB0_39
LBB0_5:
	ldr	x0, [sp, #40]
	str	x0, [x22]
	ldr	w8, [sp, #36]
	stp	w24, w8, [x22, #8]
	ldr	w9, [x22, #16]
	cbz	w9, LBB0_13
LBB0_6:
	sub	w8, w9, #128
	cmp	w8, #9
	b.hi	LBB0_36
; %bb.7:
Lloh14:
	adrp	x9, lJTI0_0@PAGE
Lloh15:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	ldr	w8, [sp, #28]
	cmp	w8, #8
	b.gt	LBB0_38
; %bb.9:
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.10:
	mov	w25, #0
	mov	w26, #0
	mov	x23, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #16
	mov	x0, x21
	bl	_ber_getc
	cmp	w0, #1
	b.ne	LBB0_38
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #16]
	orr	x23, x8, x23, lsl #8
	add	w26, w26, #1
	ldr	w8, [sp, #28]
	add	w25, w25, #8
	cmp	w26, w8
	b.lt	LBB0_11
	b	LBB0_35
LBB0_13:
	ldr	w9, [sp, #32]
	cbz	w9, LBB0_27
; %bb.14:
	mov	w8, #129
	str	w8, [x22, #16]
LBB0_15:
	ldr	x23, [x22, #48]
	cbnz	x23, LBB0_17
; %bb.16:
	mov	w0, #0
	bl	_ber_get_element
	mov	x23, x0
	str	x0, [x22, #48]
	cbz	x0, LBB0_38
LBB0_17:
	ldr	w8, [sp, #28]
	cmp	w8, #1
	b.lt	LBB0_36
; %bb.18:
	mov	x0, x21
	mov	x1, x23
	bl	_ber_read_element
	cmn	w0, #1
	b.eq	LBB0_39
; %bb.19:
	mov	x8, x0
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x23, [x23, #40]
	mov	x0, x21
	mov	x1, x23
	bl	_ber_read_element
	mov	x8, x0
	mov	w0, #-1
	cmn	w8, #1
	b.eq	LBB0_39
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [sp, #28]
	sub	w8, w9, w8
	str	w8, [sp, #28]
	cmp	w8, #1
	b.lt	LBB0_36
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x23, #40]
	cbnz	x8, LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	w0, #0
	bl	_ber_get_element
	str	x0, [x23, #40]
	cbz	x0, LBB0_38
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w8, [sp, #28]
	cmp	w8, #1
	b.ge	LBB0_20
	b	LBB0_36
LBB0_25:
	ldr	w8, [sp, #28]
	add	w0, w8, #1
	bl	_malloc
	str	x0, [x22, #56]
	cbz	x0, LBB0_38
; %bb.26:
	mov	x1, x0
	mov	w8, #1
	str	w8, [x22, #32]
	ldr	w2, [sp, #28]
	str	w2, [x22, #8]
	mov	x0, x21
	bl	_ber_read
	ldr	x8, [x22, #56]
	ldrsw	x9, [sp, #28]
	str	xzr, [x8, x9, lsl #3]
	b	LBB0_36
LBB0_27:
Lloh16:
	adrp	x9, _BER_CLASS_UNIVERSAL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _BER_CLASS_UNIVERSAL@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_30
; %bb.28:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_37
; %bb.29:
	mov	x0, x22
	blr	x8
LBB0_30:
	str	w0, [x22, #16]
	mov	x9, x0
	b	LBB0_6
LBB0_31:
	ldr	w8, [sp, #28]
	cbnz	w8, LBB0_38
	b	LBB0_36
LBB0_32:
	ldr	w0, [sp, #28]
	bl	_malloc
	str	x0, [x22, #56]
	cbz	x0, LBB0_38
; %bb.33:
	mov	x1, x0
	mov	w8, #1
	str	w8, [x22, #32]
	ldr	w2, [sp, #28]
	str	w2, [x22, #8]
	mov	x0, x21
	bl	_ber_read
	b	LBB0_36
LBB0_34:
	mov	x23, #0
	mov	w25, #0
LBB0_35:
	sub	w8, w25, #8
	asr	x8, x23, x8
	lsl	x8, x8, #56
Lloh19:
	adrp	x9, _ULLONG_MAX@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ULLONG_MAX@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	lsl	w9, w9, w25
	sxtw	x9, w9
	and	x8, x9, x8, asr #63
	orr	x8, x8, x23
	str	x8, [x22, #24]
LBB0_36:
	add	w8, w20, w19
	add	w0, w8, w24
	b	LBB0_39
LBB0_37:
	mov	w8, #132
	str	w8, [x22, #16]
	mov	x8, x24
	cbz	w8, LBB0_36
LBB0_38:
	mov	w0, #-1
LBB0_39:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_25-LBB0_8)>>2
	.byte	(LBB0_25-LBB0_8)>>2
	.byte	(LBB0_31-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_36-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_32-LBB0_8)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ber read got class %d type %lu, %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"constructive"

l_.str.2:                               ; @.str.2
	.asciz	"primitive"

l_.str.3:                               ; @.str.3
	.asciz	"ber read element size %zd\n"

	.comm	_ECANCELED,4,2                  ; @ECANCELED
	.comm	_errno,4,2                      ; @errno
	.comm	_BER_CLASS_UNIVERSAL,4,2        ; @BER_CLASS_UNIVERSAL
	.comm	_ULLONG_MAX,4,2                 ; @ULLONG_MAX
	.no_dead_strip	_ber_read_element
.subsections_via_symbols
