	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HLPFILE_RtfAddGfxByAddr
_HLPFILE_RtfAddGfxByAddr:               ## @HLPFILE_RtfAddGfxByAddr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rdx, %rdi
	movl	$2, %esi
	callq	_GET_USHORT
	movl	%eax, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_GET_USHORT
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_WINE_TRACE
	movq	_TRUE@GOTPCREL(%rip), %r13
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_GET_UINT
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_WINE_TRACE
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_GET_UINT
	cltq
	leaq	(%rbx,%rax,4), %rdx
	movl	(%rbx,%rax,4), %ecx
	movl	4(%rbx,%rax,4), %r8d
	leal	-5(%rcx), %eax
	cmpl	$2, %eax
	jae	LBB0_2
## %bb.8:
	movq	%r15, %rdi
	movq	%r14, %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_HLPFILE_RtfAddBitmap
	cmpl	$1, %r12d
	jne	LBB0_5
	jmp	LBB0_7
LBB0_2:
	cmpl	$8, %ecx
	jne	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r8d, %ecx
	callq	_HLPFILE_RtfAddMetaFile
	cmpl	$1, %r12d
	je	LBB0_7
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_WINE_FIXME
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	movl	%ecx, %esi
	xorl	%eax, %eax
	callq	_WINE_FIXME
	movq	_FALSE@GOTPCREL(%rip), %r13
LBB0_7:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Got picture magic=%04x #=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Offset[%d] = %x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unknown type %u\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.3:                               ## @.str.3
	.asciz	"Supporting only one bitmap format per logical bitmap (for now). Using first format\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_HLPFILE_RtfAddGfxByAddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HLPFILE_RtfAddGfxByAddr
_HLPFILE_RtfAddGfxByAddr:               ; @HLPFILE_RtfAddGfxByAddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	mov	w1, #2
	bl	_GET_USHORT
	mov	x19, x0
	mov	x0, x22
	mov	w1, #0
	bl	_GET_USHORT
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_WINE_TRACE
	cbz	w19, LBB0_4
; %bb.1:
	mov	x0, x22
	mov	w1, #4
	bl	_GET_UINT
	mov	x2, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_WINE_TRACE
	mov	x0, x22
	mov	w1, #4
	bl	_GET_UINT
	add	x2, x22, w0, sxtw #2
	ldp	w3, w4, [x2]
	sub	w8, w3, #5
	cmp	w8, #2
	b.hs	LBB0_6
; %bb.2:
	mov	x0, x21
	mov	x1, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_HLPFILE_RtfAddBitmap
	cmp	w19, #1
	b.eq	LBB0_4
LBB0_3:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_WINE_FIXME
LBB0_4:
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@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
	add	sp, sp, #64
	ret
LBB0_6:
	cmp	w3, #8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x20
	mov	x3, x4
	bl	_HLPFILE_RtfAddMetaFile
	cmp	w19, #1
	b.eq	LBB0_4
	b	LBB0_3
LBB0_8:
	str	x3, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_WINE_FIXME
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Got picture magic=%04x #=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Offset[%d] = %x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unknown type %u\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.3:                               ; @.str.3
	.asciz	"Supporting only one bitmap format per logical bitmap (for now). Using first format\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_HLPFILE_RtfAddGfxByAddr
.subsections_via_symbols
