	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c_perm                         ## -- Begin function c_perm
	.p2align	4, 0x90
_c_perm:                                ## @c_perm
	.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
	movq	%rdi, %r15
	callq	_nextarg
	movq	%rax, %r12
	movq	_FTS_NOSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	_ftsoptions@GOTPCREL(%rip), %rcx
	andl	%eax, (%rcx)
	movq	%r15, %rdi
	callq	_palloc
	movq	%rax, %r14
	movb	(%r12), %al
	cmpb	$45, %al
	je	LBB0_1
## %bb.2:
	cmpb	$43, %al
	jne	LBB0_5
## %bb.3:
	movq	_F_ANY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_F_ATLEAST@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
	incq	%r12
LBB0_5:
	movq	%r12, %rdi
	callq	_setmode
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r12, %rcx
	callq	_errx
LBB0_7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_getmode
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_free
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FTS_NOSTAT,4,2                 ## @FTS_NOSTAT
	.comm	_ftsoptions,4,2                 ## @ftsoptions
	.comm	_F_ATLEAST,4,2                  ## @F_ATLEAST
	.comm	_F_ANY,4,2                      ## @F_ANY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s: illegal mode string"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c_perm                         ; -- Begin function c_perm
	.p2align	2
_c_perm:                                ; @c_perm
	.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, x0
	bl	_nextarg
	mov	x20, x0
Lloh0:
	adrp	x8, _FTS_NOSTAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FTS_NOSTAT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ftsoptions@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ftsoptions@GOTPAGEOFF]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
	mov	x0, x21
	bl	_palloc
	mov	x19, x0
	ldrb	w8, [x20]
	cmp	w8, #45
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #43
	b.ne	LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _F_ANY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _F_ANY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _F_ATLEAST@GOTPAGE
Lloh8:
	ldr	x8, [x8, _F_ATLEAST@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	add	x20, x20, #1
LBB0_5:
	mov	x0, x20
	bl	_setmode
	mov	x22, x0
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	w2, [x21]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x3, x20
	bl	_errx
LBB0_7:
	mov	x0, x22
	mov	w1, #0
	bl	_getmode
	str	w0, [x19]
	mov	x0, x22
	bl	_free
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FTS_NOSTAT,4,2                 ; @FTS_NOSTAT
	.comm	_ftsoptions,4,2                 ; @ftsoptions
	.comm	_F_ATLEAST,4,2                  ; @F_ATLEAST
	.comm	_F_ANY,4,2                      ; @F_ANY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s: illegal mode string"

.subsections_via_symbols
