	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_content_type
_handle_content_type:                   ## @handle_content_type
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$8, %edi
	callq	_xmalloc
	movq	%rax, %r14
	movl	4(%r15), %esi
	movq	%rax, %rdi
	callq	_strbuf_init
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_has_attr_value
	movq	%rax, 40(%rbx)
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	callq	_has_attr_value
	movq	%rax, 32(%rbx)
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	callq	_slurp_attr
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2, %ecx
	callq	_strbuf_insert
	movq	16(%rbx), %rax
	addq	$8, %rax
	movq	%rax, 16(%rbx)
	movq	_MAX_BOUNDARIES@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	shlq	$3, %rcx
	addq	24(%rbx), %rcx
	cmpq	%rcx, %rax
	jae	LBB0_2
## %bb.3:
	movq	%r14, (%rax)
	movl	(%r15), %edi
	addq	$4, %rbx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_slurp_attr                     ## TAILCALL
LBB0_4:
	movl	(%r15), %edi
	addq	$4, %rbx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdx
	callq	_slurp_attr
	testq	%r14, %r14
	je	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	callq	_strbuf_release
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_2:
	leaq	L_.str.6(%rip), %rdi
	callq	_error
	movl	$-1, (%rbx)
	movq	24(%rbx), %rax
	movq	(%r12), %rcx
	leaq	(%rax,%rcx,8), %rax
	addq	$-8, %rax
	movq	%rax, 16(%rbx)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"format="

L_.str.1:                               ## @.str.1
	.asciz	"flowed"

L_.str.2:                               ## @.str.2
	.asciz	"delsp="

L_.str.3:                               ## @.str.3
	.asciz	"yes"

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

L_.str.5:                               ## @.str.5
	.asciz	"--"

	.comm	_MAX_BOUNDARIES,8,3             ## @MAX_BOUNDARIES
L_.str.6:                               ## @.str.6
	.asciz	"Too many boundaries to handle"

L_.str.7:                               ## @.str.7
	.asciz	"charset="

	.no_dead_strip	_handle_content_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_content_type
_handle_content_type:                   ; @handle_content_type
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	mov	w0, #8
	bl	_xmalloc
	mov	x20, x0
	ldr	w1, [x21, #4]
	bl	_strbuf_init
	ldr	w0, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_has_attr_value
	str	x0, [x19, #40]
	ldr	w0, [x21]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_has_attr_value
	str	x0, [x19, #32]
	ldr	w0, [x21]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x20
	bl	_slurp_attr
	cbz	x0, LBB0_3
; %bb.1:
Lloh10:
	adrp	x2, l_.str.5@PAGE
Lloh11:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	mov	w3, #2
	bl	_strbuf_insert
	ldp	x8, x9, [x19, #16]
	add	x8, x8, #8
	str	x8, [x19, #16]
Lloh12:
	adrp	x22, _MAX_BOUNDARIES@GOTPAGE
Lloh13:
	ldr	x22, [x22, _MAX_BOUNDARIES@GOTPAGEOFF]
	ldr	x10, [x22]
	add	x9, x9, x10, lsl #3
	cmp	x8, x9
	b.hs	LBB0_5
; %bb.2:
	str	x20, [x8]
	ldr	w0, [x21]
	add	x2, x19, #4
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_slurp_attr
LBB0_3:
	ldr	w0, [x21]
	add	x2, x19, #4
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_slurp_attr
	cbz	x20, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_strbuf_release
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_free
LBB0_5:
Lloh18:
	adrp	x0, l_.str.6@PAGE
Lloh19:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_error
	mov	w8, #-1
	str	w8, [x19]
	ldr	x8, [x19, #24]
	ldr	x9, [x22]
	add	x8, x8, x9, lsl #3
	sub	x8, x8, #8
	str	x8, [x19, #16]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"format="

l_.str.1:                               ; @.str.1
	.asciz	"flowed"

l_.str.2:                               ; @.str.2
	.asciz	"delsp="

l_.str.3:                               ; @.str.3
	.asciz	"yes"

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

l_.str.5:                               ; @.str.5
	.asciz	"--"

	.comm	_MAX_BOUNDARIES,8,3             ; @MAX_BOUNDARIES
l_.str.6:                               ; @.str.6
	.asciz	"Too many boundaries to handle"

l_.str.7:                               ; @.str.7
	.asciz	"charset="

	.no_dead_strip	_handle_content_type
.subsections_via_symbols
