	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_dbg_dev_init
_qed_dbg_dev_init:                      ## @qed_dbg_dev_init
	.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	_DBG_STATUS_OK@GOTPCREL(%rip), %r13
	cmpl	$0, 8(%rdi)
	jne	LBB0_20
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_QED_IS_K2
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_CHIP_K2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	24(%rbx), %rax
	movq	_MODE_K2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$1, (%rax,%rcx,4)
	movq	_MAX_NUM_VFS_K2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%rbx)
	movq	_MAX_NUM_PFS_K2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movl	%r15d, %r14d
	shrl	$31, %r14d
	addl	%r15d, %r14d
	sarl	%r14d
	jmp	LBB0_6
LBB0_3:
	movl	(%rbx), %edi
	callq	_QED_IS_BB_B0
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_CHIP_BB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	24(%rbx), %rax
	movq	_MODE_BB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$1, (%rax,%rcx,4)
	movq	_MAX_NUM_VFS_BB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%rbx)
	movq	_MAX_NUM_PFS_BB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movl	%r15d, %r14d
LBB0_6:
	movq	_PLATFORM_ASIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%rbx)
	movq	_MODE_ASIC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$1, (%rax,%rcx,4)
	movq	_MISC_REG_PORT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_qed_rd
	cmpl	$2, %eax
	ja	LBB0_8
