	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_get_port_type      ## -- Begin function qlcnic_83xx_get_port_type
	.p2align	4, 0x90
_qlcnic_83xx_get_port_type:             ## @qlcnic_83xx_get_port_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	_QLCNIC_CMD_GET_LINK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_qlcnic_alloc_mbx_args
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_qlcnic_issue_cmd
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_info
	jmp	LBB0_7
LBB0_3:
	movq	-24(%rbp), %rax
	movl	12(%rax), %edi
	callq	_QLC_83XX_SFP_MODULE_TYPE
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.4:
	movq	_QLCNIC_GBE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_QLCNIC_XGBE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_7:
	leaq	-24(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_CMD_GET_LINK_STATUS,4,2 ## @QLCNIC_CMD_GET_LINK_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Get Link Status Command failed: 0x%x\n"

	.comm	_QLCNIC_GBE,4,2                 ## @QLCNIC_GBE
	.comm	_QLCNIC_XGBE,4,2                ## @QLCNIC_XGBE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_get_port_type      ; -- Begin function qlcnic_83xx_get_port_type
	.p2align	2
_qlcnic_83xx_get_port_type:             ; @qlcnic_83xx_get_port_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _QLCNIC_CMD_GET_LINK_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_CMD_GET_LINK_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	cbnz	w0, LBB0_8
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	cbz	w0, LBB0_3
; %bb.2:
	mov	x2, x0
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	b	LBB0_7
LBB0_3:
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #12]
	bl	_QLC_83XX_SFP_MODULE_TYPE
	and	w8, w0, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _QLCNIC_GBE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLCNIC_GBE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _QLCNIC_XGBE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _QLCNIC_XGBE@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_7:
	add	x0, sp, #8
	bl	_qlcnic_free_mbx_args
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_CMD_GET_LINK_STATUS,4,2 ; @QLCNIC_CMD_GET_LINK_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Get Link Status Command failed: 0x%x\n"

	.comm	_QLCNIC_GBE,4,2                 ; @QLCNIC_GBE
	.comm	_QLCNIC_XGBE,4,2                ; @QLCNIC_XGBE
.subsections_via_symbols
