	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_get_pauseparam
_qlcnic_get_pauseparam:                 ## @qlcnic_get_pauseparam
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	(%rax), %rax
	movl	(%rax), %r15d
	movl	$0, -36(%rbp)
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_check
	testq	%rax, %rax
	je	LBB0_1
## %bb.23:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qlcnic_83xx_get_pauseparam     ## TAILCALL
LBB0_1:
	movq	(%rbx), %rax
	movq	8(%rax), %rdx
	movq	_QLCNIC_GBE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_15
## %bb.2:
	testl	%r15d, %r15d
	js	LBB0_11
## %bb.3:
	movq	_QLCNIC_NIU_MAX_GBE_PORTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jg	LBB0_11
## %bb.4:
	movl	%r15d, %edi
	callq	_QLCNIC_NIU_GB_MAC_CONFIG_0
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_QLCRD32
	movl	-36(%rbp), %ecx
	movq	_EIO@GOTPCREL(%rip), %r12
	addl	(%r12), %ecx
	je	LBB0_11
## %bb.5:
	movl	%eax, %edi
	callq	_qlcnic_gb_get_rx_flowctl
	movl	%eax, (%r14)
	movq	_QLCNIC_NIU_GB_PAUSE_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_QLCRD32
	movl	-36(%rbp), %ecx
	addl	(%r12), %ecx
	je	LBB0_11
## %bb.6:
	movl	%eax, %edi
	cmpl	$2, %r15d
	je	LBB0_13
## %bb.7:
	cmpl	$1, %r15d
	je	LBB0_12
## %bb.8:
	testl	%r15d, %r15d
	jne	LBB0_14
## %bb.9:
	callq	_qlcnic_gb_get_gb0_mask
	jmp	LBB0_10
LBB0_15:
	movq	_QLCNIC_XGBE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_22
## %bb.16:
	testl	%r15d, %r15d
	js	LBB0_11
## %bb.17:
	movq	_QLCNIC_NIU_MAX_XG_PORTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jg	LBB0_11
## %bb.18:
	movl	$1, (%r14)
	movq	_QLCNIC_NIU_XG_PAUSE_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_QLCRD32
	movl	-36(%rbp), %ecx
	movq	_EIO@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	je	LBB0_11
## %bb.19:
	movl	%eax, %edi
	testl	%r15d, %r15d
	je	LBB0_20
## %bb.21:
	callq	_qlcnic_xg_get_xg1_mask
	jmp	LBB0_10
LBB0_22:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_20:
	callq	_qlcnic_xg_get_xg0_mask
	jmp	LBB0_10
LBB0_13:
	callq	_qlcnic_gb_get_gb2_mask
	jmp	LBB0_10
LBB0_12:
	callq	_qlcnic_gb_get_gb1_mask
	jmp	LBB0_10
LBB0_14:
	callq	_qlcnic_gb_get_gb3_mask
LBB0_10:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, 4(%r14)
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_GBE,8,3                 ## @QLCNIC_GBE
	.comm	_QLCNIC_NIU_MAX_GBE_PORTS,4,2   ## @QLCNIC_NIU_MAX_GBE_PORTS
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLCNIC_NIU_GB_PAUSE_CTL,4,2    ## @QLCNIC_NIU_GB_PAUSE_CTL
	.comm	_QLCNIC_XGBE,8,3                ## @QLCNIC_XGBE
	.comm	_QLCNIC_NIU_MAX_XG_PORTS,4,2    ## @QLCNIC_NIU_MAX_XG_PORTS
	.comm	_QLCNIC_NIU_XG_PAUSE_CTL,4,2    ## @QLCNIC_NIU_XG_PAUSE_CTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown board type: %x\n"

	.no_dead_strip	_qlcnic_get_pauseparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_get_pauseparam
