	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_7322_get_ib_cfg
_qib_7322_get_ib_cfg:                   ## @qib_7322_get_ib_cfg
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$14, %esi
	ja	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movl	$16, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	movl	8(%rbx), %eax
	jmp	LBB0_23
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_23
LBB0_4:
	movl	12(%rbx), %eax
	jmp	LBB0_23
LBB0_5:
	movq	_IBCCtrlB_0@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_IB_POLARITY_REV_SUPP@GOTPCREL(%rip), %r12
	jmp	LBB0_13
LBB0_6:
	movl	12(%rbx), %ecx
	movq	_QIB_IB_QDR@GOTPCREL(%rip), %rdx
	movl	$3, %eax
	cmpl	(%rdx), %ecx
	je	LBB0_23
## %bb.7:
	movq	_QIB_IB_DDR@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	sete	%al
	jmp	LBB0_23
LBB0_8:
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	movq	_IBCCtrlA_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PhyerrThreshold@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	movq	_IBCCtrlA_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OverrunThreshold@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SYM_FIELD                      ## TAILCALL
LBB0_11:
	movl	(%rbx), %eax
	jmp	LBB0_23
LBB0_12:
	movq	_IBCCtrlB_0@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_IB_LANE_REV_SUPPORTED@GOTPCREL(%rip), %r12
LBB0_13:
	movl	(%r12), %esi
	callq	_SYM_LSB
	movl	%eax, %r14d
	movl	(%r15), %edi
	movl	(%r12), %esi
	callq	_SYM_RMASK
	movl	%eax, %edx
	jmp	LBB0_16
LBB0_14:
	movq	_krp_ibcstatus_b@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qib_read_kreg_port
	movl	%eax, %ebx
	movq	_IBCStatusB_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LinkRoundTripLatency@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_MASK
	andl	%ebx, %eax
	jmp	LBB0_23
LBB0_15:
	movq	_IBA7322_IBC_HRTBT_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_IBA7322_IBC_HRTBT_RMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_16:
	movq	24(%rbx), %rax
	movl	4(%rax), %eax
	movl	%r14d, %ecx
	sarl	%cl, %eax
	andl	%edx, %eax
	jmp	LBB0_23
LBB0_17:
	movl	16(%rbx), %eax
	jmp	LBB0_23
LBB0_18:
	movl	4(%rbx), %eax
	jmp	LBB0_23
LBB0_19:
	movq	24(%rbx), %rax
	movl	(%rax), %ebx
	movq	_IBCCtrlA_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LinkDownDefaultState@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_MASK
	testl	%ebx, %eax
	jne	LBB0_21
## %bb.20:
	movq	_IB_LINKINITCMD_POLL@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_21:
	movq	_IB_LINKINITCMD_SLEEP@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %eax
LBB0_23:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_17
	.long	L0_0_set_11
	.long	L0_0_set_18
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_19
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_IBCCtrlB_0,4,2                 ## @IBCCtrlB_0
	.comm	_IB_POLARITY_REV_SUPP,4,2       ## @IB_POLARITY_REV_SUPP
	.comm	_IB_LANE_REV_SUPPORTED,4,2      ## @IB_LANE_REV_SUPPORTED
	.comm	_krp_ibcstatus_b,4,2            ## @krp_ibcstatus_b
	.comm	_IBCStatusB_0,4,2               ## @IBCStatusB_0
	.comm	_LinkRoundTripLatency,4,2       ## @LinkRoundTripLatency
	.comm	_IBCCtrlA_0,4,2                 ## @IBCCtrlA_0
	.comm	_OverrunThreshold,4,2           ## @OverrunThreshold
	.comm	_PhyerrThreshold,4,2            ## @PhyerrThreshold
	.comm	_LinkDownDefaultState,4,2       ## @LinkDownDefaultState
	.comm	_IB_LINKINITCMD_SLEEP,4,2       ## @IB_LINKINITCMD_SLEEP
	.comm	_IB_LINKINITCMD_POLL,4,2        ## @IB_LINKINITCMD_POLL
	.comm	_IBA7322_IBC_HRTBT_LSB,4,2      ## @IBA7322_IBC_HRTBT_LSB
	.comm	_IBA7322_IBC_HRTBT_RMASK,4,2    ## @IBA7322_IBC_HRTBT_RMASK
	.comm	_QIB_IB_QDR,4,2                 ## @QIB_IB_QDR
	.comm	_QIB_IB_DDR,4,2                 ## @QIB_IB_DDR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qib_7322_get_ib_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_7322_get_ib_cfg
_qib_7322_get_ib_cfg:                   ; @qib_7322_get_ib_cfg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	w8, w1, #128
	cmp	w8, #14
	b.hi	LBB0_8
