	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_sync_rx_queues_internal ## -- Begin function iwl_mvm_sync_rx_queues_internal
	.p2align	4, 0x90
_iwl_mvm_sync_rx_queues_internal:       ## @iwl_mvm_sync_rx_queues_internal
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_iwl_mvm_has_new_rx_api
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	decq	%rbx
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.3:
	movl	(%r12), %eax
	movl	%eax, 8(%r14)
	leaq	4(%r12), %rdi
	movq	16(%r12), %rax
	movl	(%rax), %esi
	callq	_atomic_set
	xorl	%r8d, %r8d
	cmpq	$0, (%r14)
	sete	%r8b
	jmp	LBB0_4
LBB0_2:
	movl	$1, %r8d
LBB0_4:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_iwl_mvm_notify_rx_queue
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_IWL_ERR
	jmp	LBB0_13
LBB0_6:
	cmpq	$0, (%r14)
	je	LBB0_13
## %bb.7:
	leaq	12(%r12), %rdi
	callq	_lockdep_assert_held
	movl	8(%r12), %ebx
	leaq	4(%r12), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%r12, %rdi
	callq	_iwl_mvm_is_radio_killed
	xorl	%esi, %esi
	testq	%rax, %rax
	setne	%sil
	jmp	LBB0_10
LBB0_8:
	movl	$1, %esi
LBB0_10:
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_wait_event_timeout
	xorl	%edi, %edi
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_iwl_mvm_is_radio_killed
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
LBB0_12:
	callq	_WARN_ON_ONCE
LBB0_13:
	leaq	4(%r12), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	cmpq	$0, (%r14)
	je	LBB0_15
## %bb.14:
	incl	(%r12)
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to trigger RX queues sync (%d)\n"

	.comm	_HZ,4,2                         ## @HZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_sync_rx_queues_internal ; -- Begin function iwl_mvm_sync_rx_queues_internal
	.p2align	2
_iwl_mvm_sync_rx_queues_internal:       ; @iwl_mvm_sync_rx_queues_internal
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_BIT
	mov	x22, x0
	mov	x0, x19
	bl	_iwl_mvm_has_new_rx_api
	cbz	w0, LBB0_16
; %bb.1:
	sub	x22, x22, #1
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x19]
	str	w8, [x20, #8]
	add	x0, x19, #4
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	bl	_atomic_set
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w4, eq
	b	LBB0_4
LBB0_3:
	mov	w4, #1
LBB0_4:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_iwl_mvm_notify_rx_queue
	cbz	w0, LBB0_6
; %bb.5:
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	b	LBB0_14
LBB0_6:
	ldr	x8, [x20]
	cbz	x8, LBB0_14
; %bb.7:
	add	x0, x19, #12
	bl	_lockdep_assert_held
	ldr	w21, [x19, #8]
	add	x0, x19, #4
	bl	_atomic_read
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_iwl_mvm_is_radio_killed
	cmp	x0, #0
	cset	w1, ne
	b	LBB0_10
LBB0_9:
	mov	w1, #1
LBB0_10:
Lloh2:
	adrp	x8, _HZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_wait_event_timeout
	cbz	w0, LBB0_12
; %bb.11:
	mov	w0, #0
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_iwl_mvm_is_radio_killed
	cmp	x0, #0
	cset	w0, eq
LBB0_13:
	bl	_WARN_ON_ONCE
LBB0_14:
	add	x0, x19, #4
	mov	w1, #0
	bl	_atomic_set
	ldr	x8, [x20]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_16:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to trigger RX queues sync (%d)\n"

	.comm	_HZ,4,2                         ; @HZ
.subsections_via_symbols