_qlcnic_get_pauseparam:                 ; @qlcnic_get_pauseparam
	.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
	mov	x19, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x8, [x0]
	ldr	w20, [x8]
	str	wzr, [sp, #12]
	bl	_qlcnic_83xx_check
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	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
	b	_qlcnic_83xx_get_pauseparam
LBB0_2:
	ldr	x8, [x21]
	ldr	x2, [x8, #8]
Lloh0:
	adrp	x8, _QLCNIC_GBE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_GBE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_11
; %bb.3:
	tbnz	w20, #31, LBB0_23
; %bb.4:
Lloh3:
	adrp	x8, _QLCNIC_NIU_MAX_GBE_PORTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_NIU_MAX_GBE_PORTS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w20, w8
	b.gt	LBB0_23
; %bb.5:
	mov	x0, x20
	bl	_QLCNIC_NIU_GB_MAC_CONFIG_0
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x21
	bl	_QLCRD32
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x22, _EIO@GOTPAGE
Lloh7:
	ldr	x22, [x22, _EIO@GOTPAGEOFF]
	ldr	w9, [x22]
	cmn	w8, w9
	b.eq	LBB0_23
; %bb.6:
	bl	_qlcnic_gb_get_rx_flowctl
	str	w0, [x19]
Lloh8:
	adrp	x8, _QLCNIC_NIU_GB_PAUSE_CTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QLCNIC_NIU_GB_PAUSE_CTL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_QLCRD32
	ldr	w8, [sp, #12]
	ldr	w9, [x22]
	cmn	w8, w9
	b.eq	LBB0_23
; %bb.7:
	cmp	w20, #2
	b.eq	LBB0_19
; %bb.8:
	cmp	w20, #1
	b.eq	LBB0_20
; %bb.9:
	cbnz	w20, LBB0_21
; %bb.10:
	bl	_qlcnic_gb_get_gb0_mask
	b	LBB0_22
LBB0_11:
Lloh11:
	adrp	x8, _QLCNIC_XGBE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QLCNIC_XGBE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_17
; %bb.12:
	tbnz	w20, #31, LBB0_23
; %bb.13:
Lloh14:
	adrp	x8, _QLCNIC_NIU_MAX_XG_PORTS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _QLCNIC_NIU_MAX_XG_PORTS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w20, w8
	b.gt	LBB0_23
; %bb.14:
	mov	w8, #1
	str	w8, [x19]
Lloh17:
	adrp	x8, _QLCNIC_NIU_XG_PAUSE_CTL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _QLCNIC_NIU_XG_PAUSE_CTL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_QLCRD32
	ldr	w8, [sp, #12]
Lloh20:
	adrp	x9, _EIO@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmn	w8, w9
	b.eq	LBB0_23
; %bb.15:
	cbz	w20, LBB0_18
; %bb.16:
	bl	_qlcnic_xg_get_xg1_mask
	b	LBB0_22
LBB0_17:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_dev_err
LBB0_18:
	bl	_qlcnic_xg_get_xg0_mask
	b	LBB0_22
LBB0_19:
	bl	_qlcnic_gb_get_gb2_mask
	b	LBB0_22
LBB0_20:
	bl	_qlcnic_gb_get_gb1_mask
	b	LBB0_22
LBB0_21:
	bl	_qlcnic_gb_get_gb3_mask
LBB0_22:
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x19, #4]
LBB0_23:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_GBE,8,3                 ; @QLCNIC_GBE
	.comm	_QLCNIC_NIU_MAX_GBE_PORTS,4,2   ; @QLCNIC_NIU_MAX_GBE_PORTS
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLCNIC_NIU_GB_PAUSE_CTL,4,2    ; @QLCNIC_NIU_GB_PAUSE_CTL
	.comm	_QLCNIC_XGBE,8,3                ; @QLCNIC_XGBE
	.comm	_QLCNIC_NIU_MAX_XG_PORTS,4,2    ; @QLCNIC_NIU_MAX_XG_PORTS
	.comm	_QLCNIC_NIU_XG_PAUSE_CTL,4,2    ; @QLCNIC_NIU_XG_PAUSE_CTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown board type: %x\n"

	.no_dead_strip	_qlcnic_get_pauseparam
.subsections_via_symbols
