	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_op_remove_interface
_rtl_op_remove_interface:               ## @rtl_op_remove_interface
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_rtl_priv
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_3:
	cmpl	$1, (%rbx)
	jne	LBB0_5
## %bb.4:
	movl	$0, (%rbx)
	movq	8(%r15), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	_RTL_IBSS_INT_MASKS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,4), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*8(%rcx)
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movq	_MAC80211_NOLINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	12(%rbx), %edi
	callq	_eth_zero_addr
	movq	_PEER_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_NL80211_IFTYPE_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 4(%rbx)
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_RTL_IBSS_INT_MASKS,8,3         ## @RTL_IBSS_INT_MASKS
	.comm	_MAC80211_NOLINK,4,2            ## @MAC80211_NOLINK
	.comm	_PEER_UNKNOWN,4,2               ## @PEER_UNKNOWN
	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ## @NL80211_IFTYPE_UNSPECIFIED
	.no_dead_strip	_rtl_op_remove_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_op_remove_interface
_rtl_op_remove_interface:               ; @rtl_op_remove_interface
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x1
	mov	x19, x0
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.2:
	str	wzr, [x21]
	ldr	x8, [x20, #8]
	ldp	x9, x8, [x8]
	ldr	x9, [x9, #8]
Lloh9:
	adrp	x10, _RTL_IBSS_INT_MASKS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RTL_IBSS_INT_MASKS@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldr	w2, [x8, x10, lsl #2]
	mov	x0, x19
	mov	w1, #0
	blr	x9
LBB0_3:
	stp	xzr, xzr, [x21, #24]
Lloh12:
	adrp	x8, _MAC80211_NOLINK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAC80211_NOLINK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	ldr	w0, [x21, #12]
	bl	_eth_zero_addr
Lloh15:
	adrp	x8, _PEER_UNKNOWN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PEER_UNKNOWN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x9]
	stp	w1, w8, [x21, #4]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_RTL_IBSS_INT_MASKS,8,3         ; @RTL_IBSS_INT_MASKS
	.comm	_MAC80211_NOLINK,4,2            ; @MAC80211_NOLINK
	.comm	_PEER_UNKNOWN,4,2               ; @PEER_UNKNOWN
	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ; @NL80211_IFTYPE_UNSPECIFIED
	.no_dead_strip	_rtl_op_remove_interface
.subsections_via_symbols
