	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msg_queue_push                 ## -- Begin function msg_queue_push
	.p2align	4, 0x90
_msg_queue_push:                        ## @msg_queue_push
	.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
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r12
	movq	(%rdi), %rax
	cmpq	8(%rdi), %rax
	jae	LBB0_10
## %bb.2:
	movl	%ecx, %ebx
	movl	%edx, %r13d
	movq	%rsi, %r14
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r15
	movl	%r13d, (%rax)
	movl	%ebx, 4(%rax)
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	callq	_strdup
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	movq	%rax, 8(%r15)
	movq	(%r12), %rax
	movq	16(%r12), %rcx
	movq	%r15, (%rcx,%rax,8)
	leaq	1(%rax), %rcx
	movq	%rcx, (%r12)
	cmpq	$2, %rax
	jb	LBB0_10
## %bb.7:
	movq	%rax, %rcx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdx
	shrq	%rcx
	movq	(%rdx,%rcx,8), %rsi
	movq	(%rdx,%rax,8), %rdi
	movl	(%rdi), %ebx
	cmpl	(%rsi), %ebx
	jbe	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rdi, (%rdx,%rcx,8)
	movq	16(%r12), %rdx
	movq	%rsi, (%rdx,%rax,8)
	cmpq	$3, %rax
	movq	%rcx, %rax
	ja	LBB0_8
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_msg_queue_push                 ; -- Begin function msg_queue_push
	.p2align	2
_msg_queue_push:                        ; @msg_queue_push
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.hs	LBB0_9
; %bb.2:
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x21, x0
	stp	w23, w22, [x0]
	cbz	x20, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_strdup
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	str	x0, [x21, #8]
	ldr	x9, [x19, #16]
	ldr	x8, [x19]
	str	x21, [x9, x8, lsl #3]
	add	x9, x8, #1
	str	x9, [x19]
	cmp	x8, #2
	b.lo	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #16]
	lsr	x9, x8, #1
	ldr	x11, [x10, x9, lsl #3]
	ldr	x12, [x10, x8, lsl #3]
	ldr	w13, [x12]
	ldr	w14, [x11]
	cmp	w13, w14
	b.ls	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	str	x12, [x10, x9, lsl #3]
	ldr	x10, [x19, #16]
	str	x11, [x10, x8, lsl #3]
	cmp	x8, #3
	mov	x8, x9
	b.hi	LBB0_7
LBB0_9:
	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
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
