	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_82xx_dcb_query_cee_param
_qlcnic_82xx_dcb_query_cee_param:       ## @qlcnic_82xx_dcb_query_cee_param
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	(%rdi), %rbx
	movq	(%rbx), %r14
	leal	-128(%r15), %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.2:
	movq	%rsi, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-52(%rbp), %rdx
	movq	%r14, %rdi
	movl	$40, %esi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r12
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	_QLCNIC_CMD_DCB_QUERY_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movl	-52(%rbp), %r13d
	shll	$16, %r15d
	orl	$40, %r15d
	movq	-48(%rbp), %rax
	movl	%r15d, 4(%rax)
	movl	%r13d, %edi
	callq	_MSD
	movq	-48(%rbp), %rcx
	movl	%eax, 8(%rcx)
	movl	%r13d, %edi
	callq	_LSD
	movq	-48(%rbp), %rcx
	movl	%eax, 12(%rcx)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_dev_err
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_15
LBB0_8:
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	32(%r12), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movq	-64(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	32(%r12), %rax
	movl	4(%rax), %edi
	callq	_le32_to_cpu
	movq	-64(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	24(%r12), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movq	-72(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	24(%r12), %rax
	movl	4(%rax), %edi
	callq	_le32_to_cpu
	movq	-72(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	16(%r12), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movq	-80(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	16(%r12), %rax
	movl	4(%rax), %edi
	callq	_le32_to_cpu
	movq	-80(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movq	-88(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	8(%r12), %rax
	movl	4(%rax), %edi
	callq	_le32_to_cpu
	movq	-88(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	_QLC_DCB_MAX_APP@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_le32_to_cpu
	movq	-96(%rbp), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_11:
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	leaq	-96(%rbp), %rsi
	movl	$40, %edx
	callq	_memcpy
LBB0_13:
	leaq	-48(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_14:
	movl	-52(%rbp), %ecx
	movq	%r14, %rdi
	movl	$40, %esi
	movq	%r12, %rdx
	callq	_dma_free_coherent
LBB0_15:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid parameter type %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QLCNIC_CMD_DCB_QUERY_PARAM,4,2 ## @QLCNIC_CMD_DCB_QUERY_PARAM
L_.str.1:                               ## @.str.1
	.asciz	"Failed to query DCBX parameter, err %d\n"

	.comm	_QLC_DCB_MAX_APP,4,2            ## @QLC_DCB_MAX_APP
	.no_dead_strip	_qlcnic_82xx_dcb_query_cee_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_82xx_dcb_query_cee_param
_qlcnic_82xx_dcb_query_cee_param:       ; @qlcnic_82xx_dcb_query_cee_param
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x2
	ldr	x23, [x0]
	ldr	x19, [x23]
	sub	w8, w2, #128
	cmp	w8, #3
	b.hs	LBB0_5
; %bb.1:
	mov	x21, x1
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	sub	x2, x29, #52
	mov	x0, x19
	mov	w1, #40
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x8, _QLCNIC_CMD_DCB_QUERY_PARAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_CMD_DCB_QUERY_PARAM@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x23
	bl	_qlcnic_alloc_mbx_args
	mov	x22, x0
	cbnz	w0, LBB0_14
; %bb.3:
	ldur	w22, [x29, #-52]
	mov	w8, #40
	bfi	w8, w24, #16, #16
	ldr	x9, [sp, #8]
	str	w8, [x9, #4]
	mov	x0, x22
	bl	_MSD
	ldr	x8, [sp, #8]
	str	w0, [x8, #8]
	mov	x0, x22
	bl	_LSD
	ldr	x8, [sp, #8]
	str	w0, [x8, #12]
	add	x1, sp, #8
	mov	x0, x23
	bl	_qlcnic_issue_cmd
	mov	x22, x0
	cbz	w0, LBB0_8
; %bb.4:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
	b	LBB0_13
LBB0_5:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	bl	_dev_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_8:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	x8, [x20, #32]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	ldr	x8, [sp, #48]
	str	x0, [x8]
	ldr	x8, [x20, #32]
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
	ldr	x8, [sp, #48]
	str	x0, [x8, #8]
	ldr	x8, [x20, #24]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	ldr	x8, [sp, #40]
	str	x0, [x8]
	ldr	x8, [x20, #24]
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
	ldr	x8, [sp, #40]
	str	x0, [x8, #8]
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	ldr	x8, [sp, #32]
	str	x0, [x8]
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
	ldr	x8, [sp, #32]
	str	x0, [x8, #8]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	ldr	x8, [sp, #24]
	str	x0, [x8]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
	ldr	x8, [sp, #24]
	str	x0, [x8, #8]
Lloh14:
	adrp	x23, _QLC_DCB_MAX_APP@GOTPAGE
Lloh15:
	ldr	x23, [x23, _QLC_DCB_MAX_APP@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x24, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8, x24, lsl #2]
	bl	_le32_to_cpu
	ldr	x8, [sp, #16]
	str	x0, [x8, x24, lsl #3]
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.lt	LBB0_10
LBB0_11:
	cbz	x21, LBB0_13
; %bb.12:
	add	x1, sp, #16
	mov	x0, x21
	mov	w2, #40
	bl	_memcpy
LBB0_13:
	add	x0, sp, #8
	bl	_qlcnic_free_mbx_args
LBB0_14:
	ldur	w3, [x29, #-52]
	mov	x0, x19
	mov	w1, #40
	mov	x2, x20
	bl	_dma_free_coherent
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid parameter type %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QLCNIC_CMD_DCB_QUERY_PARAM,4,2 ; @QLCNIC_CMD_DCB_QUERY_PARAM
l_.str.1:                               ; @.str.1
	.asciz	"Failed to query DCBX parameter, err %d\n"

	.comm	_QLC_DCB_MAX_APP,4,2            ; @QLC_DCB_MAX_APP
	.no_dead_strip	_qlcnic_82xx_dcb_query_cee_param
.subsections_via_symbols
