	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_rx_stop
_handle_rx_stop:                        ## @handle_rx_stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$2, %eax
	jl	LBB0_6
## %bb.3:
	cmpq	$0, 16(%rdi)
	je	LBB0_5
## %bb.4:
	movq	_DMA_RX_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	je	LBB0_5
## %bb.8:
	popq	%rbp
	jmp	_hw_start_rx                    ## TAILCALL
LBB0_1:
	movq	_KS884X_INT_RX_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rdi)
	popq	%rbp
	retq
LBB0_6:
	incl	%eax
	movl	%eax, (%rdi)
	popq	%rbp
	retq
LBB0_5:
	movq	_KS884X_INT_RX_STOPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rdi)
	movl	$0, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KS884X_INT_RX_STOPPED,4,2      ## @KS884X_INT_RX_STOPPED
	.comm	_DMA_RX_ENABLE,4,2              ## @DMA_RX_ENABLE
	.no_dead_strip	_handle_rx_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_rx_stop
_handle_rx_stop:                        ; @handle_rx_stop
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.2:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _DMA_RX_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMA_RX_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
	b	_hw_start_rx
LBB0_5:
Lloh3:
	adrp	x8, _KS884X_INT_RX_STOPPED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KS884X_INT_RX_STOPPED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x0, #8]
	bic	w8, w9, w8
	str	w8, [x0, #8]
	ret
LBB0_6:
	add	w8, w8, #1
	str	w8, [x0]
	ret
LBB0_7:
Lloh6:
	adrp	x8, _KS884X_INT_RX_STOPPED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KS884X_INT_RX_STOPPED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x0, #8]
	bic	w8, w9, w8
	str	w8, [x0, #8]
	str	wzr, [x0]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_KS884X_INT_RX_STOPPED,4,2      ; @KS884X_INT_RX_STOPPED
	.comm	_DMA_RX_ENABLE,4,2              ; @DMA_RX_ENABLE
	.no_dead_strip	_handle_rx_stop
.subsections_via_symbols
