	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cl_omesg                       ## -- Begin function cl_omesg
	.p2align	4, 0x90
_cl_omesg:                              ## @cl_omesg
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ttyname
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	leaq	-40(%rbp), %rsi
	movq	%rax, %rdi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_4
## %bb.6:
	movq	(%r12), %rax
	movq	_TGW_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.7:
	movq	_S_IWGRP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-40(%rbp), %eax
	jne	LBB0_8
## %bb.9:
	movq	_TGW_UNSET@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	movl	$1, %r15d
	testq	%r14, %r14
	je	LBB0_19
## %bb.2:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_msgq
	jmp	LBB0_19
LBB0_4:
	movl	$1, %r15d
	testq	%r14, %r14
	je	LBB0_19
## %bb.5:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_18
LBB0_8:
	movq	_TGW_SET@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rax
	movq	%rax, (%r12)
LBB0_11:
	movl	-40(%rbp), %esi
	movq	_S_IWGRP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.12:
	orl	%esi, %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_chmod
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jns	LBB0_19
## %bb.13:
	movl	$1, %r15d
	testq	%r14, %r14
	je	LBB0_19
## %bb.14:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_18
LBB0_15:
	notl	%eax
	andl	%eax, %esi
	movq	%rbx, %rdi
	callq	_chmod
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jns	LBB0_19
## %bb.16:
	movl	$1, %r15d
	testq	%r14, %r14
	je	LBB0_19
## %bb.17:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_18:
	movq	%r14, %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_msgq
LBB0_19:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STDERR_FILENO,4,2              ## @STDERR_FILENO
	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stderr"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_TGW_UNKNOWN,8,3                ## @TGW_UNKNOWN
	.comm	_S_IWGRP,4,2                    ## @S_IWGRP
	.comm	_TGW_SET,8,3                    ## @TGW_SET
	.comm	_TGW_UNSET,8,3                  ## @TGW_UNSET
L_.str.2:                               ## @.str.2
	.asciz	"046|messages not turned on: %s"

L_.str.3:                               ## @.str.3
	.asciz	"045|messages not turned off: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cl_omesg                       ; -- Begin function cl_omesg
	.p2align	2
_cl_omesg:                              ; @cl_omesg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ttyname
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	add	x1, sp, #8
	bl	_stat
	tbnz	x0, #63, LBB0_10
; %bb.2:
	ldr	x9, [x22]
Lloh3:
	adrp	x8, _TGW_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TGW_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
Lloh6:
	adrp	x8, _S_IWGRP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_IWGRP@GOTPAGEOFF]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	ldr	w9, [sp, #8]
	ldr	w10, [x8]
Lloh8:
	adrp	x11, _TGW_SET@GOTPAGE
Lloh9:
	ldr	x11, [x11, _TGW_SET@GOTPAGEOFF]
Lloh10:
	adrp	x12, _TGW_UNSET@GOTPAGE
Lloh11:
	ldr	x12, [x12, _TGW_UNSET@GOTPAGEOFF]
	tst	w10, w9
	csel	x9, x12, x11, eq
	ldr	x9, [x9]
	str	x9, [x22]
LBB0_4:
	ldr	w9, [sp, #8]
	ldr	w8, [x8]
	cbz	w21, LBB0_12
; %bb.5:
	orr	w1, w8, w9
	mov	x0, x20
	bl	_chmod
	tbz	x0, #63, LBB0_13
; %bb.6:
	cbz	x19, LBB0_17
; %bb.7:
Lloh12:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_8:
	cbz	x19, LBB0_17
; %bb.9:
Lloh17:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_16
LBB0_10:
	cbz	x19, LBB0_17
; %bb.11:
Lloh22:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh25:
	adrp	x2, l_.str.1@PAGE
Lloh26:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_12:
	bic	w1, w9, w8
	mov	x0, x20
	bl	_chmod
	tbnz	x0, #63, LBB0_14
LBB0_13:
	mov	w0, #0
	b	LBB0_18
LBB0_14:
	cbz	x19, LBB0_17
; %bb.15:
Lloh27:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh30:
	adrp	x2, l_.str.3@PAGE
Lloh31:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_msgq
LBB0_17:
	mov	w0, #1
LBB0_18:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stderr"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_TGW_UNKNOWN,8,3                ; @TGW_UNKNOWN
	.comm	_S_IWGRP,4,2                    ; @S_IWGRP
	.comm	_TGW_SET,8,3                    ; @TGW_SET
	.comm	_TGW_UNSET,8,3                  ; @TGW_UNSET
l_.str.2:                               ; @.str.2
	.asciz	"046|messages not turned on: %s"

l_.str.3:                               ; @.str.3
	.asciz	"045|messages not turned off: %s"

.subsections_via_symbols
