	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_setdcbx
_hclge_setdcbx:                         ## @hclge_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_hclge_get_vport
	movq	(%rbx), %rdx
	movq	(%rax), %r15
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	callq	_netif_dbg
	movq	_DCB_CAP_DCBX_LLD_MANAGED@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	testl	%r14d, (%rcx)
	jne	LBB0_4
## %bb.1:
	movq	_DCB_CAP_DCBX_VER_CEE@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	jne	LBB0_4
## %bb.2:
	movq	_DCB_CAP_DCBX_HOST@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	%r14d, (%r15)
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set dcbx: mode=%u\n"

	.comm	_DCB_CAP_DCBX_LLD_MANAGED,4,2   ## @DCB_CAP_DCBX_LLD_MANAGED
	.comm	_DCB_CAP_DCBX_VER_CEE,4,2       ## @DCB_CAP_DCBX_VER_CEE
	.comm	_DCB_CAP_DCBX_HOST,4,2          ## @DCB_CAP_DCBX_HOST
	.no_dead_strip	_hclge_setdcbx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_setdcbx
_hclge_setdcbx:                         ; @hclge_setdcbx
	.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	x19, x1
	mov	x20, x0
	bl	_hclge_get_vport
	ldr	x2, [x20]
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _drv@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x4, x19
	bl	_netif_dbg
Lloh5:
	adrp	x8, _DCB_CAP_DCBX_LLD_MANAGED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DCB_CAP_DCBX_LLD_MANAGED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w19
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _DCB_CAP_DCBX_VER_CEE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DCB_CAP_DCBX_VER_CEE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
LBB0_2:
	mov	w0, #1
LBB0_3:
	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
LBB0_4:
Lloh11:
	adrp	x8, _DCB_CAP_DCBX_HOST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DCB_CAP_DCBX_HOST@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_2
; %bb.5:
	mov	w0, #0
	str	w19, [x21]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set dcbx: mode=%u\n"

	.comm	_DCB_CAP_DCBX_LLD_MANAGED,4,2   ; @DCB_CAP_DCBX_LLD_MANAGED
	.comm	_DCB_CAP_DCBX_VER_CEE,4,2       ; @DCB_CAP_DCBX_VER_CEE
	.comm	_DCB_CAP_DCBX_HOST,4,2          ; @DCB_CAP_DCBX_HOST
	.no_dead_strip	_hclge_setdcbx
.subsections_via_symbols
