	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function selinux_nlmsg_perm
_selinux_nlmsg_perm:                    ## @selinux_nlmsg_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_SOCK_INODE
	movq	(%rax), %r13
	movq	(%r14), %r15
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_NLMSG_SPACE
	cmpq	%rax, %r15
	jge	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movq	%r14, %rdi
	callq	_nlmsg_hdr
	movq	%rax, %r15
	movl	(%r13), %edi
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_selinux_nlmsg_lookup
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movl	%eax, %r14d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	jne	LBB0_7
## %bb.4:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AUDIT_SELINUX_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %r8d
	movl	(%r13), %r9d
	leaq	L_.str(%rip), %rcx
	callq	_audit_log
	movq	_selinux_enforcing@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_security_get_allow_unknown
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	xorl	%r14d, %r14d
LBB0_7:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	movl	(%rax), %eax
	addl	%r14d, %eax
	cmovnel	%r14d, %ebx
	jmp	LBB0_9
LBB0_8:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-44(%rbp), %edx
	movq	%r12, %rsi
	callq	_socket_has_perm
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_current,8,3                    ## @current
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_AUDIT_SELINUX_ERR,4,2          ## @AUDIT_SELINUX_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELinux:  unrecognized netlink message type=%hu for sclass=%hu\n"

	.comm	_selinux_enforcing,4,2          ## @selinux_enforcing
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_selinux_nlmsg_perm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function selinux_nlmsg_perm
_selinux_nlmsg_perm:                    ; @selinux_nlmsg_perm
	.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	x19, x1
	ldr	x20, [x0]
	mov	x0, x20
	bl	_SOCK_INODE
	ldr	x22, [x0]
	ldr	x21, [x19]
	mov	w0, #0
	bl	_NLMSG_SPACE
	cmp	x21, x0
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	mov	x0, x19
	bl	_nlmsg_hdr
	mov	x21, x0
	ldr	w0, [x22]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_selinux_nlmsg_lookup
	cbz	w0, LBB0_8
; %bb.3:
	mov	x19, x0
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.4:
Lloh6:
	adrp	x8, _current@GOTPAGE
Lloh7:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _AUDIT_SELINUX_ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AUDIT_SELINUX_ERR@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldr	w4, [x21]
	ldr	w5, [x22]
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	bl	_audit_log
Lloh17:
	adrp	x8, _selinux_enforcing@GOTPAGE
Lloh18:
	ldr	x8, [x8, _selinux_enforcing@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.5:
	bl	_security_get_allow_unknown
	cbz	x0, LBB0_7
LBB0_6:
	mov	w19, #0
LBB0_7:
Lloh20:
	adrp	x8, _ENOENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmn	w19, w8
	csel	w0, wzr, w19, eq
	b	LBB0_9
LBB0_8:
Lloh23:
	adrp	x8, _current@GOTPAGE
Lloh24:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh25:
	ldr	x0, [x8]
	ldr	w2, [sp, #12]
	mov	x1, x20
	bl	_socket_has_perm
LBB0_9:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_current,8,3                    ; @current
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_AUDIT_SELINUX_ERR,4,2          ; @AUDIT_SELINUX_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELinux:  unrecognized netlink message type=%hu for sclass=%hu\n"

	.comm	_selinux_enforcing,4,2          ; @selinux_enforcing
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_selinux_nlmsg_perm
.subsections_via_symbols
