	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb_ulp_iscsi_ctl
_cxgb_ulp_iscsi_ctl:                    ## @cxgb_ulp_iscsi_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	cmpl	$128, %esi
	je	LBB0_5
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_8
## %bb.2:
	movl	12(%r15), %eax
	movl	%eax, 32(%r14)
	movq	_A_ULPRX_ISCSI_LLIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t3_read_reg
	movl	%eax, (%r14)
	movq	_A_ULPRX_ISCSI_ULIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t3_read_reg
	movl	%eax, 4(%r14)
	movq	_A_ULPRX_ISCSI_TAGMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t3_read_reg
	movl	%eax, 8(%r14)
	movq	_A_ULPRX_ISCSI_PSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t3_read_reg
	movq	16(%r14), %rcx
	movzbl	%al, %edx
	movl	%edx, (%rcx)
	movzbl	%ah, %edx
	movl	%edx, 4(%rcx)
	movl	%eax, %edx
	shrl	$16, %edx
	movzbl	%dl, %edx
	movl	%edx, 8(%rcx)
	shrl	$24, %eax
	movl	%eax, 12(%rcx)
	movq	_A_TP_PARA_REG7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t3_read_reg
	movq	_S_PMMAXXFERLEN0@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edi
	shrl	%cl, %edi
	movq	_M_PMMAXXFERLEN0@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	movq	_S_PMMAXXFERLEN1@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %eax
	movq	_M_PMMAXXFERLEN1@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, %esi
	callq	_min
	movl	%eax, 28(%r14)
	movl	%eax, 24(%r14)
	movl	4(%r15), %ebx
	movq	_A_PM1_TX_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t3_read_reg
	shrl	$17, %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_min
	movl	24(%r14), %esi
	movl	%eax, %edi
	callq	_min
	movl	%eax, 24(%r14)
	movq	_A_TP_PARA_REG2@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_t3_read_reg
	movq	_S_MAXRXDATA@GOTPCREL(%rip), %r13
	movb	(%r13), %cl
	movl	%eax, %edx
	shrl	%cl, %edx
	cmpl	$16224, %edx                    ## imm = 0x3F60
	je	LBB0_4
