	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netlbl_mgmt_adddef
_netlbl_mgmt_adddef:                    ## @netlbl_mgmt_adddef
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rax
	movq	_NLBL_MGMT_A_PROTOCOL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_7
## %bb.1:
	movq	%rsi, %rbx
	movq	_NLBL_MGMT_A_IPV4ADDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	movq	_NLBL_MGMT_A_IPV6ADDR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rax,%rdx,8)
	jne	LBB0_7
LBB0_3:
	movq	_NLBL_MGMT_A_IPV4MASK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rdx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	movq	_NLBL_MGMT_A_IPV6MASK@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	$0, (%rax,%rsi,8)
	jne	LBB0_7
LBB0_5:
	testq	%rcx, %rcx
	setne	%cl
	testq	%rdx, %rdx
	setne	%dl
	xorb	%cl, %dl
	jne	LBB0_7
## %bb.6:
	movq	_NLBL_MGMT_A_IPV6ADDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	setne	%cl
	movq	_NLBL_MGMT_A_IPV6MASK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rax,%rdx,8)
	setne	%al
	cmpb	%al, %cl
	je	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	leaq	-24(%rbp), %r14
	movq	%r14, %rsi
	callq	_netlbl_netlink_auditinfo
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_netlbl_mgmt_add_common
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_NLBL_MGMT_A_PROTOCOL,8,3       ## @NLBL_MGMT_A_PROTOCOL
	.comm	_NLBL_MGMT_A_IPV4ADDR,8,3       ## @NLBL_MGMT_A_IPV4ADDR
	.comm	_NLBL_MGMT_A_IPV6ADDR,8,3       ## @NLBL_MGMT_A_IPV6ADDR
	.comm	_NLBL_MGMT_A_IPV4MASK,8,3       ## @NLBL_MGMT_A_IPV4MASK
	.comm	_NLBL_MGMT_A_IPV6MASK,8,3       ## @NLBL_MGMT_A_IPV6MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_netlbl_mgmt_adddef
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netlbl_mgmt_adddef
_netlbl_mgmt_adddef:                    ; @netlbl_mgmt_adddef
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _NLBL_MGMT_A_PROTOCOL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NLBL_MGMT_A_PROTOCOL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_7
; %bb.1:
	mov	x19, x1
Lloh3:
	adrp	x9, _NLBL_MGMT_A_IPV4ADDR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NLBL_MGMT_A_IPV4ADDR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_3
; %bb.2:
Lloh6:
	adrp	x10, _NLBL_MGMT_A_IPV6ADDR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NLBL_MGMT_A_IPV6ADDR@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	ldr	x10, [x8, x10, lsl #3]
	cbnz	x10, LBB0_7
LBB0_3:
Lloh9:
	adrp	x10, _NLBL_MGMT_A_IPV4MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NLBL_MGMT_A_IPV4MASK@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldr	x10, [x8, x10, lsl #3]
	cbz	x10, LBB0_5
; %bb.4:
Lloh12:
	adrp	x11, _NLBL_MGMT_A_IPV6MASK@GOTPAGE
Lloh13:
	ldr	x11, [x11, _NLBL_MGMT_A_IPV6MASK@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	ldr	x11, [x8, x11, lsl #3]
	cbnz	x11, LBB0_7
LBB0_5:
	cmp	x9, #0
	cset	w9, ne
	cmp	x10, #0
	cset	w10, ne
	eor	w9, w9, w10
	tbnz	w9, #0, LBB0_7
; %bb.6:
Lloh15:
	adrp	x9, _NLBL_MGMT_A_IPV6ADDR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NLBL_MGMT_A_IPV6ADDR@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cmp	x9, #0
	cset	w9, ne
Lloh18:
	adrp	x10, _NLBL_MGMT_A_IPV6MASK@GOTPAGE
Lloh19:
	ldr	x10, [x10, _NLBL_MGMT_A_IPV6MASK@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	ldr	x8, [x8, x10, lsl #3]
	cmp	x8, #0
	cset	w8, ne
	cmp	w9, w8
	b.eq	LBB0_9
LBB0_7:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
	add	x1, sp, #8
	bl	_netlbl_netlink_auditinfo
	add	x1, sp, #8
	mov	x0, x19
	bl	_netlbl_mgmt_add_common
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_NLBL_MGMT_A_PROTOCOL,8,3       ; @NLBL_MGMT_A_PROTOCOL
	.comm	_NLBL_MGMT_A_IPV4ADDR,8,3       ; @NLBL_MGMT_A_IPV4ADDR
	.comm	_NLBL_MGMT_A_IPV6ADDR,8,3       ; @NLBL_MGMT_A_IPV6ADDR
	.comm	_NLBL_MGMT_A_IPV4MASK,8,3       ; @NLBL_MGMT_A_IPV4MASK
	.comm	_NLBL_MGMT_A_IPV6MASK,8,3       ; @NLBL_MGMT_A_IPV6MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_netlbl_mgmt_adddef
.subsections_via_symbols
