	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MimeMessage_create             ## -- Begin function MimeMessage_create
	.p2align	4, 0x90
_MimeMessage_create:                    ## @MimeMessage_create
	.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, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_TRACE
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_FIXME
	movq	_E_NOTIMPL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	$0, (%r14)
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	leaq	8(%rax), %r12
	movq	_MimeMessageVtbl@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movl	$1, (%rbx)
	movq	$0, 24(%rbx)
	movq	%rbx, %r15
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_list_init
	movl	$1, 4(%rbx)
	xorl	%eax, %eax
	callq	_mimebody_create
	movl	4(%rbx), %esi
	leal	1(%rsi), %ecx
	movl	%ecx, 4(%rbx)
	movq	%rax, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	_new_body_entry
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_list_add_head
	movq	%r12, (%r14)
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%p, %p)\n"

L_.str.1:                               ## @.str.1
	.asciz	"outer unknown not supported yet\n"

	.comm	_E_NOTIMPL,4,2                  ## @E_NOTIMPL
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_MimeMessageVtbl,4,2            ## @MimeMessageVtbl
	.comm	_S_OK,4,2                       ## @S_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MimeMessage_create             ; -- Begin function MimeMessage_create
	.p2align	2
_MimeMessage_create:                    ; @MimeMessage_create
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_TRACE
	cbz	x20, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
Lloh4:
	adrp	x8, _E_NOTIMPL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _E_NOTIMPL@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	str	xzr, [x19]
	bl	_GetProcessHeap
	mov	w1, #0
	mov	w2, #32
	bl	_HeapAlloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh6:
	adrp	x8, _MimeMessageVtbl@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MimeMessageVtbl@GOTPAGEOFF]
	mov	x22, x0
	str	x8, [x22, #8]!
	mov	w23, #1
	str	w23, [x0]
	str	xzr, [x0, #24]
	add	x21, x0, #16
	mov	x0, x21
	bl	_list_init
	str	w23, [x20, #4]
	bl	_mimebody_create
	ldr	w1, [x20, #4]
	add	w8, w1, #1
	str	w8, [x20, #4]
	mov	x2, #0
	bl	_new_body_entry
	mov	x1, x0
	mov	x0, x21
	bl	_list_add_head
	str	x22, [x19]
Lloh8:
	adrp	x8, _S_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%p, %p)\n"

l_.str.1:                               ; @.str.1
	.asciz	"outer unknown not supported yet\n"

	.comm	_E_NOTIMPL,4,2                  ; @E_NOTIMPL
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_MimeMessageVtbl,4,2            ; @MimeMessageVtbl
	.comm	_S_OK,4,2                       ; @S_OK
.subsections_via_symbols
