	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_usb_free_pipe_resources
_ath6kl_usb_free_pipe_resources:        ## @ath6kl_usb_free_pipe_resources
	.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
	cmpq	$0, 24(%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	_ATH6KL_DBG_USB@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	20(%rbx), %edx
	movl	16(%rbx), %ecx
	movq	(%rbx), %r8
	movq	8(%rbx), %r9
	leaq	L_.str(%rip), %rsi
	callq	_ath6kl_dbg
	movq	(%rbx), %r8
	movq	8(%rbx), %r9
	cmpq	%r9, %r8
	je	LBB0_4
## %bb.2:
	movl	(%r14), %edi
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_ath6kl_dbg
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rdi
	callq	_kfree
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ath6kl_usb_alloc_urb_from_pipe
	testq	%rax, %rax
	jne	LBB0_3
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH6KL_DBG_USB,4,2             ## @ATH6KL_DBG_USB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ath6kl usb: free resources lpipe:%dhpipe:0x%X urbs:%d avail:%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"ath6kl usb: urb leak! lpipe:%dhpipe:0x%X urbs:%d avail:%d\n"

	.no_dead_strip	_ath6kl_usb_free_pipe_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_usb_free_pipe_resources
_ath6kl_usb_free_pipe_resources:        ; @ath6kl_usb_free_pipe_resources
	.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
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _ATH6KL_DBG_USB@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ATH6KL_DBG_USB@GOTPAGEOFF]
	ldr	w0, [x20]
	ldp	w3, w2, [x19, #16]
	ldp	x4, x5, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath6kl_dbg
	ldp	x4, x5, [x19]
	cmp	x4, x5
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x20]
	ldp	w3, w2, [x19, #16]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ath6kl_dbg
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_kfree
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ath6kl_usb_alloc_urb_from_pipe
	cbnz	x0, LBB0_3
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH6KL_DBG_USB,4,2             ; @ATH6KL_DBG_USB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ath6kl usb: free resources lpipe:%dhpipe:0x%X urbs:%d avail:%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"ath6kl usb: urb leak! lpipe:%dhpipe:0x%X urbs:%d avail:%d\n"

	.no_dead_strip	_ath6kl_usb_free_pipe_resources
.subsections_via_symbols
