	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_image_emf
_decode_image_emf:                      ## @decode_image_emf
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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
	xorl	%eax, %eax
	callq	_TRACE
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_load_emf
	movq	_Ok@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.5:
	movq	-32(%rbp), %rsi
	movq	%rsi, (%r14)
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	(%r15), %rbx
	jmp	LBB0_6
LBB0_2:
	movq	_InvalidParameter@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_6
LBB0_4:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p %p\n"

	.comm	_InvalidParameter,8,3           ## @InvalidParameter
	.comm	_Ok,8,3                         ## @Ok
L_.str.1:                               ## @.str.1
	.asciz	"Could not load metafile\n"

L_.str.2:                               ## @.str.2
	.asciz	"<-- %p\n"

	.no_dead_strip	_decode_image_emf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_image_emf
_decode_image_emf:                      ; @decode_image_emf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	stp	x0, x1, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	cbz	x20, LBB0_4
; %bb.1:
	cbz	x19, LBB0_4
; %bb.2:
	add	x1, sp, #24
	mov	x0, x20
	bl	_load_emf
Lloh2:
	adrp	x21, _Ok@GOTPAGE
Lloh3:
	ldr	x21, [x21, _Ok@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [sp, #24]
	str	x8, [x19]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	ldr	x20, [x21]
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _InvalidParameter@GOTPAGE
Lloh7:
	ldr	x8, [x8, _InvalidParameter@GOTPAGEOFF]
Lloh8:
	ldr	x20, [x8]
	b	LBB0_6
LBB0_5:
	mov	x20, x0
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p %p\n"

	.comm	_InvalidParameter,8,3           ; @InvalidParameter
	.comm	_Ok,8,3                         ; @Ok
l_.str.1:                               ; @.str.1
	.asciz	"Could not load metafile\n"

l_.str.2:                               ; @.str.2
	.asciz	"<-- %p\n"

	.no_dead_strip	_decode_image_emf
.subsections_via_symbols
