	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function selinux_socket_post_create
_selinux_socket_post_create:            ## @selinux_socket_post_create
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_current_cred
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	8(%rax), %r14
	movq	%r12, %rdi
	callq	_SOCK_INODE
	movq	(%rax), %r15
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.1:
	movq	_SECINITSID_KERNEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	jmp	LBB0_5
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	%rbx, 8(%r15)
	jmp	LBB0_5
LBB0_4:
	movq	%r14, 8(%r15)
LBB0_5:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_socket_type_to_security_class
	movl	%eax, 4(%r15)
	movl	$1, (%r15)
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.7:
	movq	(%rdi), %rcx
	movq	8(%r15), %rdx
	movq	%rdx, 8(%rcx)
	movl	%eax, (%rcx)
	movl	%ebx, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_selinux_netlbl_socket_post_create ## TAILCALL
LBB0_6:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SECINITSID_KERNEL,8,3          ## @SECINITSID_KERNEL
	.no_dead_strip	_selinux_socket_post_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function selinux_socket_post_create
_selinux_socket_post_create:            ; @selinux_socket_post_create
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_current_cred
	ldr	x8, [x0]
	ldp	x26, x25, [x8]
	mov	x0, x20
	bl	_SOCK_INODE
	ldr	x24, [x0]
	cbz	w23, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SECINITSID_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SECINITSID_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x24, #8]
	b	LBB0_5
LBB0_2:
	cbz	x26, LBB0_4
; %bb.3:
	str	x26, [x24, #8]
	b	LBB0_5
LBB0_4:
	str	x25, [x24, #8]
LBB0_5:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_socket_type_to_security_class
	mov	w8, #1
	stp	w8, w0, [x24]
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x9, [x8]
	ldr	x10, [x24, #8]
	str	x10, [x9, #8]
	str	w0, [x9]
	mov	x0, x8
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_selinux_netlbl_socket_post_create
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SECINITSID_KERNEL,8,3          ; @SECINITSID_KERNEL
	.no_dead_strip	_selinux_socket_post_create
.subsections_via_symbols
