	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smack_netlabel
_smack_netlabel:                        ## @smack_netlabel
	.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	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_local_bh_disable
	movq	%rbx, %rdi
	callq	_bh_lock_sock_nested
	movq	(%r12), %rax
	movq	_smack_net_ambient@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_SMACK_UNLABELED_SOCKET@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_2
## %bb.3:
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	callq	_netlbl_secattr_init
	movq	(%r12), %rdi
	movq	%r15, %rsi
	callq	_smack_to_secattr
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_netlbl_sock_setattr
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_netlbl_secattr_destroy
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_netlbl_sock_delattr
LBB0_4:
	movq	%rbx, %rdi
	callq	_bh_unlock_sock
	xorl	%eax, %eax
	callq	_local_bh_enable
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_smack_net_ambient,8,3          ## @smack_net_ambient
	.comm	_SMACK_UNLABELED_SOCKET,4,2     ## @SMACK_UNLABELED_SOCKET
	.no_dead_strip	_smack_netlabel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smack_netlabel
_smack_netlabel:                        ; @smack_netlabel
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	bl	_local_bh_disable
	mov	x0, x19
	bl	_bh_lock_sock_nested
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _smack_net_ambient@GOTPAGE
Lloh1:
	ldr	x9, [x9, _smack_net_ambient@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _SMACK_UNLABELED_SOCKET@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SMACK_UNLABELED_SOCKET@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x8, x9
	ccmp	w10, w20, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_netlbl_sock_delattr
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	add	x0, sp, #8
	bl	_netlbl_secattr_init
	ldr	x0, [x21]
	add	x1, sp, #8
	bl	_smack_to_secattr
	ldr	w1, [x19]
	add	x2, sp, #8
	mov	x0, x19
	bl	_netlbl_sock_setattr
	mov	x20, x0
	add	x0, sp, #8
	bl	_netlbl_secattr_destroy
LBB0_3:
	mov	x0, x19
	bl	_bh_unlock_sock
	bl	_local_bh_enable
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_smack_net_ambient,8,3          ; @smack_net_ambient
	.comm	_SMACK_UNLABELED_SOCKET,4,2     ; @SMACK_UNLABELED_SOCKET
	.no_dead_strip	_smack_netlabel
.subsections_via_symbols
