	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function STATIC_SetBitmap
_STATIC_SetBitmap:                      ## @STATIC_SetBitmap
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SS_TYPEMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	movq	_SS_BITMAP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.1:
	movq	%rsi, %r12
	movl	%edi, %r14d
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.2:
	movl	%edx, %ebx
	movq	%r12, %rdi
	callq	_GetObjectType
	movq	_OBJ_BITMAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	movq	_HICON_GWL_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movl	%r12d, %edx
	callq	_SetWindowLongPtrW
	movq	%rax, %r15
	movq	_SS_CENTERIMAGE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_10
## %bb.4:
	movq	_SS_REALSIZECONTROL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_10
## %bb.5:
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_GetObjectW
	movl	-40(%rbp), %r9d
	movq	_SWP_NOACTIVATE@GOTPCREL(%rip), %rax
	movq	_SWP_NOMOVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	-36(%rbp), %r8d
	movq	_SWP_NOZORDER@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rsp)
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SetWindowPos
	jmp	LBB0_10
LBB0_7:
	movq	_HICON_GWL_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	xorl	%edx, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SetWindowLongPtrW              ## TAILCALL
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
LBB0_9:
	xorl	%r15d, %r15d
LBB0_10:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SS_TYPEMASK,4,2                ## @SS_TYPEMASK
	.comm	_SS_BITMAP,4,2                  ## @SS_BITMAP
	.comm	_OBJ_BITMAP,8,3                 ## @OBJ_BITMAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hBitmap != 0, but it's not a bitmap\n"

	.comm	_HICON_GWL_OFFSET,4,2           ## @HICON_GWL_OFFSET
	.comm	_SS_CENTERIMAGE,4,2             ## @SS_CENTERIMAGE
	.comm	_SS_REALSIZECONTROL,4,2         ## @SS_REALSIZECONTROL
	.comm	_SWP_NOACTIVATE,4,2             ## @SWP_NOACTIVATE
	.comm	_SWP_NOMOVE,4,2                 ## @SWP_NOMOVE
	.comm	_SWP_NOZORDER,4,2               ## @SWP_NOZORDER
	.no_dead_strip	_STATIC_SetBitmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function STATIC_SetBitmap
_STATIC_SetBitmap:                      ; @STATIC_SetBitmap
	.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
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_BITMAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SS_BITMAP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	cbz	x1, LBB0_6
; %bb.2:
	mov	x22, x2
	mov	x0, x21
	bl	_GetObjectType
Lloh6:
	adrp	x8, _OBJ_BITMAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OBJ_BITMAP@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _HICON_GWL_OFFSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HICON_GWL_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_SetWindowLongPtrW
	mov	x20, x0
Lloh12:
	adrp	x8, _SS_CENTERIMAGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SS_CENTERIMAGE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w22
	b.ne	LBB0_9
; %bb.4:
Lloh15:
	adrp	x8, _SS_REALSIZECONTROL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SS_REALSIZECONTROL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w22
	b.ne	LBB0_9
; %bb.5:
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #8
	bl	_GetObjectW
	ldp	w5, w4, [sp, #8]
Lloh18:
	adrp	x8, _SWP_NOACTIVATE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SWP_NOACTIVATE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _SWP_NOMOVE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SWP_NOMOVE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _SWP_NOZORDER@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SWP_NOZORDER@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w6, w8, w9
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_SetWindowPos
	b	LBB0_9
LBB0_6:
Lloh27:
	adrp	x8, _HICON_GWL_OFFSET@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HICON_GWL_OFFSET@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	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
	b	_SetWindowLongPtrW
LBB0_7:
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
LBB0_8:
	mov	x20, #0
LBB0_9:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_SS_TYPEMASK,4,2                ; @SS_TYPEMASK
	.comm	_SS_BITMAP,4,2                  ; @SS_BITMAP
	.comm	_OBJ_BITMAP,8,3                 ; @OBJ_BITMAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hBitmap != 0, but it's not a bitmap\n"

	.comm	_HICON_GWL_OFFSET,4,2           ; @HICON_GWL_OFFSET
	.comm	_SS_CENTERIMAGE,4,2             ; @SS_CENTERIMAGE
	.comm	_SS_REALSIZECONTROL,4,2         ; @SS_REALSIZECONTROL
	.comm	_SWP_NOACTIVATE,4,2             ; @SWP_NOACTIVATE
	.comm	_SWP_NOMOVE,4,2                 ; @SWP_NOMOVE
	.comm	_SWP_NOZORDER,4,2               ; @SWP_NOZORDER
	.no_dead_strip	_STATIC_SetBitmap
.subsections_via_symbols
