	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetDIBitsToDeviceFromClipboard ## -- Begin function SetDIBitsToDeviceFromClipboard
	.p2align	4, 0x90
_SetDIBitsToDeviceFromClipboard:        ## @SetDIBitsToDeviceFromClipboard
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r12d
	callq	_GetClipboardData
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_GlobalLock
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	cmpl	$4, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rsi
	shrq	$32, %rsi
	movl	4(%rax), %r8d
	movl	8(%rax), %ecx
	movq	%rax, %r10
	addq	$68, %r10
	negl	%esi
	negl	%r15d
	movl	%r12d, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	xorl	%r9d, %r9d
	pushq	%r14
	pushq	%rax
	pushq	%r10
	pushq	%r8
	pushq	$0
	pushq	$0
	callq	_SetDIBitsToDevice
	addq	$48, %rsp
LBB0_4:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GlobalUnlock                   ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIB_RGB_COLORS,4,2             ## @DIB_RGB_COLORS
	.comm	_BI_BITFIELDS,8,3               ## @BI_BITFIELDS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetDIBitsToDeviceFromClipboard ; -- Begin function SetDIBitsToDeviceFromClipboard
	.p2align	2
_SetDIBitsToDeviceFromClipboard:        ; @SetDIBitsToDeviceFromClipboard
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	bl	_GetClipboardData
	cbz	w0, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_GlobalLock
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x0]
	cmp	w8, #4
	b.ne	LBB0_4
; %bb.3:
	lsr	x8, x22, #32
	ldp	w4, w3, [x0, #4]
	add	x9, x0, #68
	neg	w1, w8
	neg	w2, w22
	stp	w0, w21, [sp, #16]
	str	x9, [sp, #8]
	str	w4, [sp]
	mov	x0, x20
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_SetDIBitsToDevice
LBB0_4:
	mov	x0, x19
	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
	b	_GlobalUnlock
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_DIB_RGB_COLORS,4,2             ; @DIB_RGB_COLORS
	.comm	_BI_BITFIELDS,8,3               ; @BI_BITFIELDS
.subsections_via_symbols
