	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adap_init0
_adap_init0:                            ## @adap_init0
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_t4vf_fw_reset
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	callq	_t4vf_get_dev_params
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	movq	%r14, %rdi
	callq	_t4vf_get_vpd_params
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_7:
	movq	%r14, %rdi
	callq	_t4vf_get_sge_params
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_9:
	movq	%r14, %rdi
	callq	_t4vf_get_rss_glb_config
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_2:
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_24:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movl	24(%r14), %edx
	movq	_FW_RSS_GLB_CONFIG_CMD_MODE_BASICVIRTUAL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_12
## %bb.13:
	movq	%r14, %rdi
	callq	_t4vf_sge_init
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_2
LBB0_12:
	movl	4(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_15:
	movq	_FW_PARAMS_MNEM_PFVF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_PARAMS_MNEM_V
	movl	%eax, %ebx
	movq	_FW_PARAMS_PARAM_PFVF_CPLFW4MSG_ENCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_PARAMS_PARAM_X_V
	orl	%ebx, %eax
	movl	%eax, -24(%rbp)
	movl	$1, -20(%rbp)
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_t4vf_set_params
	movl	40(%r14), %edi
	callq	_TIMERVALUE0_G
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_core_ticks_to_us
	movq	56(%r14), %rcx
	movq	%rax, (%rcx)
	movl	40(%r14), %edi
	callq	_TIMERVALUE1_G
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_core_ticks_to_us
	movq	56(%r14), %rcx
	movq	%rax, 8(%rcx)
	movl	36(%r14), %edi
	callq	_TIMERVALUE0_G
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_core_ticks_to_us
	movq	56(%r14), %rcx
	movq	%rax, 16(%rcx)
	movl	36(%r14), %edi
	callq	_TIMERVALUE1_G
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_core_ticks_to_us
	movq	56(%r14), %rcx
	movq	%rax, 24(%rcx)
	movl	32(%r14), %edi
	callq	_TIMERVALUE0_G
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_core_ticks_to_us
	movq	56(%r14), %rcx
	movq	%rax, 32(%rcx)
	movl	32(%r14), %edi
	callq	_TIMERVALUE1_G
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_core_ticks_to_us
	movq	56(%r14), %rcx
	movq	%rax, 40(%rcx)
	movl	28(%r14), %edi
	callq	_THRESHOLD_0_G
	movq	48(%r14), %rcx
	movl	%eax, (%rcx)
	movl	28(%r14), %edi
	callq	_THRESHOLD_1_G
	movq	48(%r14), %rcx
	movl	%eax, 4(%rcx)
	movl	28(%r14), %edi
	callq	_THRESHOLD_2_G
	movq	48(%r14), %rcx
	movl	%eax, 8(%rcx)
	movl	28(%r14), %edi
	callq	_THRESHOLD_3_G
	movq	48(%r14), %rcx
	movl	%eax, 12(%rcx)
	movq	%r14, %rdi
	callq	_t4vf_get_vfres
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	movl	4(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_2
LBB0_17:
	cmpq	$0, 8(%r14)
	je	LBB0_18
## %bb.21:
	cmpq	$0, 16(%r14)
	je	LBB0_22
## %bb.23:
	movq	%r14, %rdi
	callq	_size_nports_qsets
	movq	_CXGB4VF_FW_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_18:
	movl	4(%r14), %edi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_19
LBB0_22:
	movl	4(%r14), %edi
	leaq	L_.str.9(%rip), %rsi
LBB0_19:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FW reset failed: err=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"unable to retrieve adapter device parameters: err=%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"unable to retrieve adapter VPD parameters: err=%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"unable to retrieve adapter SGE parameters: err=%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"unable to retrieve adapter RSS parameters: err=%d\n"

	.comm	_FW_RSS_GLB_CONFIG_CMD_MODE_BASICVIRTUAL,4,2 ## @FW_RSS_GLB_CONFIG_CMD_MODE_BASICVIRTUAL
L_.str.5:                               ## @.str.5
	.asciz	"unable to operate with global RSS mode %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.6:                               ## @.str.6
	.asciz	"unable to use adapter parameters: err=%d\n"

	.comm	_FW_PARAMS_MNEM_PFVF,4,2        ## @FW_PARAMS_MNEM_PFVF
	.comm	_FW_PARAMS_PARAM_PFVF_CPLFW4MSG_ENCAP,4,2 ## @FW_PARAMS_PARAM_PFVF_CPLFW4MSG_ENCAP
L_.str.7:                               ## @.str.7
	.asciz	"unable to get virtual interface resources: err=%d\n"

L_.str.8:                               ## @.str.8
	.asciz	"no port access configured\nusable!\n"

L_.str.9:                               ## @.str.9
	.asciz	"no virtual interfaces configured/usable!\n"

	.comm	_CXGB4VF_FW_OK,4,2              ## @CXGB4VF_FW_OK
	.no_dead_strip	_adap_init0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adap_init0
_adap_init0:                            ; @adap_init0
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_t4vf_fw_reset
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_t4vf_get_dev_params
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	w0, [x19, #4]
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_3:
	mov	x20, x0
	ldr	w0, [x19, #4]
	str	x20, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_11
LBB0_4:
	mov	x0, x19
	bl	_t4vf_get_vpd_params
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
	ldr	w0, [x19, #4]
	str	x20, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_6:
	mov	x0, x19
	bl	_t4vf_get_sge_params
	cbz	w0, LBB0_8
; %bb.7:
	mov	x20, x0
	ldr	w0, [x19, #4]
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_t4vf_get_rss_glb_config
	cbz	w0, LBB0_12
; %bb.9:
	mov	x20, x0
	ldr	w0, [x19, #4]
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_10:
	bl	_dev_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_12:
	ldr	w8, [x19, #24]
Lloh10:
	adrp	x9, _FW_RSS_GLB_CONFIG_CMD_MODE_BASICVIRTUAL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FW_RSS_GLB_CONFIG_CMD_MODE_BASICVIRTUAL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.13:
	mov	x0, x19
	bl	_t4vf_sge_init
	cbz	w0, LBB0_17
; %bb.14:
	mov	x20, x0
	ldr	w0, [x19, #4]
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str.6@PAGE
Lloh14:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_10
LBB0_15:
	ldr	w0, [x19, #4]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_16:
	bl	_dev_err
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_17:
Lloh20:
	adrp	x8, _FW_PARAMS_MNEM_PFVF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FW_PARAMS_MNEM_PFVF@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_FW_PARAMS_MNEM_V
	mov	x20, x0
Lloh23:
	adrp	x8, _FW_PARAMS_PARAM_PFVF_CPLFW4MSG_ENCAP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FW_PARAMS_PARAM_PFVF_CPLFW4MSG_ENCAP@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_FW_PARAMS_PARAM_X_V
	orr	w8, w0, w20
	str	w8, [sp, #12]
	mov	w8, #1
	str	w8, [sp, #8]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #1
	bl	_t4vf_set_params
	ldr	w0, [x19, #40]
	bl	_TIMERVALUE0_G
	mov	x1, x0
	mov	x0, x19
	bl	_core_ticks_to_us
	ldr	x8, [x19, #56]
	str	x0, [x8]
	ldr	w0, [x19, #40]
	bl	_TIMERVALUE1_G
	mov	x1, x0
	mov	x0, x19
	bl	_core_ticks_to_us
	ldr	x8, [x19, #56]
	str	x0, [x8, #8]
	ldr	w0, [x19, #36]
	bl	_TIMERVALUE0_G
	mov	x1, x0
	mov	x0, x19
	bl	_core_ticks_to_us
	ldr	x8, [x19, #56]
	str	x0, [x8, #16]
	ldr	w0, [x19, #36]
	bl	_TIMERVALUE1_G
	mov	x1, x0
	mov	x0, x19
	bl	_core_ticks_to_us
	ldr	x8, [x19, #56]
	str	x0, [x8, #24]
	ldr	w0, [x19, #32]
	bl	_TIMERVALUE0_G
	mov	x1, x0
	mov	x0, x19
	bl	_core_ticks_to_us
	ldr	x8, [x19, #56]
	str	x0, [x8, #32]
	ldr	w0, [x19, #32]
	bl	_TIMERVALUE1_G
	mov	x1, x0
	mov	x0, x19
	bl	_core_ticks_to_us
	ldr	x8, [x19, #56]
	str	x0, [x8, #40]
	ldr	w0, [x19, #28]
	bl	_THRESHOLD_0_G
	ldr	x8, [x19, #48]
	str	w0, [x8]
	ldr	w0, [x19, #28]
	bl	_THRESHOLD_1_G
	ldr	x8, [x19, #48]
	str	w0, [x8, #4]
	ldr	w0, [x19, #28]
	bl	_THRESHOLD_2_G
	ldr	x8, [x19, #48]
	str	w0, [x8, #8]
	ldr	w0, [x19, #28]
	bl	_THRESHOLD_3_G
	ldr	x8, [x19, #48]
	str	w0, [x8, #12]
	mov	x0, x19
	bl	_t4vf_get_vfres
	cbz	w0, LBB0_19
; %bb.18:
	mov	x20, x0
	ldr	w0, [x19, #4]
	str	x20, [sp]
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_10
LBB0_19:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_22
; %bb.20:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_23
; %bb.21:
	mov	x0, x19
	bl	_size_nports_qsets
	mov	w20, #0
Lloh28:
	adrp	x8, _CXGB4VF_FW_OK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CXGB4VF_FW_OK@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_11
LBB0_22:
	ldr	w0, [x19, #4]
Lloh31:
	adrp	x1, l_.str.8@PAGE
Lloh32:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_16
LBB0_23:
	ldr	w0, [x19, #4]
Lloh33:
	adrp	x1, l_.str.9@PAGE
Lloh34:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FW reset failed: err=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"unable to retrieve adapter device parameters: err=%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"unable to retrieve adapter VPD parameters: err=%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"unable to retrieve adapter SGE parameters: err=%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"unable to retrieve adapter RSS parameters: err=%d\n"

	.comm	_FW_RSS_GLB_CONFIG_CMD_MODE_BASICVIRTUAL,4,2 ; @FW_RSS_GLB_CONFIG_CMD_MODE_BASICVIRTUAL
l_.str.5:                               ; @.str.5
	.asciz	"unable to operate with global RSS mode %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.6:                               ; @.str.6
	.asciz	"unable to use adapter parameters: err=%d\n"

	.comm	_FW_PARAMS_MNEM_PFVF,4,2        ; @FW_PARAMS_MNEM_PFVF
	.comm	_FW_PARAMS_PARAM_PFVF_CPLFW4MSG_ENCAP,4,2 ; @FW_PARAMS_PARAM_PFVF_CPLFW4MSG_ENCAP
l_.str.7:                               ; @.str.7
	.asciz	"unable to get virtual interface resources: err=%d\n"

l_.str.8:                               ; @.str.8
	.asciz	"no port access configured\nusable!\n"

l_.str.9:                               ; @.str.9
	.asciz	"no virtual interfaces configured/usable!\n"

	.comm	_CXGB4VF_FW_OK,4,2              ; @CXGB4VF_FW_OK
	.no_dead_strip	_adap_init0
.subsections_via_symbols
