	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_7220_get_ib_cfg
_qib_7220_get_ib_cfg:                   ## @qib_7220_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$14, %esi
	ja	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	movq	_IBA7220_IBC_RXPOL_MASK@GOTPCREL(%rip), %r8
	movq	_IBA7220_IBC_RXPOL_SHIFT@GOTPCREL(%rip), %rcx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rsi,4), %rsi
	addq	%rdx, %rsi
	jmpq	*%rsi
LBB0_2:
	movl	8(%rdi), %eax
	jmp	LBB0_20
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_4:
	movl	12(%rdi), %eax
	jmp	LBB0_20
LBB0_5:
	movl	12(%rdi), %ecx
	movq	_QIB_IB_DDR@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	sete	%al
	jmp	LBB0_20
LBB0_6:
	movq	24(%rdi), %rax
	movl	(%rax), %edi
	movq	_IBCCtrl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PhyerrThreshold@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	24(%rdi), %rax
	movl	(%rax), %edi
	movq	_IBCCtrl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OverrunThreshold@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_SYM_FIELD                      ## TAILCALL
LBB0_9:
	movl	(%rdi), %eax
	jmp	LBB0_20
LBB0_10:
	movq	_IBA7220_IBC_LREV_MASK@GOTPCREL(%rip), %r8
	movq	_IBA7220_IBC_LREV_SHIFT@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_11:
	movl	32(%rdi), %edi
	movq	_kr_ibcddrstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_qib_read_kreg64
	movq	_IBA7220_DDRSTAT_LINKLAT_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jmp	LBB0_20
LBB0_12:
	movq	_IBA7220_IBC_HRTBT_MASK@GOTPCREL(%rip), %r8
	movq	_IBA7220_IBC_HRTBT_SHIFT@GOTPCREL(%rip), %rcx
LBB0_13:
	movb	(%rcx), %cl
	movq	24(%rdi), %rax
	movl	4(%rax), %eax
	sarl	%cl, %eax
	andl	(%r8), %eax
	jmp	LBB0_20
LBB0_14:
	movl	16(%rdi), %eax
	jmp	LBB0_20
LBB0_15:
	movl	4(%rdi), %eax
	jmp	LBB0_20
LBB0_16:
	movq	24(%rdi), %rax
	movl	(%rax), %ebx
	movq	_IBCCtrl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LinkDownDefaultState@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SYM_MASK
	testl	%ebx, %eax
	jne	LBB0_18
## %bb.17:
	movq	_IB_LINKINITCMD_POLL@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	movq	_IB_LINKINITCMD_SLEEP@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_20
	.long	L0_0_set_20
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_13
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_14
	.long	L0_0_set_9
	.long	L0_0_set_15
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_16
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_IBA7220_IBC_RXPOL_SHIFT,4,2    ## @IBA7220_IBC_RXPOL_SHIFT
	.comm	_IBA7220_IBC_RXPOL_MASK,4,2     ## @IBA7220_IBC_RXPOL_MASK
	.comm	_IBA7220_IBC_LREV_SHIFT,4,2     ## @IBA7220_IBC_LREV_SHIFT
	.comm	_IBA7220_IBC_LREV_MASK,4,2      ## @IBA7220_IBC_LREV_MASK
	.comm	_kr_ibcddrstatus,4,2            ## @kr_ibcddrstatus
	.comm	_IBA7220_DDRSTAT_LINKLAT_MASK,4,2 ## @IBA7220_DDRSTAT_LINKLAT_MASK
	.comm	_IBCCtrl,4,2                    ## @IBCCtrl
	.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	_IBA7220_IBC_HRTBT_SHIFT,4,2    ## @IBA7220_IBC_HRTBT_SHIFT
	.comm	_IBA7220_IBC_HRTBT_MASK,4,2     ## @IBA7220_IBC_HRTBT_MASK
	.comm	_QIB_IB_DDR,4,2                 ## @QIB_IB_DDR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qib_7220_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_7220_get_ib_cfg
_qib_7220_get_ib_cfg:                   ; @qib_7220_get_ib_cfg
	.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
	sub	w11, w1, #128
	cmp	w11, #14
	b.hi	LBB0_3
; %bb.1:
	mov	x8, x0
	mov	w0, #0
Lloh0:
	adrp	x9, _IBA7220_IBC_RXPOL_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IBA7220_IBC_RXPOL_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x10, _IBA7220_IBC_RXPOL_SHIFT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IBA7220_IBC_RXPOL_SHIFT@GOTPAGEOFF]
Lloh4:
	adrp	x12, lJTI0_0@PAGE
