	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_createwbmp                     ## -- Begin function createwbmp
	.p2align	4, 0x90
_createwbmp:                            ## @createwbmp
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %ebx
	movl	$16, %edi
	callq	_gdMalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %r12
	movl	$4, %edi
	movl	%ebx, %esi
	callq	_overflow2
	testq	%rax, %rax
	jne	LBB0_16
## %bb.2:
	leal	(,%rbx,4), %edi
	movl	%r15d, %esi
	callq	_overflow2
	testq	%rax, %rax
	je	LBB0_3
LBB0_16:
	movq	%r12, %rdi
	callq	_gdFree
LBB0_17:
	xorl	%r12d, %r12d
LBB0_18:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r15d, %r13d
	imull	%ebx, %r13d
	movl	$4, %edi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_safe_emalloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_16
## %bb.4:
	movl	%ebx, 8(%r12)
	movl	%r15d, 12(%r12)
	testl	%r13d, %r13d
	jle	LBB0_18
## %bb.5:
	movl	%r13d, %ecx
	cmpl	$8, %r13d
	jae	LBB0_7
## %bb.6:
	xorl	%edx, %edx
	jmp	LBB0_15
LBB0_7:
	movl	%ecx, %edx
	andl	$-8, %edx
	movd	%r14d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rdx), %rbx
	movq	%rbx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %esi
	andl	$7, %esi
	cmpq	$56, %rbx
	jae	LBB0_9
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_9:
	andq	$-8, %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rax,%rbx,4)
	movdqu	%xmm0, 16(%rax,%rbx,4)
	movdqu	%xmm0, 32(%rax,%rbx,4)
	movdqu	%xmm0, 48(%rax,%rbx,4)
	movdqu	%xmm0, 64(%rax,%rbx,4)
	movdqu	%xmm0, 80(%rax,%rbx,4)
	movdqu	%xmm0, 96(%rax,%rbx,4)
	movdqu	%xmm0, 112(%rax,%rbx,4)
	movdqu	%xmm0, 128(%rax,%rbx,4)
	movdqu	%xmm0, 144(%rax,%rbx,4)
	movdqu	%xmm0, 160(%rax,%rbx,4)
	movdqu	%xmm0, 176(%rax,%rbx,4)
	movdqu	%xmm0, 192(%rax,%rbx,4)
	movdqu	%xmm0, 208(%rax,%rbx,4)
	movdqu	%xmm0, 224(%rax,%rbx,4)
	movdqu	%xmm0, 240(%rax,%rbx,4)
	addq	$64, %rbx
	addq	$-8, %rdi
	jne	LBB0_10
LBB0_11:
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.12:
	leaq	(%rax,%rbx,4), %rdi
	addq	$16, %rdi
	shlq	$5, %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rdi,%rbx)
	movdqu	%xmm0, (%rdi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %rsi
	jne	LBB0_13
LBB0_14:
	cmpq	%rcx, %rdx
	je	LBB0_18
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, (%rax,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_15
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_createwbmp                     ; -- Begin function createwbmp
	.p2align	2
_createwbmp:                            ; @createwbmp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	mov	w0, #16
	bl	_gdMalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	w0, #4
	mov	x1, x23
	bl	_overflow2
	cbnz	x0, LBB0_3
; %bb.2:
	lsl	w0, w23, #2
	mov	x1, x22
	bl	_overflow2
	cbz	x0, LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_gdFree
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	mul	w21, w22, w23
	mov	w0, #4
	mov	x1, x21
	mov	w2, #0
	bl	_safe_emalloc
	str	x0, [x19]
	cbz	x0, LBB0_3
; %bb.6:
	stp	w23, w22, [x19, #8]
	cmp	w21, #1
	b.lt	LBB0_4
; %bb.7:
	cmp	w21, #16
	b.hs	LBB0_9
; %bb.8:
	mov	x8, #0
	b	LBB0_12
LBB0_9:
	and	x8, x21, #0xfffffff0
	dup.4s	v0, w20
	add	x9, x0, #32
	mov	x10, x8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x9, #-32]
	stp	q0, q0, [x9], #64
	subs	x10, x10, #16
	b.ne	LBB0_10
; %bb.11:
	cmp	x8, x21
	b.eq	LBB0_4
LBB0_12:
	add	x9, x0, x8, lsl #2
	sub	x8, x21, x8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	str	w20, [x9], #4
	subs	x8, x8, #1
	b.ne	LBB0_13
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