; %bb.1:
	mov	x19, x0
	mov	w0, #16
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w0, [x19, #8]
	b	LBB0_21
LBB0_3:
	ldr	w8, [x19, #12]
Lloh2:
	adrp	x9, _QIB_IB_QDR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _QIB_IB_QDR@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_20
; %bb.4:
	mov	w0, #3
	b	LBB0_21
LBB0_5:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _IBCCtrlA_0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IBCCtrlA_0@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _PhyerrThreshold@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PhyerrThreshold@GOTPAGEOFF]
	b	LBB0_14
LBB0_6:
Lloh10:
	adrp	x21, _IBCCtrlB_0@GOTPAGE
Lloh11:
	ldr	x21, [x21, _IBCCtrlB_0@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh12:
	adrp	x22, _IB_LANE_REV_SUPPORTED@GOTPAGE
Lloh13:
	ldr	x22, [x22, _IB_LANE_REV_SUPPORTED@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh14:
	adrp	x8, _IBA7322_IBC_HRTBT_LSB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IBA7322_IBC_HRTBT_LSB@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
Lloh17:
	adrp	x8, _IBA7322_IBC_HRTBT_RMASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IBA7322_IBC_HRTBT_RMASK@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_8:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_9:
	ldr	w0, [x19, #12]
	b	LBB0_21
LBB0_10:
Lloh23:
	adrp	x21, _IBCCtrlB_0@GOTPAGE
Lloh24:
	ldr	x21, [x21, _IBCCtrlB_0@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh25:
	adrp	x22, _IB_POLARITY_REV_SUPP@GOTPAGE
Lloh26:
	ldr	x22, [x22, _IB_POLARITY_REV_SUPP@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x22]
	bl	_SYM_LSB
	mov	x20, x0
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_SYM_RMASK
LBB0_12:
	ldr	x8, [x19, #24]
	ldr	w8, [x8, #4]
	asr	w8, w8, w20
	and	w0, w8, w0
	b	LBB0_21
LBB0_13:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _IBCCtrlA_0@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IBCCtrlA_0@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _OverrunThreshold@GOTPAGE
Lloh31:
	ldr	x8, [x8, _OverrunThreshold@GOTPAGEOFF]
LBB0_14:
	ldr	w2, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_SYM_FIELD
LBB0_15:
	ldr	w0, [x19, #16]
	b	LBB0_21
LBB0_16:
	ldr	w0, [x19]
	b	LBB0_21
LBB0_17:
	ldr	w0, [x19, #4]
	b	LBB0_21
LBB0_18:
Lloh32:
	adrp	x8, _krp_ibcstatus_b@GOTPAGE
Lloh33:
	ldr	x8, [x8, _krp_ibcstatus_b@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qib_read_kreg_port
	mov	x19, x0
Lloh35:
	adrp	x8, _IBCStatusB_0@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IBCStatusB_0@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x8, _LinkRoundTripLatency@GOTPAGE
Lloh39:
	ldr	x8, [x8, _LinkRoundTripLatency@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	bl	_SYM_MASK
	and	w0, w0, w19
	b	LBB0_21
LBB0_19:
	ldr	x8, [x19, #24]
	ldr	w19, [x8]
Lloh41:
	adrp	x8, _IBCCtrlA_0@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IBCCtrlA_0@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
Lloh44:
	adrp	x8, _LinkDownDefaultState@GOTPAGE
Lloh45:
	ldr	x8, [x8, _LinkDownDefaultState@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	bl	_SYM_MASK
Lloh47:
	adrp	x8, _IB_LINKINITCMD_SLEEP@GOTPAGE
Lloh48:
	ldr	x8, [x8, _IB_LINKINITCMD_SLEEP@GOTPAGEOFF]
Lloh49:
	adrp	x9, _IB_LINKINITCMD_POLL@GOTPAGE
Lloh50:
	ldr	x9, [x9, _IB_LINKINITCMD_POLL@GOTPAGEOFF]
	tst	w0, w19
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	b	LBB0_21
LBB0_20:
Lloh51:
	adrp	x9, _QIB_IB_DDR@GOTPAGE
Lloh52:
	ldr	x9, [x9, _QIB_IB_DDR@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
LBB0_21:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_IBCCtrlB_0,4,2                 ; @IBCCtrlB_0
	.comm	_IB_POLARITY_REV_SUPP,4,2       ; @IB_POLARITY_REV_SUPP
	.comm	_IB_LANE_REV_SUPPORTED,4,2      ; @IB_LANE_REV_SUPPORTED
	.comm	_krp_ibcstatus_b,4,2            ; @krp_ibcstatus_b
	.comm	_IBCStatusB_0,4,2               ; @IBCStatusB_0
	.comm	_LinkRoundTripLatency,4,2       ; @LinkRoundTripLatency
	.comm	_IBCCtrlA_0,4,2                 ; @IBCCtrlA_0
	.comm	_OverrunThreshold,4,2           ; @OverrunThreshold
	.comm	_PhyerrThreshold,4,2            ; @PhyerrThreshold
	.comm	_LinkDownDefaultState,4,2       ; @LinkDownDefaultState
	.comm	_IB_LINKINITCMD_SLEEP,4,2       ; @IB_LINKINITCMD_SLEEP
	.comm	_IB_LINKINITCMD_POLL,4,2        ; @IB_LINKINITCMD_POLL
	.comm	_IBA7322_IBC_HRTBT_LSB,4,2      ; @IBA7322_IBC_HRTBT_LSB
	.comm	_IBA7322_IBC_HRTBT_RMASK,4,2    ; @IBA7322_IBC_HRTBT_RMASK
	.comm	_QIB_IB_QDR,4,2                 ; @QIB_IB_QDR
	.comm	_QIB_IB_DDR,4,2                 ; @QIB_IB_DDR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qib_7322_get_ib_cfg
.subsections_via_symbols