Lloh5:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_2
	ldrb	w14, [x12, x11]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_2:
	ldr	w0, [x8, #8]
	b	LBB0_17
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_4:
	ldr	w0, [x8, #12]
	b	LBB0_17
LBB0_5:
	ldr	w8, [x8, #12]
Lloh9:
	adrp	x9, _QIB_IB_DDR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _QIB_IB_DDR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
	b	LBB0_17
LBB0_6:
	ldr	x8, [x8, #24]
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _IBCCtrl@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IBCCtrl@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _PhyerrThreshold@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PhyerrThreshold@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	x8, [x8, #24]
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _IBCCtrl@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IBCCtrl@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _OverrunThreshold@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OverrunThreshold@GOTPAGEOFF]
LBB0_8:
	ldr	w2, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SYM_FIELD
LBB0_9:
	ldr	w0, [x8, #16]
	b	LBB0_17
LBB0_10:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_11:
	ldr	w0, [x8, #4]
	b	LBB0_17
LBB0_12:
Lloh22:
	adrp	x9, _IBA7220_IBC_LREV_MASK@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IBA7220_IBC_LREV_MASK@GOTPAGEOFF]
Lloh24:
	adrp	x10, _IBA7220_IBC_LREV_SHIFT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _IBA7220_IBC_LREV_SHIFT@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
	ldr	w0, [x8, #32]
Lloh26:
	adrp	x8, _kr_ibcddrstatus@GOTPAGE
Lloh27:
	ldr	x8, [x8, _kr_ibcddrstatus@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_qib_read_kreg64
Lloh29:
	adrp	x8, _IBA7220_DDRSTAT_LINKLAT_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IBA7220_DDRSTAT_LINKLAT_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	and	w0, w8, w0
	b	LBB0_17
LBB0_14:
	ldr	x8, [x8, #24]
	ldr	w19, [x8]
Lloh32:
	adrp	x8, _IBCCtrl@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IBCCtrl@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x8, _LinkDownDefaultState@GOTPAGE
Lloh36:
	ldr	x8, [x8, _LinkDownDefaultState@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	bl	_SYM_MASK
Lloh38:
	adrp	x8, _IB_LINKINITCMD_SLEEP@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IB_LINKINITCMD_SLEEP@GOTPAGEOFF]
Lloh40:
	adrp	x9, _IB_LINKINITCMD_POLL@GOTPAGE
Lloh41:
	ldr	x9, [x9, _IB_LINKINITCMD_POLL@GOTPAGEOFF]
	tst	w0, w19
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	b	LBB0_17
LBB0_15:
Lloh42:
	adrp	x9, _IBA7220_IBC_HRTBT_MASK@GOTPAGE
Lloh43:
	ldr	x9, [x9, _IBA7220_IBC_HRTBT_MASK@GOTPAGEOFF]
Lloh44:
	adrp	x10, _IBA7220_IBC_HRTBT_SHIFT@GOTPAGE
Lloh45:
	ldr	x10, [x10, _IBA7220_IBC_HRTBT_SHIFT@GOTPAGEOFF]
LBB0_16:
	ldr	w9, [x9]
	ldr	w10, [x10]
	ldr	x8, [x8, #24]
	ldr	w8, [x8, #4]
	asr	w8, w8, w10
	and	w0, w8, w9
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- End function
	.comm	_IBA7220_IBC_RXPOL_SHIFT,4,2    ; @IBA7220_IBC_RXPOL_SHIFT
	.comm	_IBA7220_IBC_RXPOL_MASK,4,2     ; @IBA7220_IBC_RXPOL_MASK
	.comm	_IBA7220_IBC_LREV_SHIFT,4,2     ; @IBA7220_IBC_LREV_SHIFT
	.comm	_IBA7220_IBC_LREV_MASK,4,2      ; @IBA7220_IBC_LREV_MASK
	.comm	_kr_ibcddrstatus,4,2            ; @kr_ibcddrstatus
	.comm	_IBA7220_DDRSTAT_LINKLAT_MASK,4,2 ; @IBA7220_DDRSTAT_LINKLAT_MASK
	.comm	_IBCCtrl,4,2                    ; @IBCCtrl
	.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	_IBA7220_IBC_HRTBT_SHIFT,4,2    ; @IBA7220_IBC_HRTBT_SHIFT
	.comm	_IBA7220_IBC_HRTBT_MASK,4,2     ; @IBA7220_IBC_HRTBT_MASK
	.comm	_QIB_IB_DDR,4,2                 ; @QIB_IB_DDR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qib_7220_get_ib_cfg
.subsections_via_symbols
