	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acl_set_permset                ## -- Begin function acl_set_permset
	.p2align	4, 0x90
_acl_set_permset:                       ## @acl_set_permset
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rsi), %eax
	movq	_ACL_POSIX1E_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%ecx, %eax
	je	LBB0_6
## %bb.3:
	movq	_ACL_NFS4_PERM_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%ecx, %eax
	jne	LBB0_1
## %bb.4:
	movq	_ACL_BRAND_NFS4@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	__entry_brand_may_be
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	__entry_brand_as
	movl	(%r14), %eax
LBB0_6:
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_ACL_POSIX1E_BITS,4,2           ## @ACL_POSIX1E_BITS
	.comm	_ACL_NFS4_PERM_BITS,4,2         ## @ACL_NFS4_PERM_BITS
	.comm	_ACL_BRAND_NFS4,4,2             ## @ACL_BRAND_NFS4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acl_set_permset                ; -- Begin function acl_set_permset
	.p2align	2
_acl_set_permset:                       ; @acl_set_permset
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _ACL_POSIX1E_BITS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACL_POSIX1E_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.eq	LBB0_5
; %bb.2:
Lloh3:
	adrp	x9, _ACL_NFS4_PERM_BITS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACL_NFS4_PERM_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.ne	LBB0_6
; %bb.3:
Lloh6:
	adrp	x21, _ACL_BRAND_NFS4@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ACL_BRAND_NFS4@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	__entry_brand_may_be
	cbz	w0, LBB0_6
; %bb.4:
	ldr	w1, [x21]
	mov	x0, x19
	bl	__entry_brand_as
	ldr	w8, [x20]
LBB0_5:
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _errno@GOTPAGE
Lloh12:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh13:
	str	w8, [x9]
	mov	w0, #-1
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_ACL_POSIX1E_BITS,4,2           ; @ACL_POSIX1E_BITS
	.comm	_ACL_NFS4_PERM_BITS,4,2         ; @ACL_NFS4_PERM_BITS
	.comm	_ACL_BRAND_NFS4,4,2             ; @ACL_BRAND_NFS4
.subsections_via_symbols
