	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BitBltFromClipboard            ## -- Begin function BitBltFromClipboard
	.p2align	4, 0x90
_BitBltFromClipboard:                   ## @BitBltFromClipboard
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	48(%rbp), %r14d
	movl	%r14d, %edi
	callq	_CreateCompatibleDC
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r13d
	movq	_CF_BITMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetClipboardData
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	leaq	-72(%rbp), %rdx
	movq	%rax, %rdi
	movl	$16, %esi
	callq	_GetObjectW
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_SelectObject
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	leaq	16(%rbp), %rax
	movq	8(%rax), %r14
	movq	24(%rax), %rdi
	movq	%rax, %rbx
	subq	%r14, %rdi
	movq	-64(%rbp), %rsi
	addq	%r14, %r15
	subq	%r15, %rsi
	callq	_min
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rax
	movq	(%rbx), %rbx
	movq	16(%rax), %rdi
	subq	%rbx, %rdi
	movq	-72(%rbp), %rsi
	addq	%rbx, %r12
	subq	%r12, %rsi
	callq	_min
	subq	$8, %rsp
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	movl	%r13d, %r9d
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%r12
	pushq	%r15
	callq	_BitBlt
	addq	$32, %rsp
	movl	%r13d, %edi
	callq	_DeleteDC
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CF_BITMAP,4,2                  ## @CF_BITMAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BitBltFromClipboard            ; -- Begin function BitBltFromClipboard
	.p2align	2
_BitBltFromClipboard:                   ; @BitBltFromClipboard
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	ldr	w0, [x0, #32]
	bl	_CreateCompatibleDC
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _CF_BITMAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CF_BITMAP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_GetClipboardData
	mov	x24, x0
	add	x2, sp, #16
	mov	w1, #16
	bl	_GetObjectW
	mov	x0, x19
	mov	x1, x24
	bl	_SelectObject
	ldr	x8, [x23, #24]
	ldr	x9, [x23, #8]
	sub	x0, x8, x9
	ldr	x8, [sp, #24]
	add	x9, x9, x22
	sub	x1, x8, x9
	bl	_min
	mov	x24, x0
	ldr	x8, [x23, #16]
	ldr	x9, [x23]
	sub	x0, x8, x9
	ldr	x8, [sp, #16]
	add	x9, x9, x21
	sub	x1, x8, x9
	bl	_min
	mov	x4, x0
	ldr	w0, [x23, #32]
	ldp	x2, x1, [x23]
	add	x6, x1, x22
	add	x7, x2, x21
	str	w20, [sp]
	mov	x3, x24
	mov	x5, x19
	bl	_BitBlt
	mov	x0, x19
	bl	_DeleteDC
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CF_BITMAP,4,2                  ; @CF_BITMAP
.subsections_via_symbols
