	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __be_cmd_set_logical_link_config
___be_cmd_set_logical_link_config:      ## @__be_cmd_set_logical_link_config
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_wrb_from_mccq
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_embedded_payload
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%rax, %rbx
	leaq	4(%rax), %rdi
	movq	_CMD_SUBSYSTEM_COMMON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OPCODE_COMMON_SET_LOGICAL_LINK_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	movl	$12, %ecx
	movq	%r15, %r8
	xorl	%r9d, %r9d
	callq	_be_wrb_cmd_hdr_prepare
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rbx)
	movq	_IFLA_VF_LINK_STATE_AUTO@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	movq	_IFLA_VF_LINK_STATE_ENABLE@GOTPCREL(%rip), %rax
	movq	_PLINK_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$0, %edi
	movq	_PLINK_TRACK@GOTPCREL(%rip), %rdx
	cmovel	(%rdx), %r13d
	cmovel	%ecx, %edi
	cmpl	%r14d, (%rax)
	cmovel	%ecx, %edi
	orl	%r13d, %edi
	callq	_cpu_to_le32
	movl	%eax, (%rbx)
	movq	%r12, %rdi
	callq	_be_mcc_notify_wait
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ## @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_SET_LOGICAL_LINK_CONFIG,4,2 ## @OPCODE_COMMON_SET_LOGICAL_LINK_CONFIG
	.comm	_IFLA_VF_LINK_STATE_ENABLE,4,2  ## @IFLA_VF_LINK_STATE_ENABLE
	.comm	_IFLA_VF_LINK_STATE_AUTO,4,2    ## @IFLA_VF_LINK_STATE_AUTO
	.comm	_PLINK_ENABLE,4,2               ## @PLINK_ENABLE
	.comm	_PLINK_TRACK,4,2                ## @PLINK_TRACK
	.no_dead_strip	___be_cmd_set_logical_link_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __be_cmd_set_logical_link_config
___be_cmd_set_logical_link_config:      ; @__be_cmd_set_logical_link_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_lock
	mov	x0, x19
	bl	_wrb_from_mccq
	cbz	x0, LBB0_2
; %bb.1:
	mov	x23, x0
	bl	_embedded_payload
	mov	x24, x0
	add	x0, x0, #4
Lloh0:
	adrp	x8, _CMD_SUBSYSTEM_COMMON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_SUBSYSTEM_COMMON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _OPCODE_COMMON_SET_LOGICAL_LINK_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPCODE_COMMON_SET_LOGICAL_LINK_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #12
	mov	x4, x23
	mov	x5, #0
	bl	_be_wrb_cmd_hdr_prepare
Lloh6:
	adrp	x8, _IFLA_VF_LINK_STATE_AUTO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IFLA_VF_LINK_STATE_AUTO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _PLINK_TRACK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PLINK_TRACK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w20
	csel	w8, w9, wzr, eq
	stp	w22, w21, [x24, #4]
Lloh12:
	adrp	x9, _IFLA_VF_LINK_STATE_ENABLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IFLA_VF_LINK_STATE_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ccmp	w9, w20, #4, ne
Lloh15:
	adrp	x9, _PLINK_ENABLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PLINK_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	csel	w9, w9, wzr, eq
	orr	w0, w9, w8
	bl	_cpu_to_le32
	str	w0, [x24]
	mov	x0, x19
	bl	_be_mcc_notify_wait
	mov	x20, x0
	b	LBB0_3
LBB0_2:
Lloh18:
	adrp	x8, _EBUSY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ; @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_SET_LOGICAL_LINK_CONFIG,4,2 ; @OPCODE_COMMON_SET_LOGICAL_LINK_CONFIG
	.comm	_IFLA_VF_LINK_STATE_ENABLE,4,2  ; @IFLA_VF_LINK_STATE_ENABLE
	.comm	_IFLA_VF_LINK_STATE_AUTO,4,2    ; @IFLA_VF_LINK_STATE_AUTO
	.comm	_PLINK_ENABLE,4,2               ; @PLINK_ENABLE
	.comm	_PLINK_TRACK,4,2                ; @PLINK_TRACK
	.no_dead_strip	___be_cmd_set_logical_link_config
.subsections_via_symbols
