	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __qlcnic_get_eswitch_port_config
___qlcnic_get_eswitch_port_config:      ## @__qlcnic_get_eswitch_port_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movl	(%rsi), %r15d
	movq	_QLCNIC_CMD_GET_ESWITCH_PORT_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rdi
	movq	%r14, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	sarl	$8, %r15d
	movl	(%r13), %eax
	movq	-64(%rbp), %rcx
	movl	%eax, 4(%rcx)
	leaq	-72(%rbp), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_qlcnic_issue_cmd
	movl	%eax, %ebx
	movq	-72(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%ecx, (%r13)
	movl	8(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r12, %rdi
	callq	_qlcnic_free_mbx_args
	movq	_QLCNIC_RCODE_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_dev_info
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_dev_err
LBB0_4:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_CMD_GET_ESWITCH_PORT_CONFIG,4,2 ## @QLCNIC_CMD_GET_ESWITCH_PORT_CONFIG
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ## @QLCNIC_RCODE_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Get eSwitch port config for vNIC function %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get eswitch port config for vNIC function %d\n"

	.no_dead_strip	___qlcnic_get_eswitch_port_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __qlcnic_get_eswitch_port_config
___qlcnic_get_eswitch_port_config:      ; @__qlcnic_get_eswitch_port_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	x21, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x19, [x0]
	ldr	w22, [x1]
Lloh0:
	adrp	x8, _QLCNIC_CMD_GET_ESWITCH_PORT_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_CMD_GET_ESWITCH_PORT_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, sp
	mov	x1, x24
	bl	_qlcnic_alloc_mbx_args
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	asr	w22, w22, #8
	ldr	w8, [x23]
	ldr	x9, [sp, #8]
	str	w8, [x9, #4]
	mov	x1, sp
	mov	x0, x24
	bl	_qlcnic_issue_cmd
	mov	x20, x0
	ldr	x8, [sp]
	ldr	w9, [x8, #4]
	str	w9, [x23]
	ldr	w8, [x8, #8]
	str	w8, [x21]
	mov	x0, sp
	bl	_qlcnic_free_mbx_args
Lloh3:
	adrp	x8, _QLCNIC_RCODE_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_RCODE_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_info
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_CMD_GET_ESWITCH_PORT_CONFIG,4,2 ; @QLCNIC_CMD_GET_ESWITCH_PORT_CONFIG
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ; @QLCNIC_RCODE_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Get eSwitch port config for vNIC function %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get eswitch port config for vNIC function %d\n"

	.no_dead_strip	___qlcnic_get_eswitch_port_config
.subsections_via_symbols
