	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_aq_get_switch_config      ## -- Begin function i40e_aq_get_switch_config
	.p2align	4, 0x90
_i40e_aq_get_switch_config:             ## @i40e_aq_get_switch_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
	movq	%r8, %r14
	movq	%rcx, %r15
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_i40e_aqc_opc_get_switch_config@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_i40e_fill_default_direct_cmd_desc
	movq	_I40E_AQ_FLAG_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, -48(%rbp)
	movq	_I40E_AQ_LARGE_BUF@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jge	LBB0_2
## %bb.1:
	movq	_I40E_AQ_FLAG_LB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, -48(%rbp)
LBB0_2:
	movl	(%r15), %edi
	callq	_cpu_to_le16
	movl	%eax, -44(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	movq	%r14, %r8
	callq	_i40e_asq_send_command
	movl	%eax, %ebx
	movl	-44(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, (%r15)
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i40e_aqc_opc_get_switch_config,4,2 ## @i40e_aqc_opc_get_switch_config
	.comm	_I40E_AQ_FLAG_BUF,8,3           ## @I40E_AQ_FLAG_BUF
	.comm	_I40E_AQ_LARGE_BUF,4,2          ## @I40E_AQ_LARGE_BUF
	.comm	_I40E_AQ_FLAG_LB,8,3            ## @I40E_AQ_FLAG_LB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_aq_get_switch_config      ; -- Begin function i40e_aq_get_switch_config
	.p2align	2
_i40e_aq_get_switch_config:             ; @i40e_aq_get_switch_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _i40e_aqc_opc_get_switch_config@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i40e_aqc_opc_get_switch_config@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_i40e_fill_default_direct_cmd_desc
Lloh3:
	adrp	x8, _I40E_AQ_FLAG_BUF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_AQ_FLAG_BUF@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [sp, #8]
	orr	w8, w8, w0
	str	w8, [sp, #8]
Lloh6:
	adrp	x8, _I40E_AQ_LARGE_BUF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40E_AQ_LARGE_BUF@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ge	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _I40E_AQ_FLAG_LB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40E_AQ_FLAG_LB@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [sp, #8]
	orr	w8, w8, w0
	str	w8, [sp, #8]
LBB0_2:
	ldr	w0, [x19]
	bl	_cpu_to_le16
	str	w0, [sp, #12]
	add	x1, sp, #8
	mov	x0, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_i40e_asq_send_command
	mov	x20, x0
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	str	w0, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_i40e_aqc_opc_get_switch_config,4,2 ; @i40e_aqc_opc_get_switch_config
	.comm	_I40E_AQ_FLAG_BUF,8,3           ; @I40E_AQ_FLAG_BUF
	.comm	_I40E_AQ_LARGE_BUF,4,2          ; @I40E_AQ_LARGE_BUF
	.comm	_I40E_AQ_FLAG_LB,8,3            ; @I40E_AQ_FLAG_LB
.subsections_via_symbols
