	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DecodeQ931                     ## -- Begin function DecodeQ931
	.p2align	4, 0x90
_DecodeQ931:                            ## @DecodeQ931
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.2:
	movq	%rdi, %r15
	cmpb	$8, (%rdi)
	jne	LBB0_3
## %bb.4:
	cmpq	$1, %rbx
	je	LBB0_16
## %bb.5:
	movzbl	1(%r15), %r12d
	addq	$-2, %rbx
	subq	%r12, %rbx
	jb	LBB0_16
## %bb.6:
	je	LBB0_16
## %bb.7:
	movq	%rdx, %r14
	movzbl	2(%r15,%r12), %esi
	movl	%esi, 4(%rdx)
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRINT
	movzbl	3(%r15,%r12), %esi
	movl	%esi, %eax
	sarb	$7, %al
	movsbq	%al, %rax
	addq	%rax, %rbx
	je	LBB0_15
## %bb.8:
	leaq	(%r15,%r12), %rax
	addq	$3, %rax
	shrq	$7, %rsi
	addq	%rax, %rsi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$126, (%rsi)
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	decq	%rbx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movzbl	1(%rsi), %eax
	addq	%rax, %rsi
	addq	$2, %rsi
	subq	%rax, %rbx
	ja	LBB0_9
	jmp	LBB0_15
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRINT
	movq	_H323_ERROR_RANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_10:
	cmpq	$3, %rbx
	jb	LBB0_15
## %bb.11:
	movzwl	1(%rsi), %eax
	rolw	$8, %ax
	movzwl	%ax, %edx
	addq	$-3, %rbx
	cmpq	%rdx, %rbx
	jae	LBB0_12
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_PRINT
LBB0_16:
	movq	_H323_ERROR_BOUND@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	addq	$4, %rsi
	decl	%edx
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r14, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DecodeH323_UserInformation     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_H323_ERROR_BOUND,4,2           ## @H323_ERROR_BOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown Protocol Discriminator\n"

	.comm	_H323_ERROR_RANGE,4,2           ## @H323_ERROR_RANGE
L_.str.1:                               ## @.str.1
	.asciz	"MessageType = %02X\n"

L_.str.2:                               ## @.str.2
	.asciz	"Q.931 UUIE not found\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DecodeQ931                     ; -- Begin function DecodeQ931
	.p2align	2
_DecodeQ931:                            ; @DecodeQ931
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_15
; %bb.1:
	cbz	x1, LBB0_15
; %bb.2:
	mov	x20, x0
	ldrb	w8, [x0]
	cmp	w8, #8
	b.ne	LBB0_11
; %bb.3:
	cmp	x1, #1
	b.eq	LBB0_15
; %bb.4:
	ldrb	w8, [x20, #1]
	sub	x9, x1, #2
	subs	x21, x9, x8
	b.lo	LBB0_15
; %bb.5:
	b.eq	LBB0_15
; %bb.6:
	mov	x19, x2
	add	x22, x20, x8
	ldrb	w8, [x22, #2]
	str	w8, [x2, #4]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_PRINT
	ldrb	w8, [x22, #3]!
	sbfx	w9, w8, #7, #1
	adds	x9, x21, w9, sxtw
	b.eq	LBB0_14
; %bb.7:
	add	x8, x22, x8, lsr #7
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8]
	cmp	w10, #126
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	subs	x9, x9, #1
	b.eq	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w10, [x8, #1]
	add	x8, x8, x10
	add	x8, x8, #2
	subs	x9, x9, x10
	b.hi	LBB0_8
	b	LBB0_14
LBB0_11:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PRINT
Lloh4:
	adrp	x8, _H323_ERROR_RANGE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _H323_ERROR_RANGE@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
	subs	x9, x9, #3
	b.lo	LBB0_14
; %bb.13:
	ldurh	w10, [x8, #1]
	rev16	w10, w10
	cmp	x9, x10
	b.hs	LBB0_17
LBB0_14:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_PRINT
LBB0_15:
Lloh8:
	adrp	x8, _H323_ERROR_BOUND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _H323_ERROR_BOUND@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [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
	add	sp, sp, #64
	ret
LBB0_17:
	add	x1, x8, #4
	sub	w2, w10, #1
	mov	x0, x20
	mov	x3, x19
	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
	add	sp, sp, #64
	b	_DecodeH323_UserInformation
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_H323_ERROR_BOUND,4,2           ; @H323_ERROR_BOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown Protocol Discriminator\n"

	.comm	_H323_ERROR_RANGE,4,2           ; @H323_ERROR_RANGE
l_.str.1:                               ; @.str.1
	.asciz	"MessageType = %02X\n"

l_.str.2:                               ; @.str.2
	.asciz	"Q.931 UUIE not found\n"

.subsections_via_symbols
