	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_detect_content_type            ## -- Begin function detect_content_type
	.p2align	4, 0x90
_detect_content_type:                   ## @detect_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movb	(%rdi), %al
	cmpb	$36, %al
	jle	LBB0_7
## %bb.1:
	cmpb	$72, %al
	jg	LBB0_15
## %bb.2:
	cmpb	$37, %al
	je	LBB0_22
## %bb.3:
	cmpb	$71, %al
	jne	LBB0_40
## %bb.4:
	cmpl	$5, %ebx
	jl	LBB0_40
## %bb.5:
	incq	%r14
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_40
## %bb.6:
	movq	_ct_gif@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_7:
	cmpb	$-119, %al
	je	LBB0_25
## %bb.8:
	cmpb	$-1, %al
	je	LBB0_28
## %bb.9:
	testb	%al, %al
	jne	LBB0_40
## %bb.10:
	cmpl	$12, %ebx
	jl	LBB0_40
## %bb.11:
	movl	(%r14), %eax
	cmpl	$335544320, %eax                ## imm = 0x14000000
	jne	LBB0_34
## %bb.12:
	cmpl	$1887007846, 4(%r14)            ## imm = 0x70797466
	jne	LBB0_40
## %bb.13:
	cmpl	$538997873, 8(%r14)             ## imm = 0x20207471
	jne	LBB0_36
## %bb.14:
	movq	_ct_mov@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_15:
	cmpb	$73, %al
	je	LBB0_31
## %bb.16:
	cmpb	$82, %al
	jne	LBB0_40
## %bb.17:
	cmpl	$4, %ebx
	jl	LBB0_40
## %bb.18:
	leaq	1(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$3, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_40
## %bb.19:
	cmpl	$12, %ebx
	jb	LBB0_33
## %bb.20:
	addq	$8, %r14
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_33
## %bb.21:
	movq	_ct_webp@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_22:
	cmpl	$4, %ebx
	jl	LBB0_40
## %bb.23:
	incq	%r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_40
## %bb.24:
	movq	_ct_pdf@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_25:
	cmpl	$4, %ebx
	jl	LBB0_40
## %bb.26:
	incq	%r14
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_40
## %bb.27:
	movq	_ct_png@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_28:
	cmpl	$2, %ebx
	jl	LBB0_40
## %bb.29:
	movb	1(%r14), %al
	cmpb	$-40, %al
	jne	LBB0_38
## %bb.30:
	movq	_ct_jpeg@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_31:
	cmpl	$3, %ebx
	jl	LBB0_40
## %bb.32:
	incq	%r14
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_40
	jmp	LBB0_33
LBB0_34:
	testl	$16777215, %eax                 ## imm = 0xFFFFFF
	jne	LBB0_40
## %bb.35:
	cmpl	$1887007846, 4(%r14)            ## imm = 0x70797466
	jne	LBB0_40
LBB0_36:
	movl	$16777215, %eax                 ## imm = 0xFFFFFF
	andl	8(%r14), %eax
	cmpl	$3436653, %eax                  ## imm = 0x34706D
	jne	LBB0_40
## %bb.37:
	movq	_ct_mp4@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_38:
	cmpb	$-33, %al
	jbe	LBB0_40
LBB0_33:
	movq	_ct_mp3@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_40:
	movq	_ct_unknown@GOTPCREL(%rip), %rax
LBB0_41:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ct_mov,4,2                     ## @ct_mov
	.comm	_ct_mp4,4,2                     ## @ct_mp4
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PDF"

	.comm	_ct_pdf,4,2                     ## @ct_pdf
L_.str.1:                               ## @.str.1
	.asciz	"D3"

	.comm	_ct_mp3,4,2                     ## @ct_mp3
L_.str.2:                               ## @.str.2
	.asciz	"IF"

	.comm	_ct_gif,4,2                     ## @ct_gif
L_.str.3:                               ## @.str.3
	.asciz	"IFF"

L_.str.4:                               ## @.str.4
	.asciz	"WEBP"

	.comm	_ct_webp,4,2                    ## @ct_webp
L_.str.5:                               ## @.str.5
	.asciz	"PNG"

	.comm	_ct_png,4,2                     ## @ct_png
	.comm	_ct_jpeg,4,2                    ## @ct_jpeg
	.comm	_ct_unknown,4,2                 ## @ct_unknown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_detect_content_type            ; -- Begin function detect_content_type
	.p2align	2
_detect_content_type:                   ; @detect_content_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldrb	w8, [x0]
	cmp	w8, #72
	b.le	LBB0_8
; %bb.1:
	cmp	w8, #136
	b.gt	LBB0_13
; %bb.2:
	cmp	w8, #73
	b.eq	LBB0_17
; %bb.3:
	cmp	w8, #82
	ccmp	w20, #4, #8, eq
	b.lt	LBB0_36
; %bb.4:
	add	x0, x19, #1
Lloh0:
	adrp	x1, l_.str.3@PAGE
Lloh1:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #3
	bl	_memcmp
	cbnz	w0, LBB0_36
; %bb.5:
	cmp	w20, #12
	b.lo	LBB0_31
; %bb.6:
	add	x0, x19, #8
Lloh2:
	adrp	x1, l_.str.4@PAGE
Lloh3:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #4
	bl	_memcmp
	cbnz	w0, LBB0_31
; %bb.7:
Lloh4:
	adrp	x8, _ct_webp@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ct_webp@GOTPAGEOFF]
	b	LBB0_37
