	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HLPFILE_RtfAddTransparentBitmap
_HLPFILE_RtfAddTransparentBitmap:       ## @HLPFILE_RtfAddTransparentBitmap
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	callq	_GetDC
	movl	%eax, %ebx
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_CBM_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DIB_RGB_COLORS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	_CreateDIBitmap
	movl	%eax, %r12d
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_CreateCompatibleDC
	movl	%eax, %r15d
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_SelectObject
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_CreateCompatibleDC
	movl	%eax, %r12d
	movl	(%r14), %esi
	movl	4(%r14), %edi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_CreateBitmap
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_SelectObject
	movl	%eax, %ebx
	movq	8(%r14), %rax
	decl	%r13d
	leaq	(,%r13,2), %rcx
	addq	%r13, %rcx
	movl	(%rax,%rcx,4), %edi
	movl	4(%rax,%rcx,4), %esi
	movl	8(%rax,%rcx,4), %edx
	callq	_RGB
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_SetBkColor
	movl	(%r14), %r8d
	movl	4(%r14), %ecx
	movq	_SRCCOPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	%r12d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r15d, %r9d
	pushq	%rax
	pushq	$0
	pushq	$0
	callq	_BitBlt
	addq	$32, %rsp
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_RGB
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_SetBkColor
	movl	$255, %edi
	movl	$255, %esi
	movl	$255, %edx
	callq	_RGB
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_SetTextColor
	movl	(%r14), %r8d
	movl	4(%r14), %ecx
	movq	_SRCAND@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	subq	$8, %rsp
	movl	%r15d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r12d, %r9d
	pushq	%rax
	pushq	$0
	pushq	$0
	callq	_BitBlt
	addq	$32, %rsp
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_SelectObject
	movl	%r12d, %edi
	callq	_DeleteDC
	movl	%r15d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_SelectObject
	movl	%r15d, %edi
	callq	_DeleteDC
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_CreateEnhMetaFileW
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_CreateCompatibleDC
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	callq	_SelectObject
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$255, %edi
	movl	$255, %esi
	movl	$255, %edx
	callq	_RGB
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_SetBkColor
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_RGB
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_SetTextColor
	movl	(%r14), %r8d
	movl	4(%r14), %ecx
	movl	(%r13), %eax
	subq	$8, %rsp
	movl	%r15d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%ebx, %r9d
	pushq	%rax
	pushq	$0
	pushq	$0
	callq	_BitBlt
	addq	$32, %rsp
	movl	%ebx, %edi
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	callq	_SelectObject
	movl	(%r14), %r8d
	movl	4(%r14), %ecx
	movq	_SRCPAINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	%r15d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%ebx, %r9d
	pushq	%rax
	pushq	$0
	pushq	$0
	callq	_BitBlt
	addq	$32, %rsp
	movl	%ebx, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_SelectObject
	movl	%ebx, %edi
	callq	_DeleteDC
	xorl	%edi, %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_ReleaseDC
	movl	%r12d, %edi
	callq	_DeleteObject
	movl	%r13d, %edi
	callq	_DeleteObject
	movl	%r15d, %edi
	callq	_CloseEnhMetaFile
	movl	%eax, %r15d
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_GetEnhMetaFileBits
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r14
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_GetEnhMetaFileBits
	cmpq	%rax, %rbx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jne	LBB0_6
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_HLPFILE_RtfAddControl
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_HLPFILE_RtfAddHexBytes
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_HLPFILE_RtfAddControl
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	%r12b
LBB0_6:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_HeapFree
	jmp	LBB0_9
LBB0_8:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_9:
	movl	%r15d, %edi
	callq	_DeleteEnhMetaFile
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CBM_INIT,4,2                   ## @CBM_INIT
	.comm	_DIB_RGB_COLORS,4,2             ## @DIB_RGB_COLORS
	.comm	_SRCCOPY,4,2                    ## @SRCCOPY
	.comm	_SRCAND,4,2                     ## @SRCAND
	.comm	_SRCPAINT,4,2                   ## @SRCPAINT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"{\\pict\\emfblip"

L_.str.1:                               ## @.str.1
	.asciz	"}"

	.no_dead_strip	_HLPFILE_RtfAddTransparentBitmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HLPFILE_RtfAddTransparentBitmap
_HLPFILE_RtfAddTransparentBitmap:       ; @HLPFILE_RtfAddTransparentBitmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	mov	w0, #0
	bl	_GetDC
	mov	x21, x0
