	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_dcbnl_setdcbx
_mlx4_en_dcbnl_setdcbx:                 ## @mlx4_en_dcbnl_setdcbx
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	$0, -48(%rbp)
	movq	$0, -32(%rbp)
	xorl	%r15d, %r15d
	cmpl	%ebx, (%rax)
	je	LBB0_15
## %bb.1:
	movq	_DCB_CAP_DCBX_LLD_MANAGED@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_2
LBB0_14:
	movl	$1, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_DCB_CAP_DCBX_VER_IEEE@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_DCB_CAP_DCBX_VER_CEE@GOTPCREL(%rip), %rdx
	testl	%ebx, (%rdx)
	jne	LBB0_14
LBB0_4:
	movq	_DCB_CAP_DCBX_HOST@GOTPCREL(%rip), %rdx
	testl	%ebx, (%rdx)
	je	LBB0_14
## %bb.5:
	movl	%ebx, (%rax)
	movq	_IEEE_8021QAZ_MAX_TCS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	%rax, -40(%rbp)
	testl	%ebx, (%rcx)
	je	LBB0_8
## %bb.6:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mlx4_en_dcbnl_ieee_setets
	testq	%rax, %rax
	jne	LBB0_14
## %bb.7:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mlx4_en_dcbnl_ieee_setpfc
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_15
LBB0_8:
	movq	_DCB_CAP_DCBX_VER_CEE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_mlx4_en_dcbnl_set_all
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_15
LBB0_10:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mlx4_en_dcbnl_ieee_setets
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mlx4_en_dcbnl_ieee_setpfc
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mlx4_en_alloc_tx_queue_per_tc
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_DCB_CAP_DCBX_LLD_MANAGED,4,2   ## @DCB_CAP_DCBX_LLD_MANAGED
	.comm	_DCB_CAP_DCBX_VER_IEEE,4,2      ## @DCB_CAP_DCBX_VER_IEEE
	.comm	_DCB_CAP_DCBX_VER_CEE,4,2       ## @DCB_CAP_DCBX_VER_CEE
	.comm	_DCB_CAP_DCBX_HOST,4,2          ## @DCB_CAP_DCBX_HOST
	.comm	_IEEE_8021QAZ_MAX_TCS,8,3       ## @IEEE_8021QAZ_MAX_TCS
	.no_dead_strip	_mlx4_en_dcbnl_setdcbx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_dcbnl_setdcbx
_mlx4_en_dcbnl_setdcbx:                 ; @mlx4_en_dcbnl_setdcbx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	str	xzr, [sp, #24]
	str	xzr, [sp, #8]
	ldr	w8, [x0]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _DCB_CAP_DCBX_LLD_MANAGED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCB_CAP_DCBX_LLD_MANAGED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
LBB0_3:
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
Lloh3:
	adrp	x8, _DCB_CAP_DCBX_VER_IEEE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCB_CAP_DCBX_VER_IEEE@GOTPAGEOFF]
	ldr	w9, [x8]
	tst	w9, w20
	b.eq	LBB0_7
; %bb.6:
Lloh5:
	adrp	x9, _DCB_CAP_DCBX_VER_CEE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DCB_CAP_DCBX_VER_CEE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w20
	b.ne	LBB0_3
LBB0_7:
Lloh8:
	adrp	x9, _DCB_CAP_DCBX_HOST@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DCB_CAP_DCBX_HOST@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_3
; %bb.8:
Lloh11:
	adrp	x9, _IEEE_8021QAZ_MAX_TCS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IEEE_8021QAZ_MAX_TCS@GOTPAGEOFF]
	str	w20, [x0]
Lloh13:
	ldr	x9, [x9]
	str	x9, [sp, #16]
	str	x9, [sp]
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.9:
	add	x1, sp, #16
	mov	x0, x19
	bl	_mlx4_en_dcbnl_ieee_setets
	cbnz	x0, LBB0_3
; %bb.10:
	mov	x1, sp
	mov	x0, x19
	bl	_mlx4_en_dcbnl_ieee_setpfc
	cbnz	x0, LBB0_3
	b	LBB0_4
LBB0_11:
Lloh14:
	adrp	x8, _DCB_CAP_DCBX_VER_CEE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DCB_CAP_DCBX_VER_CEE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_mlx4_en_dcbnl_set_all
	cbnz	x0, LBB0_3
	b	LBB0_4
LBB0_13:
	add	x1, sp, #16
	mov	x0, x19
	bl	_mlx4_en_dcbnl_ieee_setets
	cbnz	x0, LBB0_3
; %bb.14:
	mov	x1, sp
	mov	x0, x19
	bl	_mlx4_en_dcbnl_ieee_setpfc
	cbnz	x0, LBB0_3
; %bb.15:
	mov	x0, x19
	mov	w1, #0
	bl	_mlx4_en_alloc_tx_queue_per_tc
	cbnz	x0, LBB0_3
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DCB_CAP_DCBX_LLD_MANAGED,4,2   ; @DCB_CAP_DCBX_LLD_MANAGED
	.comm	_DCB_CAP_DCBX_VER_IEEE,4,2      ; @DCB_CAP_DCBX_VER_IEEE
	.comm	_DCB_CAP_DCBX_VER_CEE,4,2       ; @DCB_CAP_DCBX_VER_CEE
	.comm	_DCB_CAP_DCBX_HOST,4,2          ; @DCB_CAP_DCBX_HOST
	.comm	_IEEE_8021QAZ_MAX_TCS,8,3       ; @IEEE_8021QAZ_MAX_TCS
	.no_dead_strip	_mlx4_en_dcbnl_setdcbx
.subsections_via_symbols
