	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2x00lib_remove_hw
_rt2x00lib_remove_hw:                   ## @rt2x00lib_remove_hw
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_DEVICE_STATE_REGISTERED_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
	callq	_ieee80211_unregister_hw
LBB0_2:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	4(%rax), %edi
	callq	_kfree
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edi
	callq	_kfree
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
LBB0_4:
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVICE_STATE_REGISTERED_HW,4,2 ## @DEVICE_STATE_REGISTERED_HW
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.no_dead_strip	_rt2x00lib_remove_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2x00lib_remove_hw
_rt2x00lib_remove_hw:                   ; @rt2x00lib_remove_hw
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _DEVICE_STATE_REGISTERED_HW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEVICE_STATE_REGISTERED_HW@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
	bl	_ieee80211_unregister_hw
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh3:
	adrp	x20, _NL80211_BAND_2GHZ@GOTPAGE
Lloh4:
	ldr	x20, [x20, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	x0, [x8, x9, lsl #3]
	bl	_likely
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w0, [x8, #4]
	bl	_kfree
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w0, [x8]
	bl	_kfree
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x20]
	str	xzr, [x8, x9, lsl #3]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	str	xzr, [x8, x9, lsl #3]
LBB0_4:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVICE_STATE_REGISTERED_HW,4,2 ; @DEVICE_STATE_REGISTERED_HW
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.no_dead_strip	_rt2x00lib_remove_hw
.subsections_via_symbols
