	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swgen                          ## -- Begin function swgen
	.p2align	4, 0x90
_swgen:                                 ## @swgen
	.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
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	incl	%edi
	movq	_FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_newarray
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	movq	_density@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
	leal	1(%r13), %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	cmpl	%eax, %r12d
	jge	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movslq	%ebx, %rax
	movl	%r12d, (%r15,%rax,4)
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %r13d
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	leal	-1(%r13), %ebx
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_den
	cmpq	(%r14), %rax
	jge	LBB0_4
	jmp	LBB0_6
LBB0_7:
	incl	%r13d
	jmp	LBB0_8
LBB0_1:
	xorl	%r13d, %r13d
LBB0_8:
	movslq	%r13d, %rcx
	movl	%eax, (%r15,%rcx,4)
	decl	%ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%edx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_swcode                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FUNC,4,2                       ## @FUNC
	.comm	_density,8,3                    ## @density
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swgen                          ; -- Begin function swgen
	.p2align	2
_swgen:                                 ; @swgen
	.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	x19, x0
	ldr	w8, [x0, #8]
	add	w0, w8, #1
Lloh0:
	adrp	x8, _FUNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FUNC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_newarray
	mov	x20, x0
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w22, #0
	mov	w21, #0
Lloh3:
	adrp	x23, _density@GOTPAGE
Lloh4:
	ldr	x23, [x23, _density@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	add	w21, w24, #1
	ldr	w8, [x19, #8]
	cmp	w22, w8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	str	w22, [x20, w21, sxtw #2]
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x24, x21
	subs	w21, w21, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x21
	mov	x1, x22
	bl	_den
	ldr	x8, [x23]
	cmp	x0, x8
	b.ge	LBB0_4
	b	LBB0_2
LBB0_6:
	mov	w21, #0
LBB0_7:
	str	w8, [x20, w21, sxtw #2]
	sub	w3, w21, #1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	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
	b	_swcode
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FUNC,4,2                       ; @FUNC
	.comm	_density,8,3                    ; @density
.subsections_via_symbols
