	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_qp
_decode_qp:                             ## @decode_qp
	.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	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_STREAM_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_IStream_Seek
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_30
## %bb.1:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1096(%rbp), %rdx
	xorl	%edi, %edi
	callq	_CreateStreamOnHGlobal
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_30
## %bb.2:
	movq	%r14, -1104(%rbp)               ## 8-byte Spill
	leaq	-1072(%rbp), %r14
	leaq	-1076(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_IStream_Read
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_25
## %bb.3:
	movl	-1076(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_25
## %bb.4:
	movl	$-1, %r15d
	xorl	%ecx, %ecx
	movq	%rcx, -1088(%rbp)               ## 8-byte Spill
	movq	%r12, -1112(%rbp)               ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testl	%eax, %eax
	jle	LBB0_23
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cltq
	leaq	(%rax,%rbp), %r13
	addq	$-1072, %r13                    ## imm = 0xFBD0
	movq	%r14, %r12
	movq	%r14, %rdx
	movq	-1088(%rbp), %rax               ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	movl	$1, %r15d
	movl	%ebx, %eax
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpq	%r13, %r12
	jae	LBB0_21
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r12), %ebx
	incq	%r12
	cmpl	$1, %r15d
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$-1, %r15d
	jne	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	xorl	%r15d, %r15d
	cmpb	$61, %bl
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	movb	%bl, (%rdx)
	incq	%rdx
	movl	$-1, %r15d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	$-1, %r15d
	cmpb	$13, %al
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=2
	cmpb	$10, %bl
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=2
	movb	$13, %al
	jmp	LBB0_20
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	%rdx, -1120(%rbp)               ## 8-byte Spill
	movq	%rax, -1088(%rbp)               ## 8-byte Spill
	movzbl	%al, %edi
	callq	_hex_digit
	movl	%eax, %r14d
	movzbl	%bl, %edi
	callq	_hex_digit
	movl	$61, %ecx
	cmpl	$-1, %eax
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=2
	movl	$61, %edx
	jmp	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=2
	movl	%r14d, %edx
	shll	$4, %edx
	orl	%eax, %edx
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$-1, %r14d
	cmovnel	%edx, %ecx
	movq	-1120(%rbp), %rdx               ## 8-byte Reload
	movb	%cl, (%rdx)
	incq	%rdx
	movq	-1088(%rbp), %rax               ## 8-byte Reload
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	-1072(%rbp), %r14
	cmpq	%r14, %rdx
	movq	-1112(%rbp), %r12               ## 8-byte Reload
	movq	%rax, -1088(%rbp)               ## 8-byte Spill
	jbe	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-1096(%rbp), %rdi
	subl	%r14d, %edx
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_IStream_Write
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	leaq	-1076(%rbp), %rcx
	callq	_IStream_Read
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-1076(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_5
LBB0_25:
	movl	%ebx, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	-1096(%rbp), %rdi
	movq	_STREAM_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_IStream_Seek
	movl	%eax, %ebx
LBB0_27:
	movl	%ebx, %edi
	callq	_FAILED
	movq	-1096(%rbp), %rdi
	testq	%rax, %rax
	movq	-1104(%rbp), %rax               ## 8-byte Reload
	je	LBB0_29
## %bb.28:
	callq	_IStream_Release
	jmp	LBB0_30
LBB0_29:
	movq	%rdi, (%rax)
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	movl	%ebx, %eax
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STREAM_SEEK_SET,4,2            ## @STREAM_SEEK_SET
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_decode_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_qp
_decode_qp:                             ; @decode_qp
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1072
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _STREAM_SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STREAM_SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, #0
	mov	x3, #0
	bl	_IStream_Seek
	mov	x21, x0
	bl	_FAILED
	cbnz	x0, LBB0_28
; %bb.1:
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_CreateStreamOnHGlobal
	mov	x21, x0
	bl	_FAILED
	cbnz	x0, LBB0_28
; %bb.2:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	add	x1, sp, #32
	add	x3, sp, #20
	mov	x0, x20
	mov	w2, #1024
	bl	_IStream_Read
	mov	x21, x0
	bl	_FAILED
	cbnz	x0, LBB0_23
; %bb.3:
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_23
; %bb.4:
	mov	w25, #0
	mov	w27, #-1
	add	x24, sp, #32
	mov	w26, #61
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x24, w8, sxtw
	add	x23, sp, #32
	add	x28, sp, #32
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	w27, #1
	mov	x25, x21
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	cmp	x23, x19
	b.hs	LBB0_19
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w21, [x23], #1
	cmp	w27, #1
	b.eq	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	cbz	w27, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	cmn	w27, #1
	b.ne	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w21, #61
	b.ne	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	w27, #0
	b	LBB0_8
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=2
	and	w0, w25, #0xff
	mov	w27, #-1
	cmp	w0, #13
	b.ne	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w21, #10
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	w25, #13
	b	LBB0_8
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=2
	strb	w21, [x28], #1
	mov	w27, #-1
	b	LBB0_8
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=2
	bl	_hex_digit
	mov	x22, x0
	mov	x0, x21
	bl	_hex_digit
	cmn	w0, #1
	ccmp	w22, w27, #4, ne
	orr	w8, w0, w22, lsl #4
	csel	w8, w8, w26, ne
	strb	w8, [x28], #1
	b	LBB0_8
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x28, x24
	b.ls	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #24]
	sub	w2, w28, w24
	add	x1, sp, #32
	mov	x3, #0
	bl	_IStream_Write
	mov	x21, x0
	bl	_FAILED
	cbnz	x0, LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #32
	add	x3, sp, #20
	mov	x0, x20
	mov	w2, #1024
	bl	_IStream_Read
	mov	x21, x0
	bl	_FAILED
	cbnz	x0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #20]
	cbnz	w8, LBB0_5
LBB0_23:
	mov	x0, x21
	bl	_SUCCEEDED
	cbz	x0, LBB0_25
; %bb.24:
	ldr	x0, [sp, #24]
Lloh9:
	adrp	x8, _STREAM_SEEK_SET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STREAM_SEEK_SET@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x1, #0
	mov	x3, #0
	bl	_IStream_Seek
	mov	x21, x0
LBB0_25:
	mov	x0, x21
	bl	_FAILED
	mov	x8, x0
	ldr	x0, [sp, #24]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x8, LBB0_27
; %bb.26:
	bl	_IStream_Release
	b	LBB0_28
LBB0_27:
	str	x0, [x9]
Lloh12:
	adrp	x8, _S_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
LBB0_28:
	ldur	x8, [x29, #-96]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.29:
	mov	x0, x21
	add	sp, sp, #1072
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_STREAM_SEEK_SET,4,2            ; @STREAM_SEEK_SET
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_decode_qp
.subsections_via_symbols
