	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netlbl_unlhsh_add              ## -- Begin function netlbl_unlhsh_add
	.p2align	4, 0x90
_netlbl_unlhsh_add:                     ## @netlbl_unlhsh_add
	.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
	movq	$0, -48(%rbp)
	cmpl	$4, %r8d
	jne	LBB0_1
## %bb.2:
	movl	%r9d, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	testq	%r15, %r15
	je	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_dev_get_by_name
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movl	%r12d, %ebx
	movl	(%rax), %r13d
	movq	%rax, %rdi
	callq	_dev_put
	movl	%r13d, %edi
	callq	_netlbl_unlhsh_search_iface
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_7:
	movl	%r12d, %ebx
	movq	_netlbl_unlhsh_def@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rcu_dereference
LBB0_8:
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movl	%r13d, %edi
	callq	_netlbl_unlhsh_add_iface
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_10
LBB0_11:
	movq	16(%rbp), %rsi
	movq	_AUDIT_MAC_UNLBL_STCADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_netlbl_audit_start_common
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%ebx, %ecx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	callq	_netlbl_unlhsh_add_addr4
	movl	%eax, %ebx
	testq	%r13, %r13
	je	LBB0_13
## %bb.12:
	movl	(%r14), %ecx
	movl	(%r12), %r8d
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	callq	_netlbl_af4list_audit_addr
LBB0_13:
	testl	%ebx, %ebx
	jne	LBB0_15
## %bb.14:
	movq	_netlabel_mgmt_protocount@GOTPCREL(%rip), %rdi
	callq	_atomic_inc
LBB0_15:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	testq	%r13, %r13
	je	LBB0_19
## %bb.16:
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_security_secid_to_secctx
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	-48(%rbp), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_audit_log_format
	movq	-48(%rbp), %rdi
	movl	-56(%rbp), %esi
	callq	_security_release_secctx
LBB0_18:
	xorl	%edx, %edx
	testl	%ebx, %ebx
	sete	%dl
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_audit_log_format
	movq	%r13, %rdi
	callq	_audit_log_end
	jmp	LBB0_19
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_netlbl_unlhsh_def,4,2          ## @netlbl_unlhsh_def
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AUDIT_MAC_UNLBL_STCADD,4,2     ## @AUDIT_MAC_UNLBL_STCADD
	.comm	_netlabel_mgmt_protocount,4,2   ## @netlabel_mgmt_protocount
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" sec_obj=%s"

L_.str.1:                               ## @.str.1
	.asciz	" res=%u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netlbl_unlhsh_add              ; -- Begin function netlbl_unlhsh_add
	.p2align	2
_netlbl_unlhsh_add:                     ; @netlbl_unlhsh_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	xzr, [sp, #24]
	cmp	w4, #4
	b.ne	LBB0_4
; %bb.1:
	mov	x21, x6
	mov	x19, x5
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x24, x0
	bl	_rcu_read_lock
	cbz	x20, LBB0_5
; %bb.2:
	mov	x0, x24
	mov	x1, x20
	bl	_dev_get_by_name
	cbz	x0, LBB0_15
; %bb.3:
	ldr	w24, [x0]
	bl	_dev_put
	mov	x0, x24
	bl	_netlbl_unlhsh_search_iface
	mov	x25, x0
	cbnz	x25, LBB0_7
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_18
LBB0_5:
Lloh3:
	adrp	x8, _netlbl_unlhsh_def@GOTPAGE
Lloh4:
	ldr	x8, [x8, _netlbl_unlhsh_def@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_rcu_dereference
	mov	x25, x0
	mov	w24, #0
	cbnz	x25, LBB0_7
LBB0_6:
	mov	x0, x24
	bl	_netlbl_unlhsh_add_iface
	mov	x25, x0
	cbz	x0, LBB0_16
LBB0_7:
Lloh6:
	adrp	x8, _AUDIT_MAC_UNLBL_STCADD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AUDIT_MAC_UNLBL_STCADD@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_netlbl_audit_start_common
	mov	x24, x0
	mov	x0, x25
	mov	x1, x23
	mov	x2, x22
	mov	x3, x19
	bl	_netlbl_unlhsh_add_addr4
	mov	x21, x0
	cbz	x24, LBB0_9
; %bb.8:
	ldr	w3, [x23]
	ldr	w4, [x22]
	mov	x0, x24
	mov	w1, #1
	mov	x2, x20
	bl	_netlbl_af4list_audit_addr
LBB0_9:
	cbnz	w21, LBB0_11
; %bb.10:
Lloh9:
	adrp	x0, _netlabel_mgmt_protocount@GOTPAGE
Lloh10:
	ldr	x0, [x0, _netlabel_mgmt_protocount@GOTPAGEOFF]
	bl	_atomic_inc
LBB0_11:
	bl	_rcu_read_unlock
	cbz	x24, LBB0_18
; %bb.12:
	add	x1, sp, #24
	add	x2, sp, #20
	mov	x0, x19
	bl	_security_secid_to_secctx
	cbnz	x0, LBB0_14
; %bb.13:
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_audit_log_format
	ldr	x0, [sp, #24]
	ldr	w1, [sp, #20]
	bl	_security_release_secctx
LBB0_14:
	cmp	w21, #0
	cset	w8, eq
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_audit_log_format
	mov	x0, x24
	bl	_audit_log_end
	b	LBB0_18
LBB0_15:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w21, w8
	bl	_rcu_read_unlock
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_netlbl_unlhsh_def,4,2          ; @netlbl_unlhsh_def
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AUDIT_MAC_UNLBL_STCADD,4,2     ; @AUDIT_MAC_UNLBL_STCADD
	.comm	_netlabel_mgmt_protocount,4,2   ; @netlabel_mgmt_protocount
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" sec_obj=%s"

l_.str.1:                               ; @.str.1
	.asciz	" res=%u"

.subsections_via_symbols
