	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb_rdma_ctl
_cxgb_rdma_ctl:                         ## @cxgb_rdma_ctl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$6, %esi
	ja	LBB0_20
## %bb.1:
	movq	%rdx, %rbx
	movq	%rdi, %r14
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	32(%r14), %r15
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_pci_resource_start
	movl	%eax, 68(%rbx)
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_pci_resource_len
	movl	%eax, 64(%rbx)
	movq	_A_ULPTX_TPT_LLIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_t3_read_reg
	movq	%rax, 56(%rbx)
	movq	_A_ULPTX_TPT_ULIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_t3_read_reg
	movq	%rax, 48(%rbx)
	movq	_A_ULPTX_PBL_LLIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_t3_read_reg
	movq	%rax, 40(%rbx)
	movq	_A_ULPTX_PBL_ULIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_t3_read_reg
	movq	%rax, 32(%rbx)
	movq	_A_ULPRX_RQ_LLIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_t3_read_reg
	movq	%rax, 24(%rbx)
	movq	_A_ULPRX_RQ_ULIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_t3_read_reg
	movq	%rax, 16(%rbx)
	movq	_A_SG_KDOORBELL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	24(%r14), %rax
	movq	%rax, 8(%rbx)
	movq	%r15, (%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_20:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_19:
	movq	%r14, %rdi
	callq	_spin_lock
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_t3_tp_get_mib_stats
	movq	%r14, %rdi
	callq	_spin_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_4:
	movl	(%rbx), %ecx
	testb	$7, %cl
	jne	LBB0_6
## %bb.5:
	movl	4(%rbx), %eax
	testb	$7, %al
	je	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_21:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_18:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movq	_FW_RI_SGEEC_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SGE_CNTXT_RDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ASYNC_NOTIF_RSPQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%rbx), %eax
	movl	4(%rbx), %r9d
	movq	_FW_RI_TID_START@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	pushq	$0
	pushq	$1
	pushq	%rbx
	pushq	%rax
	callq	_t3_sge_init_ecntxt
	addq	$32, %rsp
	jmp	LBB0_17
LBB0_15:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movl	20(%rbx), %esi
	movl	16(%rbx), %edx
	movl	12(%rbx), %ecx
	movq	_ASYNC_NOTIF_RSPQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	8(%rbx), %r9d
	movl	(%rbx), %eax
	movl	4(%rbx), %ebx
	movq	%r14, %rdi
	pushq	%rax
	pushq	%rbx
	callq	_t3_sge_init_cqcntxt
	addq	$16, %rsp
	jmp	LBB0_17
LBB0_3:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	_t3_sge_cqcntxt_op
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_22
LBB0_16:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_t3_sge_disable_cqcntxt
LBB0_17:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_spin_unlock_irq
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	16(%rbx), %edx
	movq	_MEM_CM@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_9
## %bb.8:
	addq	$16, %r14
	jmp	LBB0_13
LBB0_9:
	movq	_MEM_PMRX@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_11
## %bb.10:
	addq	$12, %r14
	jmp	LBB0_13
LBB0_11:
	movq	_MEM_PMTX@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_6
## %bb.12:
	addq	$8, %r14
