	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_usb_free_pipe_resources
_ath10k_usb_free_pipe_resources:        ## @ath10k_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 24(%rsi)
	je	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_ATH10K_DBG_USB@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	20(%rbx), %ecx
	movl	16(%rbx), %r8d
	movq	(%rbx), %r9
	movq	8(%rbx), %rax
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rdx
	callq	_ath10k_dbg
	movq	(%rbx), %r9
	movq	8(%rbx), %rax
	cmpq	%rax, %r9
	je	LBB0_4
## %bb.2:
	movl	(%r15), %esi
	movl	16(%rbx), %r8d
	movl	20(%rbx), %ecx
	movq	%rax, (%rsp)
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_ath10k_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	_ath10k_usb_alloc_urb_from_pipe
	testq	%rax, %rax
	jne	LBB0_3
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_DBG_USB,4,2             ## @ATH10K_DBG_USB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usb free resources lpipe %d hpipe 0x%x urbs %d avail %d\n"

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

	.no_dead_strip	_ath10k_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 ath10k_usb_free_pipe_resources
_ath10k_usb_free_pipe_resources:        ; @ath10k_usb_free_pipe_resources
	.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	w8, [x1, #24]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _ATH10K_DBG_USB@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ATH10K_DBG_USB@GOTPAGEOFF]
	ldr	w1, [x21]
	ldp	w4, w3, [x19, #16]
	ldp	x5, x6, [x19]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_ath10k_dbg
	ldp	x5, x6, [x19]
	cmp	x5, x6
	b.eq	LBB0_4
; %bb.2:
	ldr	w1, [x21]
	ldp	w4, w3, [x19, #16]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ath10k_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	_ath10k_usb_alloc_urb_from_pipe
	cbnz	x0, LBB0_3
LBB0_5:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_DBG_USB,4,2             ; @ATH10K_DBG_USB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usb free resources lpipe %d hpipe 0x%x urbs %d avail %d\n"

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

	.no_dead_strip	_ath10k_usb_free_pipe_resources
.subsections_via_symbols
