	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_7322_setpbc_control
_qib_7322_setpbc_control:               ## @qib_7322_setpbc_control
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r8
	movq	_ib_rate_to_delay@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	incl	%esi
	sarl	%esi
	movl	%r8d, %r10d
	imull	%esi, %r10d
	xorl	%eax, %eax
	cmpq	%r8, (%r9,%rdx,8)
	cmoval	%r10d, %eax
	movq	%rcx, %rdx
	movq	_PBC_VL_NUM_LSB@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	%rdx, %rsi
	shlq	%cl, %rsi
	cmpq	$15, %rdx
	jne	LBB0_2
## %bb.1:
	movq	_PBC_7322_VL15_SEND_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_2:
	movl	8(%rdi), %edx
	movq	_PBC_PORT_SEL_LSB@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%edx, %eax
	orl	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_rate_to_delay,8,3           ## @ib_rate_to_delay
	.comm	_PBC_7322_VL15_SEND_CTRL,4,2    ## @PBC_7322_VL15_SEND_CTRL
	.comm	_PBC_VL_NUM_LSB,8,3             ## @PBC_VL_NUM_LSB
	.comm	_PBC_PORT_SEL_LSB,4,2           ## @PBC_PORT_SEL_LSB
	.no_dead_strip	_qib_7322_setpbc_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_7322_setpbc_control
_qib_7322_setpbc_control:               ; @qib_7322_setpbc_control
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ib_rate_to_delay@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ib_rate_to_delay@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x9, x2, lsl #3]
	add	w10, w1, #1
	asr	w10, w10, #1
	mul	w10, w10, w8
	cmp	x9, x8
	csel	w8, w10, wzr, hi
Lloh3:
	adrp	x9, _PBC_7322_VL15_SEND_CTRL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PBC_7322_VL15_SEND_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _PBC_VL_NUM_LSB@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PBC_VL_NUM_LSB@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	lsl	x10, x3, x10
	cmp	x3, #15
	csel	w9, w9, w10, eq
	orr	w8, w9, w8
	ldr	w9, [x0, #8]
Lloh9:
	adrp	x10, _PBC_PORT_SEL_LSB@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PBC_PORT_SEL_LSB@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_rate_to_delay,8,3           ; @ib_rate_to_delay
	.comm	_PBC_7322_VL15_SEND_CTRL,4,2    ; @PBC_7322_VL15_SEND_CTRL
	.comm	_PBC_VL_NUM_LSB,8,3             ; @PBC_VL_NUM_LSB
	.comm	_PBC_PORT_SEL_LSB,4,2           ; @PBC_PORT_SEL_LSB
	.no_dead_strip	_qib_7322_setpbc_control
.subsections_via_symbols