LBB0_13:
	leal	7(%rcx), %esi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %esi
	sarl	$3, %esi
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	movq	8(%rbx), %rcx
	movq	%r14, %rdi
	callq	_t3_mc7_bd_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.14:
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_19
	.long	L0_0_set_4
	.long	L0_0_set_18
	.long	L0_0_set_15
	.long	L0_0_set_3
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_A_ULPTX_TPT_LLIMIT,4,2         ## @A_ULPTX_TPT_LLIMIT
	.comm	_A_ULPTX_TPT_ULIMIT,4,2         ## @A_ULPTX_TPT_ULIMIT
	.comm	_A_ULPTX_PBL_LLIMIT,4,2         ## @A_ULPTX_PBL_LLIMIT
	.comm	_A_ULPTX_PBL_ULIMIT,4,2         ## @A_ULPTX_PBL_ULIMIT
	.comm	_A_ULPRX_RQ_LLIMIT,4,2          ## @A_ULPRX_RQ_LLIMIT
	.comm	_A_ULPRX_RQ_ULIMIT,4,2          ## @A_ULPRX_RQ_ULIMIT
	.comm	_A_SG_KDOORBELL,8,3             ## @A_SG_KDOORBELL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MEM_CM,4,2                     ## @MEM_CM
	.comm	_MEM_PMRX,4,2                   ## @MEM_PMRX
	.comm	_MEM_PMTX,4,2                   ## @MEM_PMTX
	.comm	_ASYNC_NOTIF_RSPQ,4,2           ## @ASYNC_NOTIF_RSPQ
	.comm	_FW_RI_SGEEC_START,4,2          ## @FW_RI_SGEEC_START
	.comm	_SGE_CNTXT_RDMA,4,2             ## @SGE_CNTXT_RDMA
	.comm	_FW_RI_TID_START,4,2            ## @FW_RI_TID_START
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_cxgb_rdma_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxgb_rdma_ctl
_cxgb_rdma_ctl:                         ; @cxgb_rdma_ctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	w8, w1, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x21, [x20, #32]
	mov	x0, x21
	mov	w1, #2
	bl	_pci_resource_start
	str	w0, [x19, #68]
	mov	x0, x21
	mov	w1, #2
	bl	_pci_resource_len
	str	w0, [x19, #64]
Lloh2:
	adrp	x8, _A_ULPTX_TPT_LLIMIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _A_ULPTX_TPT_LLIMIT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t3_read_reg
	str	x0, [x19, #56]
Lloh5:
	adrp	x8, _A_ULPTX_TPT_ULIMIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _A_ULPTX_TPT_ULIMIT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t3_read_reg
	str	x0, [x19, #48]
Lloh8:
	adrp	x8, _A_ULPTX_PBL_LLIMIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _A_ULPTX_PBL_LLIMIT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t3_read_reg
	str	x0, [x19, #40]
Lloh11:
	adrp	x8, _A_ULPTX_PBL_ULIMIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _A_ULPTX_PBL_ULIMIT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t3_read_reg
	str	x0, [x19, #32]
Lloh14:
	adrp	x8, _A_ULPRX_RQ_LLIMIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _A_ULPRX_RQ_LLIMIT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t3_read_reg
	str	x0, [x19, #24]
Lloh17:
	adrp	x8, _A_ULPRX_RQ_ULIMIT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _A_ULPRX_RQ_ULIMIT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t3_read_reg
	mov	w22, #0
	str	x0, [x19, #16]
	ldr	x8, [x20, #24]
Lloh20:
	adrp	x9, _A_SG_KDOORBELL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _A_SG_KDOORBELL@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x8, x9, x8
	stp	x21, x8, [x19]
	b	LBB0_14
LBB0_3:
Lloh23:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	mov	x0, x20
	bl	_spin_lock
	mov	x0, x20
	mov	x1, x19
	bl	_t3_tp_get_mib_stats
	mov	x0, x20
	bl	_spin_unlock
	mov	w22, #0
	b	LBB0_14
LBB0_5:
	ldr	w8, [x19]
	tst	w8, #0x7
	b.ne	LBB0_7
; %bb.6:
	ldr	w9, [x19, #4]
	tst	w9, #0x7
	b.eq	LBB0_15
LBB0_7:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_9:
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irq
Lloh27:
	adrp	x8, _FW_RI_SGEEC_START@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FW_RI_SGEEC_START@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _SGE_CNTXT_RDMA@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SGE_CNTXT_RDMA@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
Lloh33:
	adrp	x8, _ASYNC_NOTIF_RSPQ@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ASYNC_NOTIF_RSPQ@GOTPAGEOFF]
Lloh35:
	ldr	w4, [x8]
	ldp	w6, w5, [x19]
Lloh36:
	adrp	x8, _FW_RI_TID_START@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FW_RI_TID_START@GOTPAGEOFF]
Lloh38:
	ldr	w7, [x8]
	mov	w8, #1
	str	x8, [sp]
	mov	x0, x20
	mov	w2, #0
	bl	_t3_sge_init_ecntxt
	b	LBB0_13
LBB0_10:
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irq
Lloh39:
	adrp	x8, _ASYNC_NOTIF_RSPQ@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ASYNC_NOTIF_RSPQ@GOTPAGEOFF]
	ldp	w2, w1, [x19, #16]
Lloh41:
	ldr	w4, [x8]
	ldp	w5, w3, [x19, #8]
	ldp	w7, w6, [x19]
	mov	x0, x20
	bl	_t3_sge_init_cqcntxt
	b	LBB0_13
LBB0_11:
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldp	w2, w1, [x19, #4]
	ldr	w3, [x19]
	mov	x0, x20
	bl	_t3_sge_cqcntxt_op
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	b	LBB0_14
LBB0_12:
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irq
	ldr	w1, [x19]
	mov	x0, x20
	bl	_t3_sge_disable_cqcntxt
LBB0_13:
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock_irq
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_15:
	ldr	w10, [x19, #16]
Lloh42:
	adrp	x11, _MEM_CM@GOTPAGE
Lloh43:
	ldr	x11, [x11, _MEM_CM@GOTPAGEOFF]
Lloh44:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_17
; %bb.16:
	add	x0, x20, #16
	b	LBB0_21
LBB0_17:
Lloh45:
	adrp	x11, _MEM_PMRX@GOTPAGE
Lloh46:
	ldr	x11, [x11, _MEM_PMRX@GOTPAGEOFF]
Lloh47:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_19
; %bb.18:
	add	x0, x20, #12
	b	LBB0_21
LBB0_19:
Lloh48:
	adrp	x11, _MEM_PMTX@GOTPAGE
Lloh49:
	ldr	x11, [x11, _MEM_PMTX@GOTPAGEOFF]
Lloh50:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_7
; %bb.20:
	add	x0, x20, #8
LBB0_21:
	add	w10, w8, #7
	cmp	w8, #0
	csel	w8, w10, w8, lt
	asr	w1, w8, #3
	add	w8, w9, #7
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w2, w8, #3
	ldr	x3, [x19, #8]
	bl	_t3_mc7_bd_read
	mov	x22, x0
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_A_ULPTX_TPT_LLIMIT,4,2         ; @A_ULPTX_TPT_LLIMIT
	.comm	_A_ULPTX_TPT_ULIMIT,4,2         ; @A_ULPTX_TPT_ULIMIT
	.comm	_A_ULPTX_PBL_LLIMIT,4,2         ; @A_ULPTX_PBL_LLIMIT
	.comm	_A_ULPTX_PBL_ULIMIT,4,2         ; @A_ULPTX_PBL_ULIMIT
	.comm	_A_ULPRX_RQ_LLIMIT,4,2          ; @A_ULPRX_RQ_LLIMIT
	.comm	_A_ULPRX_RQ_ULIMIT,4,2          ; @A_ULPRX_RQ_ULIMIT
	.comm	_A_SG_KDOORBELL,8,3             ; @A_SG_KDOORBELL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MEM_CM,4,2                     ; @MEM_CM
	.comm	_MEM_PMRX,4,2                   ; @MEM_PMRX
	.comm	_MEM_PMTX,4,2                   ; @MEM_PMTX
	.comm	_ASYNC_NOTIF_RSPQ,4,2           ; @ASYNC_NOTIF_RSPQ
	.comm	_FW_RI_SGEEC_START,4,2          ; @FW_RI_SGEEC_START
	.comm	_SGE_CNTXT_RDMA,4,2             ; @SGE_CNTXT_RDMA
	.comm	_FW_RI_TID_START,4,2            ; @FW_RI_TID_START
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_cxgb_rdma_ctl
.subsections_via_symbols
