	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function airspy_free_stream_bufs
_airspy_free_stream_bufs:               ## @airspy_free_stream_bufs
	.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	%rdi, %rbx
	movq	_USB_STATE_URB_BUF@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	4(%rbx), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	decl	%edx
	movl	%edx, (%rbx)
	movl	32(%rbx), %edi
	movq	%r15, %rsi
	callq	_dev_dbg
	movl	28(%rbx), %edi
	movl	24(%rbx), %esi
	movq	8(%rbx), %r8
	movq	16(%rbx), %rcx
	movslq	(%rbx), %rax
	movl	(%rcx,%rax,4), %edx
	movl	(%r8,%rax,4), %ecx
	callq	_usb_free_coherent
	movl	(%rbx), %edx
	testl	%edx, %edx
	jne	LBB0_3
LBB0_4:
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_STATE_URB_BUF,4,2          ## @USB_STATE_URB_BUF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"free buf=%d\n"

	.no_dead_strip	_airspy_free_stream_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function airspy_free_stream_bufs
_airspy_free_stream_bufs:               ; @airspy_free_stream_bufs
	.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	x20, x0
Lloh0:
	adrp	x22, _USB_STATE_URB_BUF@GOTPAGE
Lloh1:
	ldr	x22, [x22, _USB_STATE_URB_BUF@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x19, x20, #4
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.2:
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w2, w8, #1
	str	w2, [x20]
	ldr	w0, [x20, #32]
	mov	x1, x21
	bl	_dev_dbg
	ldp	w1, w0, [x20, #24]
	ldrsw	x8, [x20]
	lsl	x8, x8, #2
	ldp	x10, x9, [x20, #8]
	ldr	w2, [x9, x8]
	ldr	w3, [x10, x8]
	bl	_usb_free_coherent
	ldr	w8, [x20]
	cbnz	w8, LBB0_3
LBB0_4:
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clear_bit
	mov	w0, #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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_STATE_URB_BUF,4,2          ; @USB_STATE_URB_BUF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"free buf=%d\n"

	.no_dead_strip	_airspy_free_stream_bufs
.subsections_via_symbols