## %bb.7:
	cltq
	leaq	l_switch.table.qed_dbg_dev_init(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	24(%rbx), %rcx
	movq	(%rax), %rax
	movl	$1, (%rcx,%rax,4)
LBB0_8:
	movq	16(%rbx), %rax
	movq	_CHIP_BB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	movq	_CNIG_REG_NW_PORT_MODE_BB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_qed_rd
	cmpl	$2, %eax
	jne	LBB0_11
## %bb.10:
	movq	24(%rbx), %rax
	movq	_MODE_100G@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$1, (%rax,%rcx,4)
LBB0_11:
	movq	24(%rbx), %rax
	movq	_MODE_PORTS_PER_ENG_1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	jne	LBB0_13
## %bb.12:
	movq	_MODE_100G@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_14
LBB0_13:
	movl	$1, 32(%rbx)
	movl	$1, %ecx
LBB0_19:
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_min_t
	movl	%eax, 40(%rbx)
	movq	%rbx, %rdi
	callq	_qed_dbg_grc_init_params
	movl	$1, 36(%rbx)
	movl	$1, 8(%rbx)
LBB0_20:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_DBG_STATUS_UNKNOWN_CHIP@GOTPCREL(%rip), %r13
	jmp	LBB0_20
LBB0_14:
	movq	_MODE_PORTS_PER_ENG_2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_16
## %bb.15:
	movl	$2, 32(%rbx)
	movl	$2, %ecx
	jmp	LBB0_19
LBB0_16:
	movq	_MODE_PORTS_PER_ENG_4@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_17
## %bb.18:
	movl	$4, 32(%rbx)
	movl	$4, %ecx
	jmp	LBB0_19
LBB0_17:
	movl	32(%rbx), %ecx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_DBG_STATUS_OK,4,2              ## @DBG_STATUS_OK
	.comm	_CHIP_K2,8,3                    ## @CHIP_K2
	.comm	_MODE_K2,8,3                    ## @MODE_K2
	.comm	_MAX_NUM_VFS_K2,4,2             ## @MAX_NUM_VFS_K2
	.comm	_MAX_NUM_PFS_K2,4,2             ## @MAX_NUM_PFS_K2
	.comm	_CHIP_BB,8,3                    ## @CHIP_BB
	.comm	_MODE_BB,8,3                    ## @MODE_BB
	.comm	_MAX_NUM_VFS_BB,4,2             ## @MAX_NUM_VFS_BB
	.comm	_MAX_NUM_PFS_BB,4,2             ## @MAX_NUM_PFS_BB
	.comm	_DBG_STATUS_UNKNOWN_CHIP,4,2    ## @DBG_STATUS_UNKNOWN_CHIP
	.comm	_PLATFORM_ASIC,4,2              ## @PLATFORM_ASIC
	.comm	_MODE_ASIC,8,3                  ## @MODE_ASIC
	.comm	_MISC_REG_PORT_MODE,4,2         ## @MISC_REG_PORT_MODE
	.comm	_MODE_PORTS_PER_ENG_1,8,3       ## @MODE_PORTS_PER_ENG_1
	.comm	_MODE_PORTS_PER_ENG_2,8,3       ## @MODE_PORTS_PER_ENG_2
	.comm	_MODE_PORTS_PER_ENG_4,8,3       ## @MODE_PORTS_PER_ENG_4
	.comm	_CNIG_REG_NW_PORT_MODE_BB,4,2   ## @CNIG_REG_NW_PORT_MODE_BB
	.comm	_MODE_100G,8,3                  ## @MODE_100G
	.comm	_u32,4,2                        ## @u32
	.no_dead_strip	_qed_dbg_dev_init
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.qed_dbg_dev_init
l_switch.table.qed_dbg_dev_init:
	.quad	_MODE_PORTS_PER_ENG_1
	.quad	_MODE_PORTS_PER_ENG_2
	.quad	_MODE_PORTS_PER_ENG_4

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_dbg_dev_init
_qed_dbg_dev_init:                      ; @qed_dbg_dev_init
	.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
	ldr	w8, [x0, #8]
	cbnz	w8, LBB0_15
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_QED_IS_K2
Lloh0:
	adrp	x23, _CHIP_BB@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CHIP_BB@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _CHIP_K2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CHIP_K2@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	ldr	x8, [x19, #24]
Lloh5:
	adrp	x9, _MODE_K2@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MODE_K2@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	mov	w10, #1
	str	w10, [x8, x9, lsl #2]
Lloh8:
	adrp	x9, _MAX_NUM_VFS_K2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAX_NUM_VFS_K2@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	str	w9, [x19, #48]
Lloh11:
	adrp	x9, _MAX_NUM_PFS_K2@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MAX_NUM_PFS_K2@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x9]
	cmp	w22, #0
	cinc	w9, w22, lt
	asr	w20, w9, #1
	b	LBB0_5
LBB0_3:
	ldr	w0, [x19]
	bl	_QED_IS_BB_B0
	cbz	x0, LBB0_17
; %bb.4:
	ldr	x8, [x23]
	str	x8, [x19, #16]
	ldr	x8, [x19, #24]
Lloh14:
	adrp	x9, _MODE_BB@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MODE_BB@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	mov	w10, #1
	str	w10, [x8, x9, lsl #2]
Lloh17:
	adrp	x9, _MAX_NUM_VFS_BB@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MAX_NUM_VFS_BB@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	str	w9, [x19, #48]
Lloh20:
	adrp	x9, _MAX_NUM_PFS_BB@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MAX_NUM_PFS_BB@GOTPAGEOFF]
Lloh22:
	ldr	w22, [x9]
	mov	x20, x22
LBB0_5:
Lloh23:
	adrp	x9, _PLATFORM_ASIC@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PLATFORM_ASIC@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	str	w9, [x19, #44]
Lloh26:
	adrp	x9, _MODE_ASIC@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MODE_ASIC@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	mov	w24, #1
	str	w24, [x8, x9, lsl #2]
Lloh29:
	adrp	x8, _MISC_REG_PORT_MODE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MISC_REG_PORT_MODE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_qed_rd
	cmp	w0, #2
	b.hi	LBB0_7
; %bb.6:
Lloh32:
	adrp	x8, l_switch.table.qed_dbg_dev_init@PAGE
Lloh33:
	add	x8, x8, l_switch.table.qed_dbg_dev_init@PAGEOFF
	ldr	x8, [x8, w0, sxtw #3]
	ldr	x9, [x19, #24]
	ldr	x8, [x8]
	str	w24, [x9, x8, lsl #2]
LBB0_7:
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
Lloh34:
	adrp	x8, _CNIG_REG_NW_PORT_MODE_BB@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CNIG_REG_NW_PORT_MODE_BB@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_qed_rd
	cmp	w0, #2
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x19, #24]
Lloh37:
	adrp	x9, _MODE_100G@GOTPAGE
Lloh38:
	ldr	x9, [x9, _MODE_100G@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	mov	w10, #1
	str	w10, [x8, x9, lsl #2]
LBB0_10:
	ldr	x8, [x19, #24]
Lloh40:
	adrp	x9, _MODE_PORTS_PER_ENG_1@GOTPAGE
Lloh41:
	ldr	x9, [x9, _MODE_PORTS_PER_ENG_1@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cbnz	w9, LBB0_12
; %bb.11:
Lloh43:
	adrp	x9, _MODE_100G@GOTPAGE
Lloh44:
	ldr	x9, [x9, _MODE_100G@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cbz	w9, LBB0_18
LBB0_12:
	mov	w8, #1
LBB0_13:
	str	w8, [x19, #32]
LBB0_14:
Lloh46:
	adrp	x9, _u32@GOTPAGE
Lloh47:
	ldr	x9, [x9, _u32@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x9]
	sdiv	w1, w22, w8
	mov	x2, x20
	bl	_min_t
	str	w0, [x19, #40]
	mov	x0, x19
	bl	_qed_dbg_grc_init_params
	mov	w8, #1
	str	w8, [x19, #36]
	str	w8, [x19, #8]
LBB0_15:
Lloh49:
	adrp	x8, _DBG_STATUS_OK@GOTPAGE
Lloh50:
	ldr	x8, [x8, _DBG_STATUS_OK@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	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
LBB0_17:
Lloh51:
	adrp	x8, _DBG_STATUS_UNKNOWN_CHIP@GOTPAGE
Lloh52:
	ldr	x8, [x8, _DBG_STATUS_UNKNOWN_CHIP@GOTPAGEOFF]
	b	LBB0_16
LBB0_18:
Lloh53:
	adrp	x9, _MODE_PORTS_PER_ENG_2@GOTPAGE
Lloh54:
	ldr	x9, [x9, _MODE_PORTS_PER_ENG_2@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cbz	w9, LBB0_20
; %bb.19:
	mov	w8, #2
	b	LBB0_13
LBB0_20:
Lloh56:
	adrp	x9, _MODE_PORTS_PER_ENG_4@GOTPAGE
Lloh57:
	ldr	x9, [x9, _MODE_PORTS_PER_ENG_4@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_22
; %bb.21:
	mov	w8, #4
	b	LBB0_13
LBB0_22:
	ldr	w8, [x19, #32]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_DBG_STATUS_OK,4,2              ; @DBG_STATUS_OK
	.comm	_CHIP_K2,8,3                    ; @CHIP_K2
	.comm	_MODE_K2,8,3                    ; @MODE_K2
	.comm	_MAX_NUM_VFS_K2,4,2             ; @MAX_NUM_VFS_K2
	.comm	_MAX_NUM_PFS_K2,4,2             ; @MAX_NUM_PFS_K2
	.comm	_CHIP_BB,8,3                    ; @CHIP_BB
	.comm	_MODE_BB,8,3                    ; @MODE_BB
	.comm	_MAX_NUM_VFS_BB,4,2             ; @MAX_NUM_VFS_BB
	.comm	_MAX_NUM_PFS_BB,4,2             ; @MAX_NUM_PFS_BB
	.comm	_DBG_STATUS_UNKNOWN_CHIP,4,2    ; @DBG_STATUS_UNKNOWN_CHIP
	.comm	_PLATFORM_ASIC,4,2              ; @PLATFORM_ASIC
	.comm	_MODE_ASIC,8,3                  ; @MODE_ASIC
	.comm	_MISC_REG_PORT_MODE,4,2         ; @MISC_REG_PORT_MODE
	.comm	_MODE_PORTS_PER_ENG_1,8,3       ; @MODE_PORTS_PER_ENG_1
	.comm	_MODE_PORTS_PER_ENG_2,8,3       ; @MODE_PORTS_PER_ENG_2
	.comm	_MODE_PORTS_PER_ENG_4,8,3       ; @MODE_PORTS_PER_ENG_4
	.comm	_CNIG_REG_NW_PORT_MODE_BB,4,2   ; @CNIG_REG_NW_PORT_MODE_BB
	.comm	_MODE_100G,8,3                  ; @MODE_100G
	.comm	_u32,4,2                        ; @u32
	.no_dead_strip	_qed_dbg_dev_init
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.qed_dbg_dev_init
l_switch.table.qed_dbg_dev_init:
	.quad	_MODE_PORTS_PER_ENG_1
	.quad	_MODE_PORTS_PER_ENG_2
	.quad	_MODE_PORTS_PER_ENG_4

.subsections_via_symbols
