	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msg_queue_get
_msg_queue_get:                         ## @msg_queue_get
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_SDL_LockMutex
	movl	$-1, %r15d
	cmpq	$0, 40(%rbx)
	jne	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_SDL_CondWait
	cmpq	$0, 40(%rbx)
	je	LBB0_2
LBB0_8:
	movl	(%rbx), %edi
	callq	_SDL_UnlockMutex
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%rax), %rcx
	movq	%rcx, 32(%rbx)
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.4:
	movq	$0, 24(%rbx)
LBB0_5:
	decl	16(%rbx)
	movups	(%rax), %xmm0
	movups	%xmm0, (%r14)
	movq	$0, 8(%rax)
	movq	8(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	%rax, 8(%rbx)
	movl	$1, %r15d
	jmp	LBB0_8
LBB0_7:
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_msg_queue_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msg_queue_get
_msg_queue_get:                         ; @msg_queue_get
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_SDL_LockMutex
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w21, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	w1, w0, [x19]
	bl	_SDL_CondWait
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_1
LBB0_4:
	mov	w20, #-1
LBB0_5:
	ldr	w0, [x19]
	bl	_SDL_UnlockMutex
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x9, [x8]
	str	x9, [x19, #32]
	cbnz	x9, LBB0_8
; %bb.7:
	str	xzr, [x19, #24]
LBB0_8:
	ldr	w9, [x19, #16]
	sub	w9, w9, #1
	str	w9, [x19, #16]
	ldr	q0, [x8]
	str	q0, [x20]
	ldr	x9, [x19, #8]
	stp	x9, xzr, [x8]
	str	x8, [x19, #8]
	mov	w20, #1
	b	LBB0_5
LBB0_9:
	mov	w20, #0
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_msg_queue_get
.subsections_via_symbols
