	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_content_type
_get_content_type:                      ## @get_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	%ebx, -52(%rbp)
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	cmpl	$0, (%r12)
	je	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_CLSIDFromString
	movq	_S_OK@GOTPCREL(%rip), %r13
	movq	_IsGUID@GOTPCREL(%rip), %rbx
	cmpq	(%r13), %rax
	je	LBB0_11
## %bb.4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_CLSIDFromProgID
	cmpq	(%r13), %rax
	je	LBB0_11
## %bb.5:
	movq	%r12, %rdi
	callq	_PathIsURLW
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_URL_APPLY_GUESSSCHEME@GOTPCREL(%rip), %rax
	movq	_URL_APPLY_GUESSFILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	-52(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_UrlApplySchemeW
	cmpq	(%r13), %rax
	jne	LBB0_8
LBB0_7:
	movq	_CLSID_WebBrowser@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_IsURL@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_2:
	movq	%r12, %rdi
	callq	_wine_dbgstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_WARN
	movq	_IsEmpty@GOTPCREL(%rip), %rbx
LBB0_11:
	movl	(%rbx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	_get_content_type.mshtml_prefixW(%rip), %rsi
	movq	%r12, %rdi
	movl	$7, %edx
	callq	__wcsnicmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_IsUnknown@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	callq	_FIXME
	movq	_CLSID_WebBrowser@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_IsHTML@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_get_content_type.mshtml_prefixW:       ## @get_content_type.mshtml_prefixW
	.asciz	"mshtml:"

	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name %s\n"

	.comm	_IsEmpty,4,2                    ## @IsEmpty
	.comm	_S_OK,8,3                       ## @S_OK
	.comm	_IsGUID,4,2                     ## @IsGUID
	.comm	_URL_APPLY_GUESSSCHEME,4,2      ## @URL_APPLY_GUESSSCHEME
	.comm	_URL_APPLY_GUESSFILE,4,2        ## @URL_APPLY_GUESSFILE
	.comm	_CLSID_WebBrowser,4,2           ## @CLSID_WebBrowser
	.comm	_IsURL,4,2                      ## @IsURL
L_.str.1:                               ## @.str.1
	.asciz	"mshtml prefix not implemented\n"

	.comm	_IsHTML,4,2                     ## @IsHTML
	.comm	_IsUnknown,4,2                  ## @IsUnknown
	.no_dead_strip	_get_content_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_content_type
_get_content_type:                      ; @get_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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x21, x9, x10
	mov	sp, x21
	stur	w8, [x29, #-44]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x20]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_CLSIDFromString
Lloh8:
	adrp	x22, _S_OK@GOTPAGE
Lloh9:
	ldr	x22, [x22, _S_OK@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_CLSIDFromProgID
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_4:
Lloh10:
	adrp	x8, _IsGUID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IsGUID@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_wine_dbgstr_w
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
Lloh14:
	adrp	x8, _IsEmpty@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IsEmpty@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldur	x8, [x29, #-40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.7:
	sub	sp, x29, #32
	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_8:
	mov	x0, x20
	bl	_PathIsURLW
	cbnz	x0, LBB0_10
; %bb.9:
Lloh19:
	adrp	x8, _URL_APPLY_GUESSSCHEME@GOTPAGE
Lloh20:
	ldr	x8, [x8, _URL_APPLY_GUESSSCHEME@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _URL_APPLY_GUESSFILE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _URL_APPLY_GUESSFILE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w3, w9, w8
	sub	x2, x29, #44
	mov	x0, x20
	mov	x1, x21
	bl	_UrlApplySchemeW
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_11
LBB0_10:
Lloh25:
	adrp	x8, _CLSID_WebBrowser@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CLSID_WebBrowser@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh28:
	adrp	x8, _IsURL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IsURL@GOTPAGEOFF]
	b	LBB0_6
LBB0_11:
Lloh30:
	adrp	x1, _get_content_type.mshtml_prefixW@PAGE
Lloh31:
	add	x1, x1, _get_content_type.mshtml_prefixW@PAGEOFF
	mov	x0, x20
	mov	w2, #7
	bl	__wcsnicmp
	cbz	w0, LBB0_13
; %bb.12:
Lloh32:
	adrp	x8, _IsUnknown@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IsUnknown@GOTPAGEOFF]
	b	LBB0_6
LBB0_13:
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
Lloh36:
	adrp	x8, _CLSID_WebBrowser@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CLSID_WebBrowser@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh39:
	adrp	x8, _IsHTML@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IsHTML@GOTPAGEOFF]
	b	LBB0_6
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_get_content_type.mshtml_prefixW:       ; @get_content_type.mshtml_prefixW
	.asciz	"mshtml:"

	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name %s\n"

	.comm	_IsEmpty,4,2                    ; @IsEmpty
	.comm	_S_OK,8,3                       ; @S_OK
	.comm	_IsGUID,4,2                     ; @IsGUID
	.comm	_URL_APPLY_GUESSSCHEME,4,2      ; @URL_APPLY_GUESSSCHEME
	.comm	_URL_APPLY_GUESSFILE,4,2        ; @URL_APPLY_GUESSFILE
	.comm	_CLSID_WebBrowser,4,2           ; @CLSID_WebBrowser
	.comm	_IsURL,4,2                      ; @IsURL
l_.str.1:                               ; @.str.1
	.asciz	"mshtml prefix not implemented\n"

	.comm	_IsHTML,4,2                     ; @IsHTML
	.comm	_IsUnknown,4,2                  ; @IsUnknown
	.no_dead_strip	_get_content_type
.subsections_via_symbols
