	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function STATIC_SetEnhMetaFile
_STATIC_SetEnhMetaFile:                 ## @STATIC_SetEnhMetaFile
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_SS_TYPEMASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	_SS_ENHMETAFILE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	movl	%edi, %r14d
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_GetObjectType
	movq	_OBJ_ENHMETAFILE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_3:
	movq	_HICON_GWL_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movl	%ebx, %edx
	callq	_SetWindowLongPtrW
	cltq
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SS_TYPEMASK,4,2                ## @SS_TYPEMASK
	.comm	_SS_ENHMETAFILE,4,2             ## @SS_ENHMETAFILE
	.comm	_OBJ_ENHMETAFILE,8,3            ## @OBJ_ENHMETAFILE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hEnhMetaFile != 0, but it's not an enhanced metafile\n"

	.comm	_HICON_GWL_OFFSET,4,2           ## @HICON_GWL_OFFSET
	.no_dead_strip	_STATIC_SetEnhMetaFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function STATIC_SetEnhMetaFile
_STATIC_SetEnhMetaFile:                 ; @STATIC_SetEnhMetaFile
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _SS_TYPEMASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SS_TYPEMASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w2
Lloh3:
	adrp	x9, _SS_ENHMETAFILE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SS_ENHMETAFILE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	cbz	x1, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_GetObjectType
Lloh6:
	adrp	x8, _OBJ_ENHMETAFILE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OBJ_ENHMETAFILE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _HICON_GWL_OFFSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HICON_GWL_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_SetWindowLongPtrW
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
LBB0_5:
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SS_TYPEMASK,4,2                ; @SS_TYPEMASK
	.comm	_SS_ENHMETAFILE,4,2             ; @SS_ENHMETAFILE
	.comm	_OBJ_ENHMETAFILE,8,3            ; @OBJ_ENHMETAFILE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hEnhMetaFile != 0, but it's not an enhanced metafile\n"

	.comm	_HICON_GWL_OFFSET,4,2           ; @HICON_GWL_OFFSET
	.no_dead_strip	_STATIC_SetEnhMetaFile
.subsections_via_symbols
