	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __qlcnic_dcb_get_capability
___qlcnic_dcb_get_capability:           ## @__qlcnic_dcb_get_capability
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qlcnic_dcb_query_hw_capability
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movl	(%rbx), %r15d
	movl	%r15d, %edi
	callq	_QLC_DCB_TSA_SUPPORT
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$1, (%r12)
LBB0_3:
	movl	%r15d, %edi
	callq	_QLC_DCB_ETS_SUPPORT
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$1, 4(%r12)
LBB0_5:
	movl	%r15d, %edi
	callq	_QLC_DCB_MAX_NUM_TC
	movq	%rax, 8(%r12)
	movl	%r15d, %edi
	callq	_QLC_DCB_MAX_NUM_ETS_TC
	movq	%rax, 16(%r12)
	movl	%r15d, %edi
	callq	_QLC_DCB_MAX_NUM_PFC_TC
	movq	%rax, %rcx
	movq	%rax, 24(%r12)
	movq	8(%r12), %rdx
	movq	_QLC_DCB_MAX_TC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jle	LBB0_6
LBB0_8:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_6:
	cmpq	%rdx, 16(%r12)
	jg	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	cmpq	%rdx, %rcx
	jg	LBB0_8
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_DCB_MAX_TC,8,3             ## @QLC_DCB_MAX_TC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid DCB configuration\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	___qlcnic_dcb_get_capability
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __qlcnic_dcb_get_capability
___qlcnic_dcb_get_capability:           ; @__qlcnic_dcb_get_capability
	.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, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x0, x19
	mov	x1, x21
	bl	_qlcnic_dcb_query_hw_capability
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	w21, [x21]
	mov	x0, x21
	bl	_QLC_DCB_TSA_SUPPORT
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x20]
LBB0_3:
	mov	x0, x21
	bl	_QLC_DCB_ETS_SUPPORT
	cbz	x0, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_5:
	mov	x0, x21
	bl	_QLC_DCB_MAX_NUM_TC
	str	x0, [x20, #8]
	mov	x0, x21
	bl	_QLC_DCB_MAX_NUM_ETS_TC
	str	x0, [x20, #16]
	mov	x0, x21
	bl	_QLC_DCB_MAX_NUM_PFC_TC
	str	x0, [x20, #24]
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _QLC_DCB_MAX_TC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLC_DCB_MAX_TC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_9
; %bb.6:
	ldr	x9, [x20, #16]
	cmp	x9, x8
	b.gt	LBB0_9
; %bb.7:
	cmp	x0, x8
	b.gt	LBB0_9
; %bb.8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	ldr	x8, [x19]
	ldr	x0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_DCB_MAX_TC,8,3             ; @QLC_DCB_MAX_TC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid DCB configuration\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	___qlcnic_dcb_get_capability
.subsections_via_symbols
