	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extract_content_type
_extract_content_type:                  ## @extract_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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_strbuf_reset
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_strbuf_grow
	movq	(%rbx), %rbx
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_7
## %bb.1:
	incq	%rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-1(%rbx), %eax
	cmpb	$59, %al
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movsbl	%al, %edi
	callq	_tolower
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_strbuf_addch
	jmp	LBB0_5
LBB0_6:
	decq	%rbx
LBB0_7:
	testq	%r14, %r14
	je	LBB0_21
## %bb.8:
	movq	%r14, %rdi
	callq	_strbuf_reset
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_19
## %bb.9:
	leaq	L_.str(%rip), %r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movb	1(%rbx), %al
	incq	%rbx
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpb	$59, (%rbx)
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_extract_param
	testl	%eax, %eax
	je	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_19
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_16
	jmp	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movb	(%rbx), %al
	testb	%al, %al
	jne	LBB0_10
LBB0_19:
	cmpl	$0, 8(%r14)
	je	LBB0_20
LBB0_21:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strbuf_addstr                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"charset"

L_.str.1:                               ## @.str.1
	.asciz	"text/"

L_.str.2:                               ## @.str.2
	.asciz	"ISO-8859-1"

	.no_dead_strip	_extract_content_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_content_type
_extract_content_type:                  ; @extract_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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_strbuf_reset
	ldr	w1, [x21, #8]
	mov	x0, x20
	bl	_strbuf_grow
	ldr	x21, [x21]
	ldrb	w8, [x21]
	cbz	w8, LBB0_6
; %bb.1:
	add	x21, x21, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtb	w0, w8
	bl	_tolower
	mov	x1, x0
	mov	x0, x20
	bl	_strbuf_addch
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x21], #1
	cbz	w8, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isspace
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldurb	w8, [x21, #-1]
	cmp	w8, #59
	b.ne	LBB0_2
LBB0_6:
	cbnz	x19, LBB0_8
	b	LBB0_19
LBB0_7:
	sub	x21, x21, #1
	cbz	x19, LBB0_19
LBB0_8:
	mov	x0, x19
	bl	_strbuf_reset
	ldrb	w8, [x21]
	cbz	w8, LBB0_18
; %bb.9:
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldrb	w8, [x21, #1]!
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	sxtb	w0, w8
	bl	_isspace
	cbnz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldrb	w8, [x21]
	cmp	w8, #59
	b.eq	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_extract_param
	cbz	w0, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldrb	w8, [x21]
	cbz	w8, LBB0_18
LBB0_15:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_isspace
	cbnz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldrb	w8, [x21, #1]!
	cbnz	w8, LBB0_15
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	ldrb	w8, [x21]
	cbnz	w8, LBB0_11
LBB0_18:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_20
LBB0_19:
	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
LBB0_20:
	ldr	x0, [x20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_starts_with
	cbz	x0, LBB0_19
; %bb.21:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	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	_strbuf_addstr
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"charset"

l_.str.1:                               ; @.str.1
	.asciz	"text/"

l_.str.2:                               ; @.str.2
	.asciz	"ISO-8859-1"

	.no_dead_strip	_extract_content_type
.subsections_via_symbols
