	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cube                           ## -- Begin function cube
	.p2align	4, 0x90
_cube:                                  ## @cube
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -88(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	cmpl	(%rsi), %eax
	jne	LBB0_13
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	12(%rdi), %edi
	movl	12(%rsi), %esi
	callq	_MIN
	movl	%eax, %ebx
	movl	8(%r12), %edi
	movl	8(%r15), %esi
	callq	_MIN
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r12), %edi
	movl	4(%r15), %esi
	callq	_MIN
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	12(%r12), %edi
	movl	12(%r15), %esi
	callq	_MAX
	movl	%eax, %r14d
	movl	8(%r12), %edi
	movl	8(%r15), %esi
	callq	_MAX
	movl	%eax, %r13d
	movl	4(%r12), %edi
	movl	4(%r15), %esi
	callq	_MAX
	xorl	%ecx, %ecx
	cmpl	%r14d, %ebx
	sete	%r8b
	xorl	%esi, %esi
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	cmpl	%r13d, -44(%rbp)                ## 4-byte Folded Reload
	sete	%dl
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	cmpl	%eax, -72(%rbp)                 ## 4-byte Folded Reload
	sete	%dil
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	cmpl	%r14d, %ebx
	jle	LBB0_2
LBB0_13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movb	%r8b, %cl
	movb	%dl, %sil
	addl	%ecx, %esi
	xorl	%eax, %eax
	movb	%dil, %al
	addl	%esi, %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	-60(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	subl	-72(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leal	1(%rax), %r14d
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%r12), %eax
	cmpl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%eax, %r12d
	je	LBB0_13
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jg	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	-52(%rbp), %r12d                ## 4-byte Folded Reload
	sete	%al
	cmpl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	leal	1(%r15), %eax
	cmpl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	movl	%eax, %r15d
	je	LBB0_12
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -72(%rbp)                 ## 4-byte Folded Reload
	jg	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	sete	%al
	cmpl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %r13d
	addl	-76(%rbp), %r13d                ## 4-byte Folded Reload
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=3
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rbx), %edx
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	callq	_builder_block
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=3
	incl	%ebx
	cmpl	%ebx, %r14d
	je	LBB0_11
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=3
	testl	%ebx, %ebx
	sete	%al
	cmpl	%ebx, -96(%rbp)                 ## 4-byte Folded Reload
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	addl	%r13d, %eax
	cmpl	-80(%rbp), %eax                 ## 4-byte Folded Reload
	ja	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cube                           ; -- Begin function cube
	.p2align	2
_cube:                                  ; @cube
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w20, [x0]
	ldr	w8, [x1]
	cmp	w20, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x2
	mov	x26, x1
	mov	x27, x0
	ldr	w0, [x0, #12]
	ldr	w1, [x1, #12]
	bl	_MIN
	mov	x22, x0
	ldr	w0, [x27, #8]
	ldr	w1, [x26, #8]
	bl	_MIN
	mov	x21, x0
	ldr	w0, [x27, #4]
	ldr	w1, [x26, #4]
	bl	_MIN
	mov	x23, x0
	ldr	w0, [x27, #12]
	ldr	w1, [x26, #12]
	bl	_MAX
	mov	x24, x0
	ldr	w0, [x27, #8]
	ldr	w1, [x26, #8]
	bl	_MAX
	mov	x25, x0
	ldr	w0, [x27, #4]
	ldr	w1, [x26, #4]
	bl	_MAX
	cmp	w22, w24
	cset	w8, eq
	stp	w21, w0, [sp, #20]              ; 8-byte Folded Spill
	str	w25, [sp, #28]                  ; 4-byte Folded Spill
	cmp	w21, w25
	cinc	w8, w8, eq
	cmp	w23, w0
	cinc	w21, w8, eq
	stp	w22, w24, [sp, #8]              ; 8-byte Folded Spill
	cmp	w22, w24
	b.le	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	sub	w24, w8, w23
	add	w22, w24, #1
	ldr	w27, [sp, #8]                   ; 4-byte Folded Reload
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w27, #1
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w27, w9
	mov	x27, x8
	b.eq	LBB0_2
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w8, w9
	b.gt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cmp	w27, w8
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	ccmp	w27, w8, #4, ne
	cset	w8, eq
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	ldr	w28, [sp, #20]                  ; 4-byte Folded Reload
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	w8, w28, #1
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w28, w9
	mov	x28, x8
	b.eq	LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w23, w8
	b.gt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w26, #0
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w28, w8
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	ccmp	w28, w8, #4, ne
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	cinc	w25, w8, eq
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=3
	add	w2, w23, w26
	mov	x0, x27
	mov	x1, x28
	mov	x3, x20
	bl	_builder_block
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=3
	add	w26, w26, #1
	cmp	w22, w26
	b.eq	LBB0_7
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cbnz	w19, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=3
	cmp	w26, #0
	ccmp	w24, w26, #4, ne
	cinc	w8, w25, eq
	cmp	w8, w21
	b.hi	LBB0_10
	b	LBB0_11
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
