	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_tag_internal
_decode_tag_internal:                   ## @decode_tag_internal
	.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
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_evbuffer_get_length
	movq	%rax, %r13
	cmpq	$5, %rax
	movl	$5, %esi
	cmovbq	%rax, %rsi
	movq	%r12, %rdi
	callq	_evbuffer_pullup
	movq	%rax, %r9
	movl	$-1, %eax
	testq	%r9, %r9
	je	LBB0_14
## %bb.1:
	movl	%ebx, %r10d
	leaq	1(%r13), %r8
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %esi
	andl	$127, %esi
	shll	%cl, %esi
	orl	%esi, %r15d
	addl	$7, %ecx
	leaq	1(%rdi), %rbx
	testb	$-128, %dl
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	cmpq	%rbx, %r13
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r9,%rdi,4), %edx
	cmpl	$28, %ecx
	jb	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %esi
	andl	$112, %esi
	je	LBB0_7
	jmp	LBB0_14
LBB0_3:
	movq	%r8, %rbx
LBB0_8:
	cmpq	%r13, %rdi
	jae	LBB0_14
## %bb.9:
	testl	%r10d, %r10d
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_evbuffer_drain
LBB0_11:
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movl	%r15d, (%r14)
LBB0_13:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	cmovbq	%rbx, %rax
LBB0_14:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.no_dead_strip	_decode_tag_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_tag_internal
_decode_tag_internal:                   ; @decode_tag_internal
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_evbuffer_get_length
	mov	x22, x0
	mov	w8, #5
	cmp	x0, #5
	csel	x1, x0, x8, lo
	mov	x0, x20
	bl	_evbuffer_pullup
	cbz	x0, LBB0_14
; %bb.1:
	mov	w24, #0
	mov	x23, #0
	mov	w10, #0
	add	x9, x22, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	and	w8, w12, #0x7f
	lsl	w8, w8, w10
	orr	w24, w8, w24
	add	w10, w10, #7
	add	x23, x11, #1
	tbz	w12, #7, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x11, x23
	cmp	x22, x23
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x0, x11, lsl #2]
	cmp	w10, #28
	b.lo	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #-1
	cmp	w10, #28
	b.ne	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w13, w12, #0x70
	cbz	w13, LBB0_2
	b	LBB0_15
LBB0_7:
	mov	x23, x9
LBB0_8:
	cmp	x11, x22
	b.hs	LBB0_14
; %bb.9:
	cbz	w21, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x23
	bl	_evbuffer_drain
LBB0_11:
	cbz	x19, LBB0_13
; %bb.12:
	str	w24, [x19]
LBB0_13:
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x23, x8
	csel	x8, x23, x8, lo
	b	LBB0_15
LBB0_14:
	mov	w8, #-1
LBB0_15:
	mov	x0, x8
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.no_dead_strip	_decode_tag_internal
.subsections_via_symbols
