	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_PLAIN_REQUIRE_KERNEL_MODULE
	movabsq	$429496729602, %rax             ## imm = 0x6400000002
	movq	%rax, -32(%rbp)
	movq	_MQNAME@GOTPCREL(%rip), %r14
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	(%r14), %edi
	movq	_O_EXCL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	leaq	-32(%rbp), %rcx
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_mq_open
	movq	%rax, %rbx
	cmpq	$-1, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movl	(%r14), %edi
	callq	_mq_unlink
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mq_getattr
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	movl	-32(%rbp), %eax
	cmpl	-40(%rbp), %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_8:
	movl	-28(%rbp), %eax
	cmpl	-36(%rbp), %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_10:
	movq	_SIGEV_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_SIGRTMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mq_notify
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_12:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mq_notify
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.15:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_16
LBB0_13:
	leaq	L_.str.7(%rip), %rsi
LBB0_16:
	movl	$1, %edi
	callq	_err
LBB0_17:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_mq_notify
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.9(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_19:
	movq	%rbx, %rdi
	callq	_mq_close
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	leaq	L_.str.10(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_21:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mqueuefs"

	.comm	_MQNAME,4,2                     ## @MQNAME
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_EXCL,4,2                     ## @O_EXCL
L_.str.1:                               ## @.str.1
	.asciz	"mq_open"

L_.str.2:                               ## @.str.2
	.asciz	"mq_unlink"

L_.str.3:                               ## @.str.3
	.asciz	"mq_getattr"

L_.str.4:                               ## @.str.4
	.asciz	"mq_maxmsg changed"

L_.str.5:                               ## @.str.5
	.asciz	"mq_msgsize changed"

	.comm	_SIGEV_SIGNAL,4,2               ## @SIGEV_SIGNAL
	.comm	_SIGRTMIN,4,2                   ## @SIGRTMIN
L_.str.6:                               ## @.str.6
	.asciz	"mq_notify"

L_.str.7:                               ## @.str.7
	.asciz	"mq_notify 2"

	.comm	_errno,8,3                      ## @errno
	.comm	_EBUSY,8,3                      ## @EBUSY
L_.str.8:                               ## @.str.8
	.asciz	"mq_notify 3"

L_.str.9:                               ## @.str.9
	.asciz	"mq_notify 4"

L_.str.10:                              ## @.str.10
	.asciz	"mq_close"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function main
lCPI0_0:
	.long	2                               ; 0x2
	.long	100                             ; 0x64
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_PLAIN_REQUIRE_KERNEL_MODULE
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #24]
Lloh4:
	adrp	x20, _MQNAME@GOTPAGE
Lloh5:
	ldr	x20, [x20, _MQNAME@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _O_EXCL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _O_EXCL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w8, w9
	add	x3, sp, #24
	mov	w2, #438
	bl	_mq_open
	mov	x19, x0
	cmn	x0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	ldr	w0, [x20]
	bl	_mq_unlink
	cbz	w0, LBB0_4
; %bb.3:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	add	x1, sp, #16
	mov	x0, x19
	bl	_mq_getattr
	cbz	w0, LBB0_6
; %bb.5:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
	ldr	w8, [sp, #24]
	ldr	w9, [sp, #16]
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.7:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
	ldr	w8, [sp, #28]
	ldr	w9, [sp, #20]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.9:
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_10:
Lloh25:
	adrp	x8, _SIGEV_SIGNAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SIGEV_SIGNAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _SIGRTMIN@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SIGRTMIN@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_mq_notify
	cbz	w0, LBB0_12
; %bb.11:
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_12:
	add	x1, sp, #8
	mov	x0, x19
	bl	_mq_notify
	cbz	w0, LBB0_15
; %bb.13:
Lloh33:
	adrp	x8, _errno@GOTPAGE
Lloh34:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
Lloh36:
	adrp	x9, _EBUSY@GOTPAGE
Lloh37:
	ldr	x9, [x9, _EBUSY@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.14:
Lloh39:
	adrp	x1, l_.str.8@PAGE
Lloh40:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh41:
	adrp	x1, l_.str.7@PAGE
Lloh42:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_16:
	mov	w0, #1
	bl	_err
LBB0_17:
	mov	x0, x19
	mov	x1, #0
	bl	_mq_notify
	cbz	w0, LBB0_19
; %bb.18:
Lloh43:
	adrp	x1, l_.str.9@PAGE
Lloh44:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_19:
	mov	x0, x19
	bl	_mq_close
	cbz	w0, LBB0_21
; %bb.20:
Lloh45:
	adrp	x1, l_.str.10@PAGE
Lloh46:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_21:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh6
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mqueuefs"

	.comm	_MQNAME,4,2                     ; @MQNAME
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_EXCL,4,2                     ; @O_EXCL
l_.str.1:                               ; @.str.1
	.asciz	"mq_open"

l_.str.2:                               ; @.str.2
	.asciz	"mq_unlink"

l_.str.3:                               ; @.str.3
	.asciz	"mq_getattr"

l_.str.4:                               ; @.str.4
	.asciz	"mq_maxmsg changed"

l_.str.5:                               ; @.str.5
	.asciz	"mq_msgsize changed"

	.comm	_SIGEV_SIGNAL,4,2               ; @SIGEV_SIGNAL
	.comm	_SIGRTMIN,4,2                   ; @SIGRTMIN
l_.str.6:                               ; @.str.6
	.asciz	"mq_notify"

l_.str.7:                               ; @.str.7
	.asciz	"mq_notify 2"

	.comm	_errno,8,3                      ; @errno
	.comm	_EBUSY,8,3                      ; @EBUSY
l_.str.8:                               ; @.str.8
	.asciz	"mq_notify 3"

l_.str.9:                               ; @.str.9
	.asciz	"mq_notify 4"

l_.str.10:                              ; @.str.10
	.asciz	"mq_close"

.subsections_via_symbols
