	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netlbl_unlhsh_remove           ## -- Begin function netlbl_unlhsh_remove
	.p2align	4, 0x90
_netlbl_unlhsh_remove:                  ## @netlbl_unlhsh_remove
	.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
	cmpl	$4, %r8d
	jne	LBB0_1
## %bb.2:
	movq	%r9, %r13
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_rcu_read_lock
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dev_get_by_name
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %rbx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	callq	_netlbl_unlhsh_search_iface
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_dev_put
	testq	%r13, %r13
	je	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_netlbl_unlhsh_remove_addr4
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	callq	_netlbl_unlhsh_condremove_iface
	movq	_netlabel_mgmt_protocount@GOTPCREL(%rip), %rdi
	callq	_atomic_dec
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_7:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	_netlbl_unlhsh_def@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rcu_dereference
	movq	%rax, %r13
	testq	%r13, %r13
	jne	LBB0_10
LBB0_9:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_13:
	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	_ENODEV,4,2                     ## @ENODEV
	.comm	_netlbl_unlhsh_def,4,2          ## @netlbl_unlhsh_def
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_netlabel_mgmt_protocount,4,2   ## @netlabel_mgmt_protocount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netlbl_unlhsh_remove           ; -- Begin function netlbl_unlhsh_remove
	.p2align	2
_netlbl_unlhsh_remove:                  ; @netlbl_unlhsh_remove
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w4, #4
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x5
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	bl	_rcu_read_lock
	cbz	x23, LBB0_7
; %bb.2:
	mov	x0, x22
	mov	x1, x23
	bl	_dev_get_by_name
	cbz	x0, LBB0_9
; %bb.3:
	mov	x24, x0
	ldr	w0, [x0]
	bl	_netlbl_unlhsh_search_iface
	mov	x23, x0
	mov	x0, x24
	bl	_dev_put
	cbz	x23, LBB0_8
LBB0_4:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_netlbl_unlhsh_remove_addr4
	mov	x19, x0
	cbnz	w0, LBB0_11
; %bb.5:
	mov	x0, x23
	bl	_netlbl_unlhsh_condremove_iface
Lloh0:
	adrp	x0, _netlabel_mgmt_protocount@GOTPAGE
Lloh1:
	ldr	x0, [x0, _netlabel_mgmt_protocount@GOTPAGEOFF]
	bl	_atomic_dec
	b	LBB0_11
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_12
LBB0_7:
Lloh5:
	adrp	x8, _netlbl_unlhsh_def@GOTPAGE
Lloh6:
	ldr	x8, [x8, _netlbl_unlhsh_def@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_rcu_dereference
	mov	x23, x0
	cbnz	x23, LBB0_4
LBB0_8:
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_11:
	bl	_rcu_read_unlock
LBB0_12:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_netlbl_unlhsh_def,4,2          ; @netlbl_unlhsh_def
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_netlabel_mgmt_protocount,4,2   ; @netlabel_mgmt_protocount
.subsections_via_symbols
