	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_partition_new                  ## -- Begin function partition_new
	.p2align	4, 0x90
_partition_new:                         ## @partition_new
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	leal	(,%rbx,4), %edi
	callq	_xmalloc
	cltq
	movl	%ebx, (%rax)
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.1:
	movq	8(%rax), %rcx
	movl	%ebx, %r8d
	cmpl	$1, %ebx
	jne	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_3:
	movl	%r8d, %edi
	andl	$-2, %edi
	leaq	16(%rcx), %rbx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-16(%rbx), %rdx
	movl	%esi, -16(%rbx)
	movq	%rdx, -8(%rbx)
	movl	$1, -12(%rbx)
	leal	1(%rsi), %edx
	movl	%edx, (%rbx)
	movq	%rbx, 8(%rbx)
	movl	$1, 4(%rbx)
	addq	$2, %rsi
	addq	$32, %rbx
	cmpq	%rdi, %rsi
	jne	LBB0_4
LBB0_5:
	testb	$1, %r8b
	je	LBB0_7
## %bb.6:
	movq	%rsi, %rdx
	shlq	$4, %rdx
	leaq	(%rcx,%rdx), %rdi
	movl	%esi, (%rcx,%rdx)
	movq	%rdi, 8(%rcx,%rdx)
	movl	$1, 4(%rcx,%rdx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_partition_new                  ; -- Begin function partition_new
	.p2align	2
_partition_new:                         ; @partition_new
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	lsl	w0, w0, #2
	bl	_xmalloc
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	str	w19, [x0]
	cmp	w19, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x10, [x0, #8]
	mov	w8, w19
	cmp	w19, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_6
LBB0_3:
	mov	x11, #0
	mov	w12, #0
	and	x9, x8, #0xfffffffc
	lsl	x13, x8, #4
	and	x13, x13, #0xfffffffc0
	mov	w14, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w15, w12, #1
	add	x16, x10, x11
	mov	x17, x16
	str	w15, [x17, #16]!
	add	w15, w12, #2
	mov	x1, x16
	str	w15, [x1, #32]!
	add	w15, w12, #3
	mov	x2, x16
	str	w15, [x2, #48]!
	str	x16, [x16, #8]
	str	x17, [x16, #24]
	str	x1, [x16, #40]
	str	x2, [x16, #56]
	stp	w12, w14, [x16]
	str	w14, [x16, #20]
	str	w14, [x16, #36]
	add	w12, w12, #4
	add	x11, x11, #64
	str	w14, [x16, #52]
	cmp	x13, x11
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_6:
	add	x10, x10, x9, lsl #4
	mov	w11, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	x10, [x10, #8]
	stp	w9, w11, [x10], #16
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
