	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function on_mime_message_available
_on_mime_message_available:             ## @on_mime_message_available
	.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
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	$0, -64(%rbp)
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_IMimeMessage_FindFirst
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	%r14, %rdi
LBB0_2:
	movq	%rbx, %rsi
LBB0_3:
	callq	_report_result
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%r14)
	je	LBB0_11
## %bb.5:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	-80(%rbp), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	testl	%r12d, %r12d
	movl	$0, %r12d
	jne	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_IMimeMessage_FindNext
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_VT_LPWSTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rdx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_IMimeMessage_GetBodyProp
	movq	%rax, %rbx
	movq	_MIME_E_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movl	-80(%rbp), %esi
	callq	_lstrcmpW
	xorl	%r12d, %r12d
	testl	%eax, %eax
	sete	%r12b
	movq	%r14, %rdi
	callq	_PropVariantClear
	jmp	LBB0_6
LBB0_11:
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_IMimeMessage_FindNext
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_WARN
	movq	%rbx, %rdi
	movq	%r14, %rsi
	jmp	LBB0_3
LBB0_13:
	movl	-44(%rbp), %esi
	movq	_IID_IMimeBody@GOTPCREL(%rip), %rdx
	leaq	-88(%rbp), %rcx
	movq	%r13, %rdi
	callq	_IMimeMessage_BindToObject
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_16
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_2
LBB0_15:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_WARN
	movq	%rbx, %rdi
	movq	%r15, %rsi
	jmp	LBB0_3
LBB0_16:
	movq	_VT_LPWSTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movq	-88(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-80(%rbp), %rcx
	xorl	%edx, %edx
	callq	_IMimeBody_GetProp
	movq	%rax, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_18
## %bb.17:
	movl	(%r14), %edi
	movq	_BINDSTATUS_MIMETYPEAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-80(%rbp), %edx
	callq	_IInternetProtocolSink_ReportProgress
	leaq	-80(%rbp), %rdi
	callq	_PropVariantClear
LBB0_18:
	movq	-88(%rbp), %rdi
	movq	_IET_DECODED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	4(%r14), %rdx
	callq	_IMimeBody_GetData
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_1
## %bb.19:
	movq	_BSCF_FIRSTDATANOTIFICATION@GOTPCREL(%rip), %rax
	movq	_BSCF_INTERMEDIATEDATANOTIFICATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_BSCF_LASTDATANOTIFICATION@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_BSCF_DATAFULLYAVAILABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%r14), %edi
	movq	_BSCF_AVAILABLEDATASIZEUNKNOWN@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_IInternetProtocolSink_ReportData
	movq	_S_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"location %s not found\n"

	.comm	_VT_LPWSTR,8,3                  ## @VT_LPWSTR
L_.str.1:                               ## @.str.1
	.asciz	"content-location"

	.comm	_MIME_E_NOT_FOUND,8,3           ## @MIME_E_NOT_FOUND
	.comm	_IID_IMimeBody,4,2              ## @IID_IMimeBody
L_.str.2:                               ## @.str.2
	.asciz	"content-type"

	.comm	_BINDSTATUS_MIMETYPEAVAILABLE,4,2 ## @BINDSTATUS_MIMETYPEAVAILABLE
	.comm	_IET_DECODED,4,2                ## @IET_DECODED
	.comm	_BSCF_FIRSTDATANOTIFICATION,4,2 ## @BSCF_FIRSTDATANOTIFICATION
	.comm	_BSCF_INTERMEDIATEDATANOTIFICATION,4,2 ## @BSCF_INTERMEDIATEDATANOTIFICATION
	.comm	_BSCF_LASTDATANOTIFICATION,4,2  ## @BSCF_LASTDATANOTIFICATION
	.comm	_BSCF_DATAFULLYAVAILABLE,4,2    ## @BSCF_DATAFULLYAVAILABLE
	.comm	_BSCF_AVAILABLEDATASIZEUNKNOWN,4,2 ## @BSCF_AVAILABLEDATASIZEUNKNOWN
	.comm	_S_OK,8,3                       ## @S_OK
	.no_dead_strip	_on_mime_message_available
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function on_mime_message_available
_on_mime_message_available:             ; @on_mime_message_available
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #40]
	add	x1, sp, #40
	add	x2, sp, #12
	mov	x0, x20
	bl	_IMimeMessage_FindFirst
	mov	x21, x0
	bl	_FAILED
	cbz	x0, LBB0_3
LBB0_1:
	mov	x0, x19
	mov	x1, x21
LBB0_2:
	bl	_report_result
	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
	add	sp, sp, #128
	ret
