	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function WritePCXfile
LCPI0_0:
	.long	10                              ## 0xa
	.long	5                               ## 0x5
	.long	1                               ## 0x1
	.long	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_WritePCXfile
	.p2align	4, 0x90
_WritePCXfile:                          ## @WritePCXfile
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r14d
	imull	%edx, %r14d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leal	(%r14,%r14), %edi
	addl	$1000, %edi                     ## imm = 0x3E8
	movq	_PU_STATIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_Z_Malloc
	movq	%rax, %r15
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [10,5,1,8]
	movups	%xmm0, (%rax)
	leal	-1(%r13), %edi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 88(%rax)
	callq	_SHORT
	movq	%rax, 80(%r15)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	leal	-1(%r13), %edi
	callq	_SHORT
	movq	%rax, 72(%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_SHORT
	movq	%rax, 64(%r15)
	movl	%r13d, %edi
	callq	_SHORT
	movq	%rax, 56(%r15)
	movl	48(%r15), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$1, 16(%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_SHORT
	movq	%rax, 40(%r15)
	movl	$2, %edi
	callq	_SHORT
	movq	%rax, 32(%r15)
	movl	24(%r15), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	20(%r15), %rax
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.2:
	cmpl	$1, %r14d
	jne	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_12:
	testb	$1, %r14b
	je	LBB0_16
## %bb.13:
	movl	(%r12), %ecx
	movl	%ecx, %edx
	notl	%edx
	testb	$-64, %dl
	jne	LBB0_14
## %bb.15:
	movl	$193, (%rax)
	movl	(%r12), %ecx
	movl	%ecx, 4(%rax)
	addq	$8, %rax
	jmp	LBB0_16
LBB0_1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_4:
	movl	%r14d, %ecx
	andl	$-2, %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$193, (%rax)
	movl	4(%r12), %edx
	movl	%edx, 4(%rax)
	addq	$8, %rax
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %r12
	addl	$-2, %ecx
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movl	%edx, %esi
	notl	%esi
	testb	$-64, %sil
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$193, (%rax)
	movl	(%r12), %edx
	movl	%edx, 4(%rax)
	addq	$8, %rax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, (%rax)
	addq	$4, %rax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r12), %edx
	movl	%edx, %esi
	notl	%esi
	testb	$-64, %sil
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, (%rax)
	addq	$4, %rax
	jmp	LBB0_11
LBB0_14:
	movl	%ecx, (%rax)
	addq	$4, %rax
LBB0_16:
	movl	$12, (%rax)
	leaq	4(%rax), %rdx
	movq	%rdx, %rcx
	subq	%rbx, %rcx
	cmpq	$31, %rcx
	ja	LBB0_20
## %bb.17:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rax), %ecx
	movl	%ecx, (%rdx,%rax)
	movl	4(%rbx,%rax), %ecx
	movl	%ecx, 4(%rdx,%rax)
	movl	8(%rbx,%rax), %ecx
	movl	%ecx, 8(%rdx,%rax)
	movl	12(%rbx,%rax), %ecx
	movl	%ecx, 12(%rdx,%rax)
	movl	16(%rbx,%rax), %ecx
	movl	%ecx, 16(%rdx,%rax)
	movl	20(%rbx,%rax), %ecx
	movl	%ecx, 20(%rdx,%rax)
	movl	24(%rbx,%rax), %ecx
	movl	%ecx, 24(%rdx,%rax)
	movl	28(%rbx,%rax), %ecx
	movl	%ecx, 28(%rdx,%rax)
	addq	$32, %rax
	cmpl	$3072, %eax                     ## imm = 0xC00
	jne	LBB0_18
## %bb.19:
	addq	%rax, %rdx
	jmp	LBB0_22
LBB0_20:
	leaq	3076(%rax), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rcx,4), %xmm0
	movups	16(%rbx,%rcx,4), %xmm1
	movups	%xmm0, 4(%rax,%rcx,4)
	movups	%xmm1, 20(%rax,%rcx,4)
	movups	32(%rbx,%rcx,4), %xmm0
	movups	48(%rbx,%rcx,4), %xmm1
	movups	%xmm0, 36(%rax,%rcx,4)
	movups	%xmm1, 52(%rax,%rcx,4)
	movups	64(%rbx,%rcx,4), %xmm0
	movups	80(%rbx,%rcx,4), %xmm1
	movups	%xmm0, 68(%rax,%rcx,4)
	movups	%xmm1, 84(%rax,%rcx,4)
	movups	96(%rbx,%rcx,4), %xmm0
	movups	112(%rbx,%rcx,4), %xmm1
	movups	%xmm0, 100(%rax,%rcx,4)
	movups	%xmm1, 116(%rax,%rcx,4)
	addq	$32, %rcx
	cmpq	$768, %rcx                      ## imm = 0x300
	jne	LBB0_21
LBB0_22:
	subq	%r15, %rdx
	shrq	$2, %rdx
	movq	%r15, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_M_WriteFile
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Z_Free                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PU_STATIC,4,2                  ## @PU_STATIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function WritePCXfile
lCPI0_0:
	.long	10                              ; 0xa
	.long	5                               ; 0x5
	.long	1                               ; 0x1
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_WritePCXfile
	.p2align	2
_WritePCXfile:                          ; @WritePCXfile
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x24, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	mul	w25, w3, w2
	lsl	w8, w25, #1
	add	w0, w8, #1000
Lloh0:
	adrp	x8, _PU_STATIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PU_STATIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_Z_Malloc
	mov	x20, x0
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x0]
	sub	w0, w23, #1
	stp	xzr, xzr, [x20, #88]
	bl	_SHORT
	str	x0, [x20, #80]
	sub	w0, w24, #1
	bl	_SHORT
	str	x0, [x20, #72]
	mov	x0, x23
	bl	_SHORT
	str	x0, [x20, #64]
	mov	x0, x24
	bl	_SHORT
	str	x0, [x20, #56]
	ldr	w0, [x20, #48]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w8, #1
	str	w8, [x20, #16]
	mov	x0, x23
	bl	_SHORT
	str	x0, [x20, #40]
	mov	w0, #2
	bl	_SHORT
	str	x0, [x20, #32]
	ldr	w0, [x20, #24]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x8, x20, #20
	cmp	w25, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w9, #193
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [x8]
	ldr	w10, [x22]
	str	w10, [x8, #4]
	add	x8, x8, #8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #4
	subs	w25, w25, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x22]
	mvn	w11, w10
	tst	w11, #0xc0
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w10, [x8], #4
	b	LBB0_3
LBB0_6:
	mov	w10, #12
	mov	x9, x8
	str	w10, [x9], #4
	sub	x10, x9, x21
	cmp	x10, #63
	b.hi	LBB0_10
; %bb.7:
	mov	x8, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x21, x8]
	str	w10, [x9, x8]
	add	x8, x8, #4
	cmp	w8, #3072
	b.ne	LBB0_8
; %bb.9:
	add	x9, x9, x8
	b	LBB0_12
LBB0_10:
	mov	x10, #0
	add	x9, x8, #3076
	add	x8, x8, #52
	add	x11, x21, #32
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x12, x11, x10
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12]
	add	x12, x8, x10
	stp	q0, q1, [x12, #-48]
	stp	q2, q3, [x12, #-16]
	add	x10, x10, #64
	cmp	x10, #3072
	b.ne	LBB0_11
LBB0_12:
	sub	x8, x9, x20
	lsr	x2, x8, #2
	mov	x0, x19
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_M_WriteFile
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_Z_Free
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PU_STATIC,4,2                  ; @PU_STATIC
.subsections_via_symbols