Lloh3:
	adrp	x8, _CBM_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CBM_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _DIB_RGB_COLORS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIB_RGB_COLORS@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	mov	x1, x23
	mov	x3, x22
	mov	x4, x23
	bl	_CreateDIBitmap
	mov	x22, x0
	mov	x0, x21
	bl	_CreateCompatibleDC
	mov	x25, x0
	mov	x1, x22
	bl	_SelectObject
	mov	x26, x0
	mov	x0, x21
	bl	_CreateCompatibleDC
	mov	x27, x0
	ldp	w1, w0, [x23]
	mov	w2, #1
	mov	w3, #1
	mov	x4, #0
	bl	_CreateBitmap
	mov	x24, x0
	mov	x0, x27
	mov	x1, x24
	bl	_SelectObject
	mov	x28, x0
	ldr	x8, [x23, #8]
	sub	w9, w20, #1
	mov	w10, #12
	umaddl	x8, w9, w10, x8
	ldp	w0, w1, [x8]
	ldr	w2, [x8, #8]
	bl	_RGB
	mov	x1, x0
	mov	x0, x25
	bl	_SetBkColor
	ldp	w4, w3, [x23]
Lloh9:
	adrp	x8, _SRCCOPY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SRCCOPY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x27
	mov	w1, #0
	mov	w2, #0
	mov	x5, x25
	mov	w6, #0
	mov	w7, #0
	bl	_BitBlt
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_RGB
	mov	x1, x0
	mov	x0, x25
	bl	_SetBkColor
	mov	w0, #255
	mov	w1, #255
	mov	w2, #255
	bl	_RGB
	mov	x1, x0
	mov	x0, x25
	bl	_SetTextColor
	ldp	w4, w3, [x23]
Lloh12:
	adrp	x20, _SRCAND@GOTPAGE
Lloh13:
	ldr	x20, [x20, _SRCAND@GOTPAGEOFF]
	ldr	w8, [x20]
	str	w8, [sp]
	mov	x0, x25
	mov	w1, #0
	mov	w2, #0
	mov	x5, x27
	mov	w6, #0
	mov	w7, #0
	bl	_BitBlt
	mov	x0, x27
	mov	x1, x28
	bl	_SelectObject
	mov	x0, x27
	bl	_DeleteDC
	mov	x0, x25
	mov	x1, x26
	bl	_SelectObject
	mov	x0, x25
	bl	_DeleteDC
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_CreateEnhMetaFileW
	mov	x25, x0
	bl	_CreateCompatibleDC
	mov	x26, x0
	mov	x1, x24
	bl	_SelectObject
	mov	x27, x0
	mov	w0, #255
	mov	w1, #255
	mov	w2, #255
	bl	_RGB
	mov	x1, x0
	mov	x0, x25
	bl	_SetBkColor
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_RGB
	mov	x1, x0
	mov	x0, x25
	bl	_SetTextColor
	ldp	w4, w3, [x23]
	ldr	w8, [x20]
	str	w8, [sp]
	mov	x0, x25
	mov	w1, #0
	mov	w2, #0
	mov	x5, x26
	mov	w6, #0
	mov	w7, #0
	bl	_BitBlt
	mov	x0, x26
	mov	x1, x22
	bl	_SelectObject
	ldp	w4, w3, [x23]
Lloh14:
	adrp	x8, _SRCPAINT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SRCPAINT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x25
	mov	w1, #0
	mov	w2, #0
	mov	x5, x26
	mov	w6, #0
	mov	w7, #0
	bl	_BitBlt
	mov	x0, x26
	mov	x1, x27
	bl	_SelectObject
	mov	x0, x26
	bl	_DeleteDC
	mov	w0, #0
	mov	x1, x21
	bl	_ReleaseDC
	mov	x0, x24
	bl	_DeleteObject
	mov	x0, x22
	bl	_DeleteObject
	mov	x0, x25
	bl	_CloseEnhMetaFile
	mov	x21, x0
	mov	x1, #0
	mov	x2, #0
	bl	_GetEnhMetaFileBits
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapAlloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_GetEnhMetaFileBits
	cmp	x20, x0
	b.ne	LBB0_7
; %bb.3:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x19
	bl	_HLPFILE_RtfAddControl
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_HLPFILE_RtfAddHexBytes
	cbz	x0, LBB0_6
; %bb.5:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_HLPFILE_RtfAddControl
	cmp	x0, #0
	cset	w19, ne
	b	LBB0_7
LBB0_6:
	mov	w19, #0
LBB0_7:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x22
	bl	_HeapFree
LBB0_8:
	mov	x0, x21
	bl	_DeleteEnhMetaFile
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CBM_INIT,4,2                   ; @CBM_INIT
	.comm	_DIB_RGB_COLORS,4,2             ; @DIB_RGB_COLORS
	.comm	_SRCCOPY,4,2                    ; @SRCCOPY
	.comm	_SRCAND,4,2                     ; @SRCAND
	.comm	_SRCPAINT,4,2                   ; @SRCPAINT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{\\pict\\emfblip"

l_.str.1:                               ; @.str.1
	.asciz	"}"

	.no_dead_strip	_HLPFILE_RtfAddTransparentBitmap
.subsections_via_symbols
