	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_rfc2047
_add_rfc2047:                           ## @add_rfc2047
	.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
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rsi, -80(%rbp)
	movq	%rdx, -72(%rbp)
	callq	_last_line_length
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%r14,2), %rbx
	movq	%r15, %rdi
	callq	_strlen
	cltq
	leaq	(%rax,%rbx), %rsi
	addq	$100, %rsi
	movq	%r12, %rdi
	callq	_strbuf_grow
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_strbuf_addf
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	testq	%r14, %r14
	je	LBB0_13
## %bb.1:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%rax), %ebx
	addl	$5, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	leaq	-80(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_mbs_chrlen
	movl	%eax, %r15d
	cmpl	$1, %eax
	jg	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%r13), %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_is_rfc2047_special
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r15,%r15,2), %eax
	leaq	L_.str.1(%rip), %r14
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	addl	%ebx, %eax
	cmpl	$75, %eax
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_strbuf_addf
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %ebx
	addl	$6, %ebx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r13,%rbx), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_strbuf_addf
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -72(%rbp)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addl	-88(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	-80(%rbp), %r13
	jmp	LBB0_2
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %eax
	leaq	L_.str.2(%rip), %r14
	jmp	LBB0_6
LBB0_13:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_strbuf_addstr
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"=?%s?q?"

L_.str.1:                               ## @.str.1
	.asciz	"=%02X"

L_.str.2:                               ## @.str.2
	.asciz	"%c"

L_.str.3:                               ## @.str.3
	.asciz	"?=\n =?%s?q?"

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

	.no_dead_strip	_add_rfc2047
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_rfc2047
_add_rfc2047:                           ; @add_rfc2047
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x21, x3
	mov	x24, x2
	mov	x22, x1
	mov	x20, x0
	stp	x2, x1, [sp, #16]
	bl	_last_line_length
	mov	x23, x0
	add	x25, x24, x24, lsl #1
	mov	x0, x21
	bl	_strlen
	add	x8, x25, w0, sxtw
	add	x1, x8, #100
	mov	x0, x20
	bl	_strbuf_grow
	str	x21, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strbuf_addf
	mov	x0, x21
	bl	_strlen
	cbz	x24, LBB0_13
; %bb.1:
	add	w8, w23, w0
	add	w28, w8, #5
Lloh2:
	adrp	x26, l_.str.1@PAGE
Lloh3:
	add	x26, x26, l_.str.1@PAGEOFF
Lloh4:
	adrp	x23, l_.str.3@PAGE
Lloh5:
	add	x23, x23, l_.str.3@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	add	x0, sp, #24
	add	x1, sp, #16
	mov	x2, x21
	bl	_mbs_chrlen
	mov	x25, x0
	cmp	w0, #1
	b.gt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w0, [x22]
	mov	x1, x19
	bl	_is_rfc2047_special
	cbz	x0, LBB0_12
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w27, w25, w25, lsl #1
	mov	x24, x26
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w27, w28
	cmp	w8, #75
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x21, [sp]
	mov	x0, x20
	mov	x1, x23
	bl	_strbuf_addf
	mov	x0, x21
	bl	_strlen
	add	w28, w0, #6
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, #1
	b.lt	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w25, w25
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x22], #1
	str	x8, [sp]
	mov	x0, x20
	mov	x1, x24
	bl	_strbuf_addf
	subs	x25, x25, #1
	b.ne	LBB0_9
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w28, w28, w27
	ldr	x22, [sp, #24]
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w27, #1
Lloh6:
	adrp	x24, l_.str.2@PAGE
Lloh7:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_13:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strbuf_addstr
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"=?%s?q?"

l_.str.1:                               ; @.str.1
	.asciz	"=%02X"

l_.str.2:                               ; @.str.2
	.asciz	"%c"

l_.str.3:                               ; @.str.3
	.asciz	"?=\n =?%s?q?"

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

	.no_dead_strip	_add_rfc2047
.subsections_via_symbols
