	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enque                          ## -- Begin function enque
	.p2align	4, 0x90
_enque:                                 ## @enque
	.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	%rsi, %r13
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r12
	cmpl	$0, (%rax)
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movq	40(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_4
LBB0_1:
	xorl	%r12d, %r12d
LBB0_4:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	$48, %edi
	callq	_malloc
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	cmpq	$0, 8(%r15)
	je	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	callq	_assert
	movq	%r13, 40(%r12)
	jmp	LBB0_9
LBB0_13:
	movq	8(%r12), %r14
	jmp	LBB0_10
LBB0_7:
	movq	%r13, 8(%r15)
LBB0_9:
	xorl	%r14d, %r14d
	movq	%r13, %r12
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_10:
	movl	$1, (%r12)
	movq	(%r13), %rax
	movq	%rax, 8(%r12)
	movl	%ecx, 16(%r12)
	movq	%rdx, 32(%r12)
	movslq	(%r15), %rax
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
	movq	%rax, 24(%r12)
	cmpl	$6, %ebx
	jl	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_printf
LBB0_12:
	movq	%r14, (%r13)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc()"

L_.str.1:                               ## @.str.1
	.asciz	"Enque.  Size: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enque                          ; -- Begin function enque
	.p2align	2
_enque:                                 ; @enque
	.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	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	w21, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x8
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	ldr	x8, [x24, #40]
	cbnz	x8, LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x24, #0
	mov	w21, #1
LBB0_5:
	mov	w0, #48
	bl	_malloc
	mov	x25, x0
	cbnz	x0, LBB0_7
; %bb.6:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_7:
	mov	x0, x25
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x0, x24
	bl	_assert
	mov	x26, #0
	str	x25, [x24, #40]
	b	LBB0_11
LBB0_9:
	ldr	x26, [x24, #8]
	b	LBB0_12
LBB0_10:
	mov	x26, #0
	str	x25, [x22, #8]
LBB0_11:
	mov	x24, x25
LBB0_12:
	mov	w8, #1
	str	w8, [x24]
	ldr	x8, [x19]
	str	x8, [x24, #8]
	str	w23, [x24, #16]
	ldrsw	x8, [x22]
	add	w9, w8, #1
	str	w9, [x22]
	stp	x8, x20, [x24, #24]
	cmp	w21, #6
	b.lt	LBB0_14
; %bb.13:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_printf
LBB0_14:
	str	x26, [x19]
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc()"

l_.str.1:                               ; @.str.1
	.asciz	"Enque.  Size: %d\n"

.subsections_via_symbols