## %bb.3:
	movq	_M_RXCOALESCESIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_S_RXCOALESCESIZE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	andl	%eax, %ebx
	movl	$16224, %edi                    ## imm = 0x3F60
	callq	_V_MAXRXDATA
	orl	%eax, %ebx
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_pr_info
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_t3_write_reg
LBB0_4:
	movl	8(%r15), %ebx
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_t3_read_reg
	movb	(%r13), %cl
	shrl	%cl, %eax
	movq	_M_MAXRXDATA@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_min
	movl	28(%r14), %esi
	movl	%eax, %edi
	callq	_min
	movl	%eax, 28(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_A_ULPRX_ISCSI_TAGMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	movq	%r15, %rdi
	callq	_t3_write_reg
	movq	16(%r14), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	andl	$15, %ecx
	andl	$15, %edx
	shll	$8, %edx
	orl	%ecx, %edx
	movl	8(%rax), %ecx
	andl	$15, %ecx
	shll	$16, %ecx
	orl	%edx, %ecx
	movl	12(%rax), %r12d
	andl	$15, %r12d
	shll	$24, %r12d
	xorl	%ebx, %ebx
	orl	%ecx, %r12d
	je	LBB0_9
## %bb.6:
	movq	_A_ULPRX_ISCSI_PSZ@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_t3_read_reg
	cmpl	%eax, %r12d
	je	LBB0_9
## %bb.7:
	movl	(%r15), %esi
	movq	16(%r14), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r8d
	movl	8(%rax), %r9d
	movl	12(%rax), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_pr_info
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_t3_write_reg
	jmp	LBB0_9
LBB0_8:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_ULPRX_ISCSI_LLIMIT,4,2       ## @A_ULPRX_ISCSI_LLIMIT
	.comm	_A_ULPRX_ISCSI_ULIMIT,4,2       ## @A_ULPRX_ISCSI_ULIMIT
	.comm	_A_ULPRX_ISCSI_TAGMASK,4,2      ## @A_ULPRX_ISCSI_TAGMASK
	.comm	_A_ULPRX_ISCSI_PSZ,4,2          ## @A_ULPRX_ISCSI_PSZ
	.comm	_A_TP_PARA_REG7,4,2             ## @A_TP_PARA_REG7
	.comm	_S_PMMAXXFERLEN0,4,2            ## @S_PMMAXXFERLEN0
	.comm	_M_PMMAXXFERLEN0,4,2            ## @M_PMMAXXFERLEN0
	.comm	_S_PMMAXXFERLEN1,4,2            ## @S_PMMAXXFERLEN1
	.comm	_M_PMMAXXFERLEN1,4,2            ## @M_PMMAXXFERLEN1
	.comm	_A_PM1_TX_CFG,4,2               ## @A_PM1_TX_CFG
	.comm	_A_TP_PARA_REG2,4,2             ## @A_TP_PARA_REG2
	.comm	_S_MAXRXDATA,4,2                ## @S_MAXRXDATA
	.comm	_M_RXCOALESCESIZE,4,2           ## @M_RXCOALESCESIZE
	.comm	_S_RXCOALESCESIZE,4,2           ## @S_RXCOALESCESIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s, iscsi set MaxRxData to 16224 (0x%x)\n"

	.comm	_M_MAXRXDATA,4,2                ## @M_MAXRXDATA
L_.str.1:                               ## @.str.1
	.asciz	"%s, setting iscsi pgsz 0x%x, %u,%u,%u,%u\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_cxgb_ulp_iscsi_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cxgb_ulp_iscsi_ctl
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cxgb_ulp_iscsi_ctl:                    ; @cxgb_ulp_iscsi_ctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x0
	cmp	w1, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_9
; %bb.2:
	ldr	w8, [x20, #12]
	str	w8, [x19, #32]
Lloh0:
	adrp	x8, _A_ULPRX_ISCSI_LLIMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A_ULPRX_ISCSI_LLIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t3_read_reg
	str	w0, [x19]
Lloh3:
	adrp	x8, _A_ULPRX_ISCSI_ULIMIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A_ULPRX_ISCSI_ULIMIT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t3_read_reg
	str	w0, [x19, #4]
Lloh6:
	adrp	x8, _A_ULPRX_ISCSI_TAGMASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _A_ULPRX_ISCSI_TAGMASK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t3_read_reg
	str	w0, [x19, #8]
Lloh9:
	adrp	x8, _A_ULPRX_ISCSI_PSZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _A_ULPRX_ISCSI_PSZ@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t3_read_reg
	ldr	x8, [x19, #16]
	and	w9, w0, #0xff
	dup.2s	v0, w0
	str	w9, [x8]
Lloh12:
	adrp	x9, lCPI0_0@PAGE
Lloh13:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [x8, #4]
	lsr	w9, w0, #24
	str	w9, [x8, #12]
Lloh14:
	adrp	x8, _A_TP_PARA_REG7@GOTPAGE
Lloh15:
	ldr	x8, [x8, _A_TP_PARA_REG7@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t3_read_reg
Lloh17:
	adrp	x8, _S_PMMAXXFERLEN0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _S_PMMAXXFERLEN0@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	lsr	w8, w0, w8
Lloh20:
	adrp	x9, _M_PMMAXXFERLEN0@GOTPAGE
Lloh21:
	ldr	x9, [x9, _M_PMMAXXFERLEN0@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	and	w8, w8, w9
Lloh23:
	adrp	x9, _S_PMMAXXFERLEN1@GOTPAGE
Lloh24:
	ldr	x9, [x9, _S_PMMAXXFERLEN1@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	lsr	w9, w0, w9
Lloh26:
	adrp	x10, _M_PMMAXXFERLEN1@GOTPAGE
Lloh27:
	ldr	x10, [x10, _M_PMMAXXFERLEN1@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	and	w1, w9, w10
	mov	x0, x8
	bl	_min
	stp	w0, w0, [x19, #24]
	ldr	w21, [x20, #4]
Lloh29:
	adrp	x8, _A_PM1_TX_CFG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _A_PM1_TX_CFG@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t3_read_reg
	lsr	w1, w0, #17
	mov	x0, x21
	bl	_min
	ldr	w1, [x19, #24]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_min
	str	w0, [x19, #24]
Lloh32:
	adrp	x22, _A_TP_PARA_REG2@GOTPAGE
Lloh33:
	ldr	x22, [x22, _A_TP_PARA_REG2@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_t3_read_reg
Lloh34:
	adrp	x23, _S_MAXRXDATA@GOTPAGE
Lloh35:
	ldr	x23, [x23, _S_MAXRXDATA@GOTPAGEOFF]
	ldr	w8, [x23]
	lsr	w8, w0, w8
	mov	w9, #16224
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.3:
Lloh36:
	adrp	x8, _M_RXCOALESCESIZE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _M_RXCOALESCESIZE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _S_RXCOALESCESIZE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _S_RXCOALESCESIZE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	and	w21, w8, w0
	mov	w0, #16224
	bl	_V_MAXRXDATA
	orr	w21, w21, w0
	ldr	w1, [x20]
Lloh42:
	adrp	x0, l_.str@PAGE
Lloh43:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_pr_info
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x21
	bl	_t3_write_reg
LBB0_4:
	ldr	w21, [x20, #8]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_t3_read_reg
	ldr	w8, [x23]
	lsr	w8, w0, w8
Lloh44:
	adrp	x9, _M_MAXRXDATA@GOTPAGE
Lloh45:
	ldr	x9, [x9, _M_MAXRXDATA@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	and	w1, w8, w9
	mov	x0, x21
	bl	_min
	ldr	w1, [x19, #28]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_min
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #28]
	b	LBB0_10
LBB0_5:
Lloh47:
	adrp	x8, _A_ULPRX_ISCSI_TAGMASK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _A_ULPRX_ISCSI_TAGMASK@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	mov	x0, x20
	bl	_t3_write_reg
	ldr	x8, [x19, #16]
	ldp	w9, w10, [x8]
	and	w21, w9, #0xf
	bfi	w21, w10, #8, #4
	ldp	w9, w8, [x8, #8]
	bfi	w21, w9, #16, #4
	bfi	w21, w8, #24, #4
	cbz	w21, LBB0_8
; %bb.6:
Lloh50:
	adrp	x22, _A_ULPRX_ISCSI_PSZ@GOTPAGE
Lloh51:
	ldr	x22, [x22, _A_ULPRX_ISCSI_PSZ@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_t3_read_reg
	cmp	w21, w0
	b.eq	LBB0_8
; %bb.7:
	ldr	w1, [x20]
	ldr	x8, [x19, #16]
	ldp	w9, w10, [x8]
	ldp	w11, w8, [x8, #8]
	stp	x11, x8, [sp, #16]
	stp	x9, x10, [sp]
Lloh52:
	adrp	x0, l_.str.1@PAGE
Lloh53:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_pr_info
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x21
	bl	_t3_write_reg
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh54:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_A_ULPRX_ISCSI_LLIMIT,4,2       ; @A_ULPRX_ISCSI_LLIMIT
	.comm	_A_ULPRX_ISCSI_ULIMIT,4,2       ; @A_ULPRX_ISCSI_ULIMIT
	.comm	_A_ULPRX_ISCSI_TAGMASK,4,2      ; @A_ULPRX_ISCSI_TAGMASK
	.comm	_A_ULPRX_ISCSI_PSZ,4,2          ; @A_ULPRX_ISCSI_PSZ
	.comm	_A_TP_PARA_REG7,4,2             ; @A_TP_PARA_REG7
	.comm	_S_PMMAXXFERLEN0,4,2            ; @S_PMMAXXFERLEN0
	.comm	_M_PMMAXXFERLEN0,4,2            ; @M_PMMAXXFERLEN0
	.comm	_S_PMMAXXFERLEN1,4,2            ; @S_PMMAXXFERLEN1
	.comm	_M_PMMAXXFERLEN1,4,2            ; @M_PMMAXXFERLEN1
	.comm	_A_PM1_TX_CFG,4,2               ; @A_PM1_TX_CFG
	.comm	_A_TP_PARA_REG2,4,2             ; @A_TP_PARA_REG2
	.comm	_S_MAXRXDATA,4,2                ; @S_MAXRXDATA
	.comm	_M_RXCOALESCESIZE,4,2           ; @M_RXCOALESCESIZE
	.comm	_S_RXCOALESCESIZE,4,2           ; @S_RXCOALESCESIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s, iscsi set MaxRxData to 16224 (0x%x)\n"

	.comm	_M_MAXRXDATA,4,2                ; @M_MAXRXDATA
l_.str.1:                               ; @.str.1
	.asciz	"%s, setting iscsi pgsz 0x%x, %u,%u,%u,%u\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_cxgb_ulp_iscsi_ctl
.subsections_via_symbols
