	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2x00usb_free_entries
_rt2x00usb_free_entries:                ## @rt2x00usb_free_entries
	.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	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r15
	movq	24(%rdi), %r14
	cmpl	$0, (%rdi)
	je	LBB0_5
## %bb.2:
	movq	(%rax), %rbx
	movl	4(%rbx), %edi
	callq	_usb_kill_urb
	movl	4(%rbx), %edi
	callq	_usb_free_urb
	cmpl	$2, (%r15)
	jb	LBB0_5
## %bb.3:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %r12
	movl	4(%r12), %edi
	callq	_usb_kill_urb
	movl	4(%r12), %edi
	callq	_usb_free_urb
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_4
LBB0_5:
	movq	8(%r15), %rax
	movq	_QID_BEACON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.6:
	movq	_REQUIRE_BEACON_GUARD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_has_cap_flag
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$0, (%r15)
	je	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %r14
	movl	(%r14), %edi
	callq	_usb_kill_urb
	movl	(%r14), %edi
	callq	_usb_free_urb
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_9
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QID_BEACON,8,3                 ## @QID_BEACON
	.comm	_REQUIRE_BEACON_GUARD,4,2       ## @REQUIRE_BEACON_GUARD
	.no_dead_strip	_rt2x00usb_free_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2x00usb_free_entries
_rt2x00usb_free_entries:                ; @rt2x00usb_free_entries
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	w9, [x0]
	cbz	w9, LBB0_5
; %bb.2:
	ldr	x21, [x8]
	ldr	w0, [x21, #4]
	bl	_usb_kill_urb
	ldr	w0, [x21, #4]
	bl	_usb_free_urb
	ldr	w8, [x19]
	cmp	w8, #2
	b.lo	LBB0_5
; %bb.3:
	mov	w21, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x22, [x8, x21, lsl #3]
	ldr	w0, [x22, #4]
	bl	_usb_kill_urb
	ldr	w0, [x22, #4]
	bl	_usb_free_urb
	add	x21, x21, #1
	ldr	w8, [x19]
	cmp	x21, x8
	b.lo	LBB0_4
LBB0_5:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _QID_BEACON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QID_BEACON@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
Lloh3:
	adrp	x8, _REQUIRE_BEACON_GUARD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REQUIRE_BEACON_GUARD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_has_cap_flag
	cbz	w0, LBB0_10
; %bb.7:
	ldr	w8, [x19]
	cbz	w8, LBB0_10
; %bb.8:
	mov	x20, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x21, [x8, x20, lsl #3]
	ldr	w0, [x21]
	bl	_usb_kill_urb
	ldr	w0, [x21]
	bl	_usb_free_urb
	add	x20, x20, #1
	ldr	w8, [x19]
	cmp	x20, x8
	b.lo	LBB0_9
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_QID_BEACON,8,3                 ; @QID_BEACON
	.comm	_REQUIRE_BEACON_GUARD,4,2       ; @REQUIRE_BEACON_GUARD
	.no_dead_strip	_rt2x00usb_free_entries
.subsections_via_symbols
