	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_test_card
_generate_test_card:                    ## @generate_test_card
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%rcx), %r8d
	movl	4(%rcx), %ebx
	movl	8(%rcx), %eax
	cmpl	$2, %eax
	jl	LBB0_9
## %bb.1:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %esi
	imull	%r8d, %esi
	movslq	%esi, %rsi
	sarl	%r8d
	sarl	%ebx
	imull	%r8d, %ebx
	movslq	%ebx, %rbx
	movl	12(%rcx), %r8d
	movl	%edx, %r14d
	addq	%rsi, %rbx
	addq	%rdi, %rbx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	addq	%rdi, %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	xorl	%r10d, %r10d
	xorl	%r11d, %r11d
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rcx), %eax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r11d
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	addl	$2, %r10d
	cmpl	%esi, %r11d
	jge	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$2, %r8d
	jl	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %esi
	movl	%esi, %eax
	sarl	%eax
	leal	(%r11,%rdx), %r15d
	imull	%r11d, %eax
	movslq	%eax, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %r12
	addq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	movl	%esi, %eax
	imull	%r10d, %eax
	movslq	%eax, %r9
	addq	-72(%rbp), %r9                  ## 8-byte Folded Reload
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r14,%rax), %edx
	xorl	%r15d, %edx
	shrl	$4, %edx
	leal	(,%rdx,8), %edi
	orb	$-128, %dil
	movslq	%esi, %rsi
	addq	%r9, %rsi
	movb	%dil, 1(%rsi,%rax,2)
	movslq	(%rcx), %rsi
	addq	%r9, %rsi
	movb	%dil, (%rsi,%rax,2)
	movb	%dil, 1(%r9,%rax,2)
	movb	%dil, (%r9,%rax,2)
	movl	%edx, %ebx
	shlb	$4, %bl
	movb	%bl, (%r13,%rax)
	andb	$15, %dl
	movzbl	%dl, %edx
	shll	$4, %edx
	leal	(%rdx,%rdx,2), %edx
	addb	$-128, %dl
	movb	%dl, (%r12,%rax)
	leal	1(%rax), %edx
	movl	12(%rcx), %r8d
	movl	%r8d, %esi
	shrl	$31, %esi
	addl	%r8d, %esi
	sarl	%esi
	cmpl	%esi, %edx
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rcx), %esi
	incq	%rax
	jmp	LBB0_4
LBB0_8:
	movl	(%rcx), %r8d
	movl	4(%rcx), %ebx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_9:
	imull	%r8d, %ebx
	leal	(%rbx,%rbx,2), %eax
	sarl	%eax
	movl	%eax, (%rsi)
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_generate_test_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_test_card
_generate_test_card:                    ; @generate_test_card
	.cfi_startproc
; %bb.0:
	ldp	w11, w13, [x3]
	ldr	w12, [x3, #8]
	cmp	w12, #2
	b.lt	LBB0_9
; %bb.1:
	mov	w8, #0
	mov	w9, #0
	mul	w10, w13, w11
	sxtw	x10, w10
	asr	w11, w11, #1
	asr	w13, w13, #1
	mul	w11, w13, w11
	sxtw	x11, w11
	ldr	w17, [x3, #12]
	add	x11, x10, x11
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [x3, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w9, #1
	cmp	w12, #0
	cinc	w13, w12, lt
	add	w8, w8, #2
	cmp	w9, w13, asr #1
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	w17, #2
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w17, [x3]
	asr	w13, w17, #1
	add	w12, w9, w2
	mul	w13, w13, w9
	sxtw	x14, w13
	add	x13, x11, x14
	add	x14, x10, x14
	mul	w15, w17, w8
	sxtw	x15, w15
	mov	w16, #1
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x4, x0, x15
	add	w5, w2, w16
	sub	w5, w5, #1
	eor	w5, w5, w12
	lsr	w6, w5, #4
	lsl	w7, w6, #3
	orr	w7, w7, #0xffffff80
	add	x17, x0, w17, sxtw
	add	x17, x17, x15
	strb	w7, [x17, #1]
	ldrsw	x17, [x3]
	add	x17, x0, x17
	strb	w7, [x17, x15]
	strb	w7, [x4, #1]
	strb	w7, [x4]
	lsl	w17, w6, #4
	strb	w17, [x0, x14]
	ubfx	w17, w5, #4, #4
	add	w17, w17, w17, lsl #1
	lsl	w17, w17, #4
	eor	w17, w17, #0x80
	strb	w17, [x0, x13]
	ldr	w17, [x3, #12]
	cmp	w17, #0
	cinc	w4, w17, lt
	cmp	w16, w4, asr #1
	b.ge	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w17, [x3]
	add	w16, w16, #1
	add	x13, x13, #1
	add	x14, x14, #1
	add	x15, x15, #2
	b	LBB0_6
LBB0_8:
	ldp	w11, w13, [x3]
LBB0_9:
	mul	w8, w11, w13
	add	w8, w8, w8, lsl #1
	asr	w8, w8, #1
	str	w8, [x1]
	mov	w0, #1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_generate_test_card
.subsections_via_symbols
