	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_pcie_get_rxb
_iwl_pcie_get_rxb:                      ## @iwl_pcie_get_rxb
	.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
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r14
	movl	$1, %edi
	callq	_BUILD_BUG_ON
	movq	(%r15), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	movq	_IWL_DEVICE_FAMILY_22560@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.4:
	movq	(%rbx), %rax
	movslq	%r12d, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	jmp	LBB0_5
LBB0_1:
	movq	16(%rbx), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	$0, (%rax,%rcx,8)
	jmp	LBB0_10
LBB0_3:
	movq	8(%rbx), %rax
	movslq	%r12d, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le16_to_cpu
LBB0_5:
	movl	%eax, %r12d
	andl	$4095, %r12d                    ## imm = 0xFFF
	je	LBB0_9
## %bb.6:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jg	LBB0_9
## %bb.7:
	movq	(%r14), %rax
	leal	-1(%r12), %ecx
	movq	(%rax,%rcx,8), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_8
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%r12d, %edx
	callq	_WARN
	movq	%r15, %rdi
	callq	_iwl_force_nmi
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_DEBUG_RX
	movl	$1, (%rbx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_DEVICE_FAMILY_22560,8,3    ## @IWL_DEVICE_FAMILY_22560
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Got virtual RB ID %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid rxb from HW %u\n"

	.no_dead_strip	_iwl_pcie_get_rxb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_pcie_get_rxb
_iwl_pcie_get_rxb:                      ; @iwl_pcie_get_rxb
	.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	x22, x1
	mov	x19, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x20, x0
	mov	w0, #1
	bl	_BUILD_BUG_ON
	ldr	x8, [x19]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_3
; %bb.1:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _IWL_DEVICE_FAMILY_22560@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_DEVICE_FAMILY_22560@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.2:
	ldr	x8, [x22]
	ldr	w0, [x8, w21, sxtw #2]
	bl	_le32_to_cpu
	ands	w21, w0, #0xfff
	b.ne	LBB0_5
	b	LBB0_7
LBB0_3:
	ldr	x8, [x22, #16]
	sbfiz	x9, x21, #3, #32
	ldr	x20, [x8, x9]
	str	xzr, [x8, x9]
	b	LBB0_8
LBB0_4:
	ldr	x8, [x22, #8]
	ldr	w0, [x8, w21, sxtw #2]
	bl	_le16_to_cpu
	ands	w21, w0, #0xfff
	b.eq	LBB0_7
LBB0_5:
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.gt	LBB0_7
; %bb.6:
	ldr	x8, [x20]
	sub	w9, w21, #1
	ldr	x20, [x8, w9, uxtw #3]
	ldr	w8, [x20]
	cbz	w8, LBB0_9
LBB0_7:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_WARN
	mov	x0, x19
	bl	_iwl_force_nmi
	mov	x20, #0
LBB0_8:
	mov	x0, x20
	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
LBB0_9:
	ldr	w2, [x20, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_RX
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_DEVICE_FAMILY_22560,8,3    ; @IWL_DEVICE_FAMILY_22560
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Got virtual RB ID %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid rxb from HW %u\n"

	.no_dead_strip	_iwl_pcie_get_rxb
.subsections_via_symbols
