	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_get_hw_info
_qed_get_hw_info:                       ## @qed_get_hw_info
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_IS_LEAD_HWFN
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_qed_iov_hw_info
	testl	%eax, %eax
	jne	LBB0_19
LBB0_2:
	movq	%rbx, %rdi
	callq	_IS_LEAD_HWFN
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qed_hw_info_port_num
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qed_mcp_get_capabilities
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qed_hw_get_nvm_info
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qed_int_igu_read_cam
	testl	%eax, %eax
	je	LBB0_5
LBB0_19:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	callq	_qed_mcp_is_init
	movl	36(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	movl	16(%rax), %esi
	callq	_ether_addr_copy
	jmp	LBB0_8
LBB0_7:
	callq	_eth_random_addr
LBB0_8:
	movq	%rbx, %rdi
	callq	_qed_mcp_is_init
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_QED_MCP_VLAN_UNSET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movq	%rax, 8(%rbx)
LBB0_11:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qed_mcp_cmd_port_init
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qed_get_eee_caps
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qed_mcp_read_ufp_config
LBB0_12:
	movq	%rbx, %rdi
	callq	_qed_mcp_is_init
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	(%rbx), %rax
	movl	8(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_14:
	movq	%rbx, %rdi
	callq	_QED_IS_ROCE_PERSONALITY
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	$1, 20(%rbx)
LBB0_16:
	movq	_NUM_PHYS_TCS_4PORT_K2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	$1, 24(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_qed_get_num_funcs
	movq	%rbx, %rdi
	callq	_qed_mcp_is_init
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	(%rbx), %rax
	movl	12(%rax), %eax
	movl	%eax, 28(%rbx)
LBB0_18:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_qed_hw_get_resc                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_MCP_VLAN_UNSET,8,3         ## @QED_MCP_VLAN_UNSET
	.comm	_NUM_PHYS_TCS_4PORT_K2,4,2      ## @NUM_PHYS_TCS_4PORT_K2
	.no_dead_strip	_qed_get_hw_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_get_hw_info
_qed_get_hw_info:                       ; @qed_get_hw_info
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_IS_LEAD_HWFN
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_qed_iov_hw_info
	cbnz	w0, LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_IS_LEAD_HWFN
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_qed_hw_info_port_num
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_qed_mcp_get_capabilities
	mov	x0, x20
	mov	x1, x19
	bl	_qed_hw_get_nvm_info
	mov	x0, x20
	mov	x1, x19
	bl	_qed_int_igu_read_cam
	cbz	w0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x20
	bl	_qed_mcp_is_init
	mov	x8, x0
	ldr	w0, [x20, #36]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x20]
	ldr	w1, [x8, #16]
	bl	_ether_addr_copy
	b	LBB0_9
LBB0_8:
	bl	_eth_random_addr
LBB0_9:
	mov	x0, x20
	bl	_qed_mcp_is_init
	cbz	x0, LBB0_13
; %bb.10:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _QED_MCP_VLAN_UNSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QED_MCP_VLAN_UNSET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.11:
	str	x8, [x20, #8]
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_qed_mcp_cmd_port_init
	mov	x0, x20
	mov	x1, x19
	bl	_qed_get_eee_caps
	mov	x0, x20
	mov	x1, x19
	bl	_qed_mcp_read_ufp_config
LBB0_13:
	mov	x0, x20
	bl	_qed_mcp_is_init
	cbz	x0, LBB0_15
; %bb.14:
	ldr	x8, [x20]
	ldr	w8, [x8, #8]
	str	w8, [x20, #16]
LBB0_15:
	mov	x0, x20
	bl	_QED_IS_ROCE_PERSONALITY
	cbz	x0, LBB0_17
; %bb.16:
	mov	w8, #1
	str	w8, [x20, #20]
LBB0_17:
Lloh3:
	adrp	x8, _NUM_PHYS_TCS_4PORT_K2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_PHYS_TCS_4PORT_K2@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	mov	w8, #1
	str	w8, [x20, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_qed_get_num_funcs
	mov	x0, x20
	bl	_qed_mcp_is_init
	cbz	x0, LBB0_19
; %bb.18:
	ldr	x8, [x20]
	ldr	w8, [x8, #12]
	str	w8, [x20, #28]
LBB0_19:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_qed_hw_get_resc
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_MCP_VLAN_UNSET,8,3         ; @QED_MCP_VLAN_UNSET
	.comm	_NUM_PHYS_TCS_4PORT_K2,4,2      ; @NUM_PHYS_TCS_4PORT_K2
	.no_dead_strip	_qed_get_hw_info
.subsections_via_symbols