LBB0_8:
	cbz	w8, LBB0_19
; %bb.9:
	cmp	w8, #37
	b.eq	LBB0_24
; %bb.10:
	cmp	w8, #71
	ccmp	w20, #5, #8, eq
	b.lt	LBB0_36
; %bb.11:
	add	x0, x19, #1
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #2
	bl	_memcmp
	cbnz	w0, LBB0_36
; %bb.12:
Lloh8:
	adrp	x8, _ct_gif@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ct_gif@GOTPAGEOFF]
	b	LBB0_37
LBB0_13:
	cmp	w8, #137
	b.eq	LBB0_27
; %bb.14:
	cmp	w8, #255
	ccmp	w20, #2, #8, eq
	b.lt	LBB0_36
; %bb.15:
	ldrb	w8, [x19, #1]
	cmp	w8, #216
	b.ne	LBB0_30
; %bb.16:
Lloh10:
	adrp	x8, _ct_jpeg@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ct_jpeg@GOTPAGEOFF]
	b	LBB0_37
LBB0_17:
	cmp	w20, #3
	b.lt	LBB0_36
; %bb.18:
	add	x0, x19, #1
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #2
	bl	_memcmp
	cbnz	w0, LBB0_36
	b	LBB0_31
LBB0_19:
	cmp	w20, #12
	b.lt	LBB0_36
; %bb.20:
	ldr	w8, [x19]
	mov	w9, #335544320
	cmp	w8, w9
	b.ne	LBB0_32
; %bb.21:
	ldr	w8, [x19, #4]
	mov	w9, #29798
	movk	w9, #28793, lsl #16
	cmp	w8, w9
	b.ne	LBB0_36
; %bb.22:
	ldr	w8, [x19, #8]
	mov	w9, #29809
	movk	w9, #8224, lsl #16
	cmp	w8, w9
	b.ne	LBB0_34
; %bb.23:
Lloh14:
	adrp	x8, _ct_mov@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ct_mov@GOTPAGEOFF]
	b	LBB0_37
LBB0_24:
	cmp	w20, #4
	b.lt	LBB0_36
; %bb.25:
	add	x0, x19, #1
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #3
	bl	_memcmp
	cbnz	w0, LBB0_36
; %bb.26:
Lloh18:
	adrp	x8, _ct_pdf@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ct_pdf@GOTPAGEOFF]
	b	LBB0_37
LBB0_27:
	cmp	w20, #4
	b.lt	LBB0_36
; %bb.28:
	add	x0, x19, #1
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #3
	bl	_memcmp
	cbnz	w0, LBB0_36
; %bb.29:
Lloh22:
	adrp	x8, _ct_png@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ct_png@GOTPAGEOFF]
	b	LBB0_37
LBB0_30:
	cmp	w8, #223
	b.ls	LBB0_36
LBB0_31:
Lloh24:
	adrp	x8, _ct_mp3@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ct_mp3@GOTPAGEOFF]
	b	LBB0_37
LBB0_32:
	tst	w8, #0xffffff
	b.ne	LBB0_36
; %bb.33:
	ldr	w8, [x19, #4]
	mov	w9, #29798
	movk	w9, #28793, lsl #16
	cmp	w8, w9
	b.ne	LBB0_36
LBB0_34:
	ldr	w8, [x19, #8]
	and	w8, w8, #0xffffff
	sub	w8, w8, #839, lsl #12           ; =3436544
	cmp	w8, #109
	b.ne	LBB0_36
; %bb.35:
Lloh26:
	adrp	x8, _ct_mp4@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ct_mp4@GOTPAGEOFF]
	b	LBB0_37
LBB0_36:
Lloh28:
	adrp	x8, _ct_unknown@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ct_unknown@GOTPAGEOFF]
LBB0_37:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ct_mov,4,2                     ; @ct_mov
	.comm	_ct_mp4,4,2                     ; @ct_mp4
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PDF"

	.comm	_ct_pdf,4,2                     ; @ct_pdf
l_.str.1:                               ; @.str.1
	.asciz	"D3"

	.comm	_ct_mp3,4,2                     ; @ct_mp3
l_.str.2:                               ; @.str.2
	.asciz	"IF"

	.comm	_ct_gif,4,2                     ; @ct_gif
l_.str.3:                               ; @.str.3
	.asciz	"IFF"

l_.str.4:                               ; @.str.4
	.asciz	"WEBP"

	.comm	_ct_webp,4,2                    ; @ct_webp
l_.str.5:                               ; @.str.5
	.asciz	"PNG"

	.comm	_ct_png,4,2                     ; @ct_png
	.comm	_ct_jpeg,4,2                    ; @ct_jpeg
	.comm	_ct_unknown,4,2                 ; @ct_unknown
.subsections_via_symbols
