	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00mac_remove_interface     ## -- Begin function rt2x00mac_remove_interface
	.p2align	4, 0x90
_rt2x00mac_remove_interface:            ## @rt2x00mac_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r15
	movq	%rsi, %rdi
	callq	_vif_to_intf
	movq	%rax, %r14
	movq	_DEVICE_STATE_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movl	4(%r15), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	leaq	4(%r15), %rcx
	jmp	LBB0_4
LBB0_5:
	movl	(%r15), %eax
	movq	%r15, %rcx
	testl	%eax, %eax
	je	LBB0_6
LBB0_4:
	decl	%eax
	movl	%eax, (%rcx)
	movq	_ENTRY_BCN_ASSIGNED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	callq	_clear_bit
	movq	_NL80211_IFTYPE_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rt2x00lib_config_intf          ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVICE_STATE_PRESENT,4,2       ## @DEVICE_STATE_PRESENT
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_ENTRY_BCN_ASSIGNED,4,2         ## @ENTRY_BCN_ASSIGNED
	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ## @NL80211_IFTYPE_UNSPECIFIED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00mac_remove_interface     ; -- Begin function rt2x00mac_remove_interface
	.p2align	2
_rt2x00mac_remove_interface:            ; @rt2x00mac_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	x21, x1
	ldr	x19, [x0]
	mov	x0, x1
	bl	_vif_to_intf
	mov	x20, x0
Lloh0:
	adrp	x8, _DEVICE_STATE_PRESENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEVICE_STATE_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x9, x19
	ldr	w8, [x9, #4]!
	cbnz	w8, LBB0_5
	b	LBB0_6
LBB0_3:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.4:
	mov	x9, x19
LBB0_5:
	sub	w8, w8, #1
	str	w8, [x9]
Lloh6:
	adrp	x8, _ENTRY_BCN_ASSIGNED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENTRY_BCN_ASSIGNED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x1, [x20]
	bl	_clear_bit
Lloh9:
	adrp	x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, #0
	mov	x4, #0
	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	_rt2x00lib_config_intf
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVICE_STATE_PRESENT,4,2       ; @DEVICE_STATE_PRESENT
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_ENTRY_BCN_ASSIGNED,4,2         ; @ENTRY_BCN_ASSIGNED
	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ; @NL80211_IFTYPE_UNSPECIFIED
.subsections_via_symbols
