	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function receive_msgs
_receive_msgs:                          ## @receive_msgs
	.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
	movl	%edi, %r14d
	leaq	-48(%rbp), %rsi
	callq	_mq_getattr
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	movq	_errno@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	movl	-48(%rbp), %r15d
	movl	$1, %edi
	movl	%r15d, %esi
	callq	_calloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	leaq	-44(%rbp), %rcx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_mq_receive
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	movq	_MQ_PRIO_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	movl	$0, %edi
	cmpl	%eax, -44(%rbp)
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpb	$98, (%rbx)
	sete	%dil
LBB0_2:
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	leaq	-44(%rbp), %rcx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_mq_receive
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	movl	(%r13), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	movq	_MQ_PRIO_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	cmpl	%eax, -44(%rbp)
	jne	LBB0_4
## %bb.3:
	xorl	%r12d, %r12d
	cmpb	$102, (%rbx)
	sete	%r12b
LBB0_4:
	leaq	L_.str.5(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%r12d, %edi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	leaq	-44(%rbp), %rcx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_mq_receive
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	movl	-44(%rbp), %eax
	movl	$0, %edi
	movq	_MQ_PRIO_BASE@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	cmpb	$97, (%rbx)
	sete	%dil
LBB0_6:
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	leaq	-44(%rbp), %rcx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_mq_receive
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	movl	-44(%rbp), %eax
	cmpl	(%r12), %eax
	jne	LBB0_8
## %bb.7:
	xorl	%r13d, %r13d
	cmpb	$99, (%rbx)
	sete	%r13b
LBB0_8:
	leaq	L_.str.9(%rip), %rsi
	xorl	%r12d, %r12d
	movl	%r13d, %edi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	leaq	-44(%rbp), %rcx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_mq_receive
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	movq	_errno@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	movq	_MQ_PRIO_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	movl	$0, %edi
	cmpl	%eax, -44(%rbp)
	jne	LBB0_10
## %bb.9:
	xorl	%edi, %edi
	cmpb	$100, (%rbx)
	sete	%dil
LBB0_10:
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	leaq	-44(%rbp), %rcx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_mq_receive
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	movl	(%r13), %edx
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	cmpl	$0, -44(%rbp)
	jne	LBB0_12
## %bb.11:
	xorl	%r12d, %r12d
	cmpb	$101, (%rbx)
	sete	%r12b
LBB0_12:
	leaq	L_.str.13(%rip), %rsi
	movl	%r12d, %edi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	addq	$8, %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	"mq_getattr failed %d"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"calloc failed"

L_.str.2:                               ## @.str.2
	.asciz	"mq_receive 1 failed: %d"

	.comm	_MQ_PRIO_BASE,4,2               ## @MQ_PRIO_BASE
L_.str.3:                               ## @.str.3
	.asciz	"mq_receive 1 prio/data mismatch"

L_.str.4:                               ## @.str.4
	.asciz	"mq_receive 2 failed: %d"

L_.str.5:                               ## @.str.5
	.asciz	"mq_receive 2 prio/data mismatch"

L_.str.6:                               ## @.str.6
	.asciz	"mq_receive 3 failed: %d"

L_.str.7:                               ## @.str.7
	.asciz	"mq_receive 3 prio/data mismatch"

L_.str.8:                               ## @.str.8
	.asciz	"mq_receive 4 failed: %d"

L_.str.9:                               ## @.str.9
	.asciz	"mq_receive 4 prio/data mismatch"

L_.str.10:                              ## @.str.10
	.asciz	"mq_receive 5 failed: %d"

L_.str.11:                              ## @.str.11
	.asciz	"mq_receive 5 prio/data mismatch"

L_.str.12:                              ## @.str.12
	.asciz	"mq_receive 6 failed: %d"

L_.str.13:                              ## @.str.13
	.asciz	"mq_receive 6 prio/data mismatch"

	.no_dead_strip	_receive_msgs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function receive_msgs
_receive_msgs:                          ; @receive_msgs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	add	x1, sp, #24
	bl	_mq_getattr
	cmn	w0, #1
	cset	w0, ne
Lloh0:
	adrp	x22, _errno@GOTPAGE
Lloh1:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	w8, [x22]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	ldr	w21, [sp, #24]
	mov	w0, #1
	mov	x1, x21
	bl	_calloc
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	add	x3, sp, #20
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mq_receive
	cmn	w0, #1
	cset	w0, ne
	ldr	w8, [x22]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	ldr	w8, [sp, #20]
Lloh8:
	adrp	x23, _MQ_PRIO_BASE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _MQ_PRIO_BASE@GOTPAGEOFF]
	ldr	w9, [x23]
	add	w9, w9, #1
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	ldrb	w8, [x20]
	cmp	w8, #98
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	add	x3, sp, #20
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mq_receive
	cmn	w0, #1
	cset	w0, ne
	ldr	w8, [x22]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	ldr	w8, [sp, #20]
	ldr	w9, [x23]
	add	w9, w9, #1
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	ldrb	w8, [x20]
	cmp	w8, #102
	cset	w0, eq
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	add	x3, sp, #20
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mq_receive
	cmn	w0, #1
	cset	w0, ne
	ldr	w8, [x22]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	ldr	w8, [sp, #20]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:
	ldrb	w8, [x20]
	cmp	w8, #97
	cset	w0, eq
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
Lloh18:
	adrp	x1, l_.str.7@PAGE
Lloh19:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	add	x3, sp, #20
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mq_receive
	cmn	w0, #1
	cset	w0, ne
	ldr	w8, [x22]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.8@PAGE
Lloh21:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	ldr	w8, [sp, #20]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.10:
	ldrb	w8, [x20]
	cmp	w8, #99
	cset	w0, eq
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
Lloh22:
	adrp	x1, l_.str.9@PAGE
Lloh23:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	add	x3, sp, #20
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mq_receive
	cmn	w0, #1
	cset	w0, ne
	ldr	w8, [x22]
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.10@PAGE
Lloh25:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	ldr	w8, [sp, #20]
	ldr	w9, [x23]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.13:
	ldrb	w8, [x20]
	cmp	w8, #100
	cset	w0, eq
	b	LBB0_15
LBB0_14:
	mov	w0, #0
LBB0_15:
Lloh26:
	adrp	x1, l_.str.11@PAGE
Lloh27:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	add	x3, sp, #20
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mq_receive
	cmn	w0, #1
	cset	w0, ne
	ldr	w8, [x22]
	str	x8, [sp]
Lloh28:
	adrp	x1, l_.str.12@PAGE
Lloh29:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_17
; %bb.16:
	mov	w0, #0
	b	LBB0_18
LBB0_17:
	ldrb	w8, [x20]
	cmp	w8, #101
	cset	w0, eq
LBB0_18:
Lloh30:
	adrp	x1, l_.str.13@PAGE
Lloh31:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mq_getattr failed %d"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"calloc failed"

l_.str.2:                               ; @.str.2
	.asciz	"mq_receive 1 failed: %d"

	.comm	_MQ_PRIO_BASE,4,2               ; @MQ_PRIO_BASE
l_.str.3:                               ; @.str.3
	.asciz	"mq_receive 1 prio/data mismatch"

l_.str.4:                               ; @.str.4
	.asciz	"mq_receive 2 failed: %d"

l_.str.5:                               ; @.str.5
	.asciz	"mq_receive 2 prio/data mismatch"

l_.str.6:                               ; @.str.6
	.asciz	"mq_receive 3 failed: %d"

l_.str.7:                               ; @.str.7
	.asciz	"mq_receive 3 prio/data mismatch"

l_.str.8:                               ; @.str.8
	.asciz	"mq_receive 4 failed: %d"

l_.str.9:                               ; @.str.9
	.asciz	"mq_receive 4 prio/data mismatch"

l_.str.10:                              ; @.str.10
	.asciz	"mq_receive 5 failed: %d"

l_.str.11:                              ; @.str.11
	.asciz	"mq_receive 5 prio/data mismatch"

l_.str.12:                              ; @.str.12
	.asciz	"mq_receive 6 failed: %d"

l_.str.13:                              ; @.str.13
	.asciz	"mq_receive 6 prio/data mismatch"

	.no_dead_strip	_receive_msgs
.subsections_via_symbols