LBB0_3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.4:
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x23, _VT_LPWSTR@GOTPAGE
Lloh4:
	ldr	x23, [x23, _VT_LPWSTR@GOTPAGEOFF]
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh7:
	adrp	x24, _MIME_E_NOT_FOUND@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MIME_E_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, x25
	mov	w25, #0
	cbnz	w8, LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #40
	add	x2, sp, #12
	mov	x0, x20
	bl	_IMimeMessage_FindNext
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23]
	str	x8, [sp, #24]
	ldr	w1, [sp, #12]
	add	x4, sp, #16
	mov	x0, x20
	mov	x2, x21
	mov	w3, #0
	bl	_IMimeMessage_GetBodyProp
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x19, #8]
	ldr	w1, [sp, #16]
	bl	_lstrcmpW
	cmp	w0, #0
	cset	w25, eq
	add	x0, sp, #16
	bl	_PropVariantClear
	b	LBB0_5
LBB0_10:
	add	x1, sp, #40
	add	x2, sp, #12
	mov	x0, x20
	bl	_IMimeMessage_FindNext
	mov	x21, x0
	bl	_FAILED
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x0, [x19, #8]
	bl	_debugstr_w
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	b	LBB0_1
LBB0_12:
	ldr	w1, [sp, #12]
Lloh11:
	adrp	x2, _IID_IMimeBody@GOTPAGE
Lloh12:
	ldr	x2, [x2, _IID_IMimeBody@GOTPAGEOFF]
	add	x3, sp, #32
	mov	x0, x20
	bl	_IMimeMessage_BindToObject
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_16
; %bb.13:
Lloh13:
	adrp	x8, _VT_LPWSTR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VT_LPWSTR@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x0, [sp, #32]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x3, sp, #16
	mov	w2, #0
	bl	_IMimeBody_GetProp
	bl	_SUCCEEDED
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w0, [x19]
Lloh18:
	adrp	x8, _BINDSTATUS_MIMETYPEAVAILABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BINDSTATUS_MIMETYPEAVAILABLE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [sp, #16]
	bl	_IInternetProtocolSink_ReportProgress
	add	x0, sp, #16
	bl	_PropVariantClear
LBB0_15:
	ldr	x0, [sp, #32]
Lloh21:
	adrp	x8, _IET_DECODED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IET_DECODED@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, x19, #4
	bl	_IMimeBody_GetData
	mov	x20, x0
	bl	_FAILED
	cbz	x0, LBB0_19
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	b	LBB0_2
LBB0_17:
	ldr	x0, [x19, #8]
	bl	_debugstr_w
	mov	x1, x0
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
LBB0_18:
	mov	x0, x19
	mov	x1, x22
	b	LBB0_2
LBB0_19:
Lloh26:
	adrp	x8, _BSCF_FIRSTDATANOTIFICATION@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BSCF_FIRSTDATANOTIFICATION@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _BSCF_INTERMEDIATEDATANOTIFICATION@GOTPAGE
Lloh30:
	ldr	x9, [x9, _BSCF_INTERMEDIATEDATANOTIFICATION@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh32:
	adrp	x9, _BSCF_LASTDATANOTIFICATION@GOTPAGE
Lloh33:
	ldr	x9, [x9, _BSCF_LASTDATANOTIFICATION@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh35:
	adrp	x9, _BSCF_DATAFULLYAVAILABLE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _BSCF_DATAFULLYAVAILABLE@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh38:
	adrp	x9, _BSCF_AVAILABLEDATASIZEUNKNOWN@GOTPAGE
Lloh39:
	ldr	x9, [x9, _BSCF_AVAILABLEDATASIZEUNKNOWN@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w2, #0
	mov	w3, #0
	bl	_IInternetProtocolSink_ReportData
Lloh41:
	adrp	x8, _S_OK@GOTPAGE
Lloh42:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh43:
	ldr	x1, [x8]
	mov	x0, x19
	b	LBB0_2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"location %s not found\n"

	.comm	_VT_LPWSTR,8,3                  ; @VT_LPWSTR
l_.str.1:                               ; @.str.1
	.asciz	"content-location"

	.comm	_MIME_E_NOT_FOUND,8,3           ; @MIME_E_NOT_FOUND
	.comm	_IID_IMimeBody,4,2              ; @IID_IMimeBody
l_.str.2:                               ; @.str.2
	.asciz	"content-type"

	.comm	_BINDSTATUS_MIMETYPEAVAILABLE,4,2 ; @BINDSTATUS_MIMETYPEAVAILABLE
	.comm	_IET_DECODED,4,2                ; @IET_DECODED
	.comm	_BSCF_FIRSTDATANOTIFICATION,4,2 ; @BSCF_FIRSTDATANOTIFICATION
	.comm	_BSCF_INTERMEDIATEDATANOTIFICATION,4,2 ; @BSCF_INTERMEDIATEDATANOTIFICATION
	.comm	_BSCF_LASTDATANOTIFICATION,4,2  ; @BSCF_LASTDATANOTIFICATION
	.comm	_BSCF_DATAFULLYAVAILABLE,4,2    ; @BSCF_DATAFULLYAVAILABLE
	.comm	_BSCF_AVAILABLEDATASIZEUNKNOWN,4,2 ; @BSCF_AVAILABLEDATASIZEUNKNOWN
	.comm	_S_OK,8,3                       ; @S_OK
	.no_dead_strip	_on_mime_message_available
.subsections_via_symbols
