	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function writequeuef
_writequeuef:                           ## @writequeuef
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_EXCL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	32(%rdi), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	$432, %edx                      ## imm = 0x1B0
	callq	_open_locked
	movl	$-1, %r14d
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	$432, %esi                      ## imm = 0x1B0
	callq	_fchmod
	testq	%rax, %rax
	js	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_fdopen
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	(%r15), %rdx
	movq	8(%r15), %rcx
	movq	16(%r15), %r8
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_fprintf
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	movq	24(%r15), %rdi
	callq	_fflush
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	24(%r15), %rdi
	callq	_fileno
	movl	%eax, %edi
	callq	_fsync
	xorl	%r14d, %r14d
	negq	%rax
	sbbl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_EXCL,4,2                     ## @O_EXCL
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w+"

L_.str.1:                               ## @.str.1
	.asciz	"ID: %s\nSender: %s\nRecipient: %s\n"

	.no_dead_strip	_writequeuef
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function writequeuef
_writequeuef:                           ; @writequeuef
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #32]
Lloh0:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _O_EXCL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_EXCL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w2, #432
	bl	_open_locked
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.1:
	mov	x20, x0
	mov	w1, #432
	bl	_fchmod
	tbnz	x0, #63, LBB0_5
; %bb.2:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_fdopen
	str	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.3:
	ldp	x2, x3, [x19]
	ldr	x4, [x19, #16]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	x0, [x19, #24]
	bl	_fflush
	cbz	x0, LBB0_7
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x0, [x19, #24]
	bl	_fileno
	bl	_fsync
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_EXCL,4,2                     ; @O_EXCL
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w+"

l_.str.1:                               ; @.str.1
	.asciz	"ID: %s\nSender: %s\nRecipient: %s\n"

	.no_dead_strip	_writequeuef
.subsections_via_symbols
