	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_header
_decode_header:                         ## @decode_header
	.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	$88, %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, -88(%rbp)                 ## 8-byte Spill
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	(%rsi), %r15
	cmpl	$0, 8(%rsi)
	js	LBB0_24
## %bb.1:
	movq	%r13, -120(%rbp)                ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_24
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	leaq	-80(%rbp), %rdi
	callq	_strbuf_reset
	leaq	-64(%rbp), %rdi
	callq	_strbuf_reset
	cmpq	%r12, %r15
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rbx
	jae	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %r14
	subq	%r15, %r14
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%rbx), %edi
	callq	_isspace
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%rbx
	decq	%r14
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rbx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r12, %rbx
	je	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edx
	subl	%r15d, %edx
	leaq	-112(%rbp), %rdi
	movq	%r15, %rsi
	callq	_strbuf_add
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r13), %r15
	je	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$2, %r12
	movq	(%r13), %r15
	movq	%r12, %rax
	subq	%r15, %rax
	movslq	8(%r13), %rbx
	cmpq	%rbx, %rax
	jge	LBB0_25
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	$63, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_25
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	leaq	3(%rax), %r13
	movq	%r13, %rax
	subq	%r15, %rax
	cmpq	%rbx, %rax
	jg	LBB0_25
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edx
	subl	%r12d, %edx
	leaq	-80(%rbp), %rdi
	movq	%r12, %rsi
	callq	_strbuf_add
	movsbl	1(%r14), %ebx
	testl	%ebx, %ebx
	je	LBB0_25
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$63, 2(%r14)
	jne	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	movl	%r15d, %edx
	subl	%r14d, %edx
	addl	$-3, %edx
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strbuf_add
	movl	%ebx, %edi
	callq	_tolower
	cmpl	$113, %eax
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$98, %eax
	jne	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	-64(%rbp), %rdi
	callq	_decode_b_segment
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_decode_q_segment
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	-80(%rbp), %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_convert_to_utf8
	testq	%rax, %rax
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	-112(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_strbuf_addbuf
	movq	%rbx, %rdi
	callq	_strbuf_release
	movq	%rbx, %rdi
	callq	_free
	addq	$2, %r15
	movq	%r15, %rax
	movq	-120(%rbp), %r13                ## 8-byte Reload
	subq	(%r13), %rax
	movslq	8(%r13), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_2
LBB0_24:
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strbuf_addstr
	movq	%r13, %rdi
	callq	_strbuf_reset
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_strbuf_addbuf
	movq	%rbx, %rdi
	callq	_strbuf_release
	leaq	-80(%rbp), %rdi
	callq	_strbuf_release
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	jmp	LBB0_26
LBB0_25:
	leaq	-112(%rbp), %rdi
	callq	_strbuf_release
	leaq	-80(%rbp), %rdi
	callq	_strbuf_release
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	$-1, (%rax)
LBB0_26:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"=?"

L_.str.1:                               ## @.str.1
	.asciz	"?="

	.no_dead_strip	_decode_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_header
_decode_header:                         ; @decode_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	stp	q0, q0, [sp, #16]
	str	q0, [sp]
	ldr	x23, [x1]
	ldr	w8, [x1, #8]
	tbnz	w8, #31, LBB0_24
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
Lloh5:
	adrp	x22, l_.str.1@PAGE
Lloh6:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x23
	mov	x1, x21
	bl	_strstr
	cbz	x0, LBB0_24
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
	add	x0, sp, #16
	bl	_strbuf_reset
	mov	x0, sp
	bl	_strbuf_reset
	cmp	x23, x24
	b.eq	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x23
	b.hs	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x26, x24, x23
	mov	x25, x23
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x25]
	bl	_isspace
	cbz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x25, x25, #1
	subs	x26, x26, #1
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x24
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	x25, x24
	b.eq	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w2, w24, w23
	add	x0, sp, #32
	mov	x1, x23
	bl	_strbuf_add
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	cmp	x23, x8
	b.eq	LBB0_10
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x24, #2
	ldr	x26, [x19]
	ldrsw	x27, [x19, #8]
	sub	x8, x23, x26
	cmp	x8, x27
	b.ge	LBB0_25
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	mov	w1, #63
	bl	_strchr
	cbz	x0, LBB0_25
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
	add	x25, x0, #3
	sub	x8, x25, x26
	cmp	x8, x27
	b.gt	LBB0_25
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	w2, w24, w23
	add	x0, sp, #16
	mov	x1, x23
	bl	_strbuf_add
	ldrsb	w26, [x24, #1]
	cbz	w26, LBB0_25
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x24, #2]
	cmp	w8, #63
	b.ne	LBB0_25
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
	mov	x1, x22
	bl	_strstr
	cbz	x0, LBB0_25
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x0
	sub	w8, w23, w24
	sub	w2, w8, #3
	mov	x0, sp
	mov	x1, x25
	bl	_strbuf_add
	mov	x0, x26
	bl	_tolower
	cmp	w0, #113
	b.eq	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #98
	b.ne	LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, sp
	bl	_decode_b_segment
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, sp
	mov	w1, #1
	bl	_decode_q_segment
LBB0_22:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
	ldr	x2, [sp, #16]
	mov	x0, x20
	mov	x1, x24
	bl	_convert_to_utf8
	cbnz	x0, LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #32
	mov	x1, x24
	bl	_strbuf_addbuf
	mov	x0, x24
	bl	_strbuf_release
	mov	x0, x24
	bl	_free
	add	x23, x23, #2
	ldr	x8, [x19]
	ldrsw	x9, [x19, #8]
	sub	x8, x23, x8
	cmp	x8, x9
	b.le	LBB0_2
LBB0_24:
	add	x0, sp, #32
	mov	x1, x23
	bl	_strbuf_addstr
	mov	x0, x19
	bl	_strbuf_reset
	add	x1, sp, #32
	mov	x0, x19
	bl	_strbuf_addbuf
	add	x0, sp, #32
	bl	_strbuf_release
	add	x0, sp, #16
	bl	_strbuf_release
	mov	x0, sp
	bl	_strbuf_release
	b	LBB0_26
LBB0_25:
	add	x0, sp, #32
	bl	_strbuf_release
	add	x0, sp, #16
	bl	_strbuf_release
	mov	x0, sp
	bl	_strbuf_release
	mov	w8, #-1
	str	w8, [x20]
LBB0_26:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"=?"

l_.str.1:                               ; @.str.1
	.asciz	"?="

	.no_dead_strip	_decode_header
.subsections_via_symbols
