	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_txdds_table
_init_txdds_table:                      ## @init_txdds_table
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	-64(%rbp), %r12
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r12, %rsi
	movl	%ebx, %r8d
	callq	_find_best_ent
	movq	16(%r14), %rax
	movq	_QIB_HAS_QSFP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	sete	%r15b
	testl	%ebx, %ebx
	setne	%r13b
	movq	-64(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_set_txdds
	movq	_TXDDS_TABLE_SZ@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_set_txdds
	movl	(%rbx), %esi
	addl	%esi, %esi
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_set_txdds
	movq	_QIBL_LINKINIT@GOTPCREL(%rip), %rax
	movq	_QIBL_LINKARMED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_QIBL_LINKACTIVE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%ecx, (%r14)
	je	LBB0_5
## %bb.1:
	movq	8(%r14), %rax
	movq	_QIB_IB_QDR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rsi
	jmp	LBB0_4
LBB0_3:
	movq	_QIB_IB_DDR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	-56(%rbp), %rax
	cmoveq	%rax, %r12
	movq	(%r12), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_write_tx_serdes_param
LBB0_5:
	movq	_txdds_sdr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpl	$2, %eax
	jl	LBB0_17
## %bb.6:
	orb	%r15b, %r13b
	movl	$1, %ebx
	movl	$4, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rdx
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	leal	(%rbx,%rax,2), %esi
	movq	%r14, %rdi
	callq	_set_txdds
	incq	%rbx
	movq	_txdds_sdr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r15
	cmpq	%rax, %rbx
	jge	LBB0_17
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testb	%r13b, %r13b
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rdx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_txdds_sdr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%r15, %rdx
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_set_txdds
	testb	%r13b, %r13b
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rdx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_txdds_ddr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%r15, %rdx
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_TXDDS_TABLE_SZ@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	addl	%ebx, %esi
	movq	%r14, %rdi
	callq	_set_txdds
	movl	(%r12), %eax
	testb	%r13b, %r13b
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_txdds_qdr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	%r15, %rdx
	jmp	LBB0_16
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QIB_HAS_QSFP,4,2               ## @QIB_HAS_QSFP
	.comm	_TXDDS_TABLE_SZ,4,2             ## @TXDDS_TABLE_SZ
	.comm	_QIBL_LINKINIT,4,2              ## @QIBL_LINKINIT
	.comm	_QIBL_LINKARMED,4,2             ## @QIBL_LINKARMED
	.comm	_QIBL_LINKACTIVE,4,2            ## @QIBL_LINKACTIVE
	.comm	_QIB_IB_QDR,8,3                 ## @QIB_IB_QDR
	.comm	_QIB_IB_DDR,8,3                 ## @QIB_IB_DDR
	.comm	_txdds_sdr,8,3                  ## @txdds_sdr
	.comm	_txdds_ddr,8,3                  ## @txdds_ddr
	.comm	_txdds_qdr,8,3                  ## @txdds_qdr
	.no_dead_strip	_init_txdds_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_txdds_table
_init_txdds_table:                      ; @init_txdds_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x4, x20
	bl	_find_best_ent
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _QIB_HAS_QSFP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QIB_HAS_QSFP@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	ccmp	w20, #0, #0, ne
	cset	w21, ne
	ldr	x2, [sp, #24]
	mov	x0, x19
	mov	w1, #0
	bl	_set_txdds
Lloh3:
	adrp	x22, _TXDDS_TABLE_SZ@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TXDDS_TABLE_SZ@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	x2, [sp, #16]
	mov	x0, x19
	bl	_set_txdds
	ldr	w8, [x22]
	lsl	w1, w8, #1
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_set_txdds
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _QIBL_LINKINIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QIBL_LINKINIT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _QIBL_LINKARMED@GOTPAGE
Lloh9:
	ldr	x10, [x10, _QIBL_LINKARMED@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh11:
	adrp	x10, _QIBL_LINKACTIVE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _QIBL_LINKACTIVE@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _QIB_IB_QDR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _QIB_IB_QDR@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x1, [sp, #8]
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x9, _QIB_IB_DDR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _QIB_IB_DDR@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x10, sp, #24
	add	x11, sp, #16
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	x1, [x8]
LBB0_4:
	mov	x0, x19
	bl	_write_tx_serdes_param
LBB0_5:
Lloh20:
	adrp	x23, _txdds_sdr@GOTPAGE
Lloh21:
	ldr	x23, [x23, _txdds_sdr@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #2
	b.lt	LBB0_8
; %bb.6:
	mov	w20, #1
	mov	w24, #4
Lloh22:
	adrp	x25, _txdds_ddr@GOTPAGE
Lloh23:
	ldr	x25, [x25, _txdds_ddr@GOTPAGEOFF]
Lloh24:
	adrp	x26, _txdds_qdr@GOTPAGE
Lloh25:
	ldr	x26, [x26, _txdds_qdr@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	ldr	x9, [x23]
	add	x9, x9, x24
	cmp	w21, #0
	csel	x2, x8, x9, ne
	mov	x0, x19
	mov	x1, x20
	bl	_set_txdds
	cmp	w21, #0
	ldr	w8, [x22]
	add	w1, w20, w8
	ldr	x8, [sp, #16]
	ldr	x9, [x25]
	add	x9, x9, x24
	csel	x2, x8, x9, ne
	mov	x0, x19
	bl	_set_txdds
	cmp	w21, #0
	ldr	w8, [x22]
	add	w1, w20, w8, lsl #1
	ldr	x8, [sp, #8]
	ldr	x9, [x26]
	add	x9, x9, x24
	csel	x2, x8, x9, ne
	mov	x0, x19
	bl	_set_txdds
	add	x20, x20, #1
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	add	x24, x24, #4
	cmp	x20, w0, sxtw
	b.lt	LBB0_7
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_QIB_HAS_QSFP,4,2               ; @QIB_HAS_QSFP
	.comm	_TXDDS_TABLE_SZ,4,2             ; @TXDDS_TABLE_SZ
	.comm	_QIBL_LINKINIT,4,2              ; @QIBL_LINKINIT
	.comm	_QIBL_LINKARMED,4,2             ; @QIBL_LINKARMED
	.comm	_QIBL_LINKACTIVE,4,2            ; @QIBL_LINKACTIVE
	.comm	_QIB_IB_QDR,8,3                 ; @QIB_IB_QDR
	.comm	_QIB_IB_DDR,8,3                 ; @QIB_IB_DDR
	.comm	_txdds_sdr,8,3                  ; @txdds_sdr
	.comm	_txdds_ddr,8,3                  ; @txdds_ddr
	.comm	_txdds_qdr,8,3                  ; @txdds_qdr
	.no_dead_strip	_init_txdds_table
.subsections_via_symbols
