	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_init_qm_port_params
_qed_init_qm_port_params:               ## @qed_init_qm_port_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movq	(%rax), %rsi
	movq	_MAX_NUM_PORTS_K2@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_1
## %bb.2:
	movq	_ACTIVE_TCS_BMAP_4PORT_K2@GOTPCREL(%rip), %rax
	testq	%rsi, %rsi
	jne	LBB0_4
	jmp	LBB0_12
LBB0_1:
	movq	_ACTIVE_TCS_BMAP@GOTPCREL(%rip), %rax
	testq	%rsi, %rsi
	je	LBB0_12
LBB0_4:
	movq	(%rax), %r10
	movq	(%rdi), %rdi
	addq	$24, %rdi
	movq	_PBF_MAX_CMD_LINES@GOTPCREL(%rip), %r8
	movq	_BTB_MAX_BLOCKS@GOTPCREL(%rip), %r9
	movq	%rsi, %rcx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	divq	%rsi
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, (%rdi)
	addq	$32, %rdi
	decq	%rcx
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, -24(%rdi)
	movq	%r10, -16(%rdi)
	movq	(%r8), %rax
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, -8(%rdi)
	movq	(%r9), %rax
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_11
LBB0_12:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NUM_PORTS_K2,8,3           ## @MAX_NUM_PORTS_K2
	.comm	_ACTIVE_TCS_BMAP_4PORT_K2,8,3   ## @ACTIVE_TCS_BMAP_4PORT_K2
	.comm	_ACTIVE_TCS_BMAP,8,3            ## @ACTIVE_TCS_BMAP
	.comm	_PBF_MAX_CMD_LINES,8,3          ## @PBF_MAX_CMD_LINES
	.comm	_BTB_MAX_BLOCKS,8,3             ## @BTB_MAX_BLOCKS
	.no_dead_strip	_qed_init_qm_port_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_init_qm_port_params
_qed_init_qm_port_params:               ; @qed_init_qm_port_params
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _MAX_NUM_PORTS_K2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_NUM_PORTS_K2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _ACTIVE_TCS_BMAP_4PORT_K2@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ACTIVE_TCS_BMAP_4PORT_K2@GOTPAGEOFF]
Lloh5:
	adrp	x11, _ACTIVE_TCS_BMAP@GOTPAGE
Lloh6:
	ldr	x11, [x11, _ACTIVE_TCS_BMAP@GOTPAGEOFF]
	cmp	x8, x9
	csel	x9, x10, x11, eq
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x9]
	ldr	x10, [x0]
	add	x10, x10, #16
	mov	w11, #1
Lloh7:
	adrp	x12, _PBF_MAX_CMD_LINES@GOTPAGE
Lloh8:
	ldr	x12, [x12, _PBF_MAX_CMD_LINES@GOTPAGEOFF]
Lloh9:
	adrp	x13, _BTB_MAX_BLOCKS@GOTPAGE
Lloh10:
	ldr	x13, [x13, _BTB_MAX_BLOCKS@GOTPAGEOFF]
	mov	x14, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	stur	w11, [x10, #-16]
	stur	x9, [x10, #-8]
	ldr	x15, [x12]
	udiv	x15, x15, x8
	str	x15, [x10]
	ldr	x15, [x13]
	udiv	x15, x15, x8
	str	x15, [x10, #8]
	add	x10, x10, #32
	subs	x14, x14, #1
	b.ne	LBB0_2
LBB0_3:
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NUM_PORTS_K2,8,3           ; @MAX_NUM_PORTS_K2
	.comm	_ACTIVE_TCS_BMAP_4PORT_K2,8,3   ; @ACTIVE_TCS_BMAP_4PORT_K2
	.comm	_ACTIVE_TCS_BMAP,8,3            ; @ACTIVE_TCS_BMAP
	.comm	_PBF_MAX_CMD_LINES,8,3          ; @PBF_MAX_CMD_LINES
	.comm	_BTB_MAX_BLOCKS,8,3             ; @BTB_MAX_BLOCKS
	.no_dead_strip	_qed_init_qm_port_params
.subsections_via_symbols
