	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_rxq_stop                ## -- Begin function il4965_rxq_stop
	.p2align	4, 0x90
_il4965_rxq_stop:                       ## @il4965_rxq_stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_FH49_MEM_RCSR_CHNL0_CONFIG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	__il_wr
	movq	_FH49_MEM_RSSR_RX_STATUS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FH49_RSSR_CHNL0_RX_STATUS_CHNL_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	__il_poll_bit
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_IL_ERR
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FH49_MEM_RCSR_CHNL0_CONFIG_REG,4,2 ## @FH49_MEM_RCSR_CHNL0_CONFIG_REG
	.comm	_FH49_MEM_RSSR_RX_STATUS_REG,4,2 ## @FH49_MEM_RSSR_RX_STATUS_REG
	.comm	_FH49_RSSR_CHNL0_RX_STATUS_CHNL_IDLE,4,2 ## @FH49_RSSR_CHNL0_RX_STATUS_CHNL_IDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't stop Rx DMA.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_rxq_stop                ; -- Begin function il4965_rxq_stop
	.p2align	2
_il4965_rxq_stop:                       ; @il4965_rxq_stop
	.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
Lloh0:
	adrp	x8, _FH49_MEM_RCSR_CHNL0_CONFIG_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FH49_MEM_RCSR_CHNL0_CONFIG_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	__il_wr
Lloh3:
	adrp	x8, _FH49_MEM_RSSR_RX_STATUS_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FH49_MEM_RSSR_RX_STATUS_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _FH49_RSSR_CHNL0_RX_STATUS_CHNL_IDLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FH49_RSSR_CHNL0_RX_STATUS_CHNL_IDLE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	mov	w4, #1000
	bl	__il_poll_bit
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IL_ERR
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FH49_MEM_RCSR_CHNL0_CONFIG_REG,4,2 ; @FH49_MEM_RCSR_CHNL0_CONFIG_REG
	.comm	_FH49_MEM_RSSR_RX_STATUS_REG,4,2 ; @FH49_MEM_RSSR_RX_STATUS_REG
	.comm	_FH49_RSSR_CHNL0_RX_STATUS_CHNL_IDLE,4,2 ; @FH49_RSSR_CHNL0_RX_STATUS_CHNL_IDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't stop Rx DMA.\n"

.subsections_via_symbols
