	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hackrf_stop_streaming
_hackrf_stop_streaming:                 ## @hackrf_stop_streaming
	.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, %r14
	callq	_vb2_get_drv_priv
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_CMD_SET_TRANSCEIVER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_hackrf_ctrl_msg
	movq	%rbx, %rdi
	callq	_hackrf_kill_urbs
	movq	%rbx, %rdi
	callq	_hackrf_free_urbs
	movq	%rbx, %rdi
	callq	_hackrf_free_stream_bufs
	movq	_VB2_BUF_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hackrf_return_all_buffers
	movq	(%r14), %rax
	movq	_V4L2_BUF_TYPE_SDR_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_RX_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_TX_ON@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	leaq	4(%rbx), %rsi
	callq	_clear_bit
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_CMD_SET_TRANSCEIVER_MODE,4,2   ## @CMD_SET_TRANSCEIVER_MODE
	.comm	_VB2_BUF_STATE_ERROR,4,2        ## @VB2_BUF_STATE_ERROR
	.comm	_V4L2_BUF_TYPE_SDR_CAPTURE,8,3  ## @V4L2_BUF_TYPE_SDR_CAPTURE
	.comm	_RX_ON,4,2                      ## @RX_ON
	.comm	_TX_ON,4,2                      ## @TX_ON
	.no_dead_strip	_hackrf_stop_streaming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hackrf_stop_streaming
_hackrf_stop_streaming:                 ; @hackrf_stop_streaming
	.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
	bl	_vb2_get_drv_priv
	mov	x20, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x20
	bl	_mutex_lock
Lloh2:
	adrp	x8, _CMD_SET_TRANSCEIVER_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_SET_TRANSCEIVER_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_hackrf_ctrl_msg
	mov	x0, x20
	bl	_hackrf_kill_urbs
	mov	x0, x20
	bl	_hackrf_free_urbs
	mov	x0, x20
	bl	_hackrf_free_stream_bufs
Lloh5:
	adrp	x8, _VB2_BUF_STATE_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VB2_BUF_STATE_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hackrf_return_all_buffers
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _V4L2_BUF_TYPE_SDR_CAPTURE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_BUF_TYPE_SDR_CAPTURE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _RX_ON@GOTPAGE
Lloh12:
	ldr	x10, [x10, _RX_ON@GOTPAGEOFF]
Lloh13:
	adrp	x11, _TX_ON@GOTPAGE
Lloh14:
	ldr	x11, [x11, _TX_ON@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w0, [x8]
	add	x1, x20, #4
	bl	_clear_bit
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_CMD_SET_TRANSCEIVER_MODE,4,2   ; @CMD_SET_TRANSCEIVER_MODE
	.comm	_VB2_BUF_STATE_ERROR,4,2        ; @VB2_BUF_STATE_ERROR
	.comm	_V4L2_BUF_TYPE_SDR_CAPTURE,8,3  ; @V4L2_BUF_TYPE_SDR_CAPTURE
	.comm	_RX_ON,4,2                      ; @RX_ON
	.comm	_TX_ON,4,2                      ; @TX_ON
	.no_dead_strip	_hackrf_stop_streaming
.subsections_via_symbols
