	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_configure_lan_hmc         ## -- Begin function i40e_configure_lan_hmc
	.p2align	4, 0x90
_i40e_configure_lan_hmc:                ## @i40e_configure_lan_hmc
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	movl	8(%rdi), %r14d
	movq	%rdi, -40(%rbp)
	movq	_I40E_HMC_LAN_FULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movq	$0, -48(%rbp)
	movq	(%rdi), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	8(%rcx,%rax,4), %eax
	movl	%eax, -56(%rbp)
	leal	-129(%r12), %eax
	cmpl	$2, %eax
	jae	LBB0_1
## %bb.3:
	movq	_I40E_SD_TYPE_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	$1, -64(%rbp)
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	_i40e_create_lan_hmc_object
	movl	%eax, %ebx
	cmpl	$129, %r12d
	jne	LBB0_5
## %bb.4:
	testl	%ebx, %ebx
	jne	LBB0_2
LBB0_5:
	testl	%ebx, %ebx
	jne	LBB0_7
	jmp	LBB0_6
LBB0_1:
	cmpl	$128, %r12d
	jne	LBB0_8
LBB0_2:
	movq	_I40E_SD_TYPE_PAGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	$1, -64(%rbp)
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	_i40e_create_lan_hmc_object
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	movq	(%r15), %r12
	movq	_I40E_HMC_LAN_TX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	%r14d, %edi
	callq	_I40E_GLHMC_LANTXBASE
	leaq	(%rbx,%rbx,2), %rbx
	movq	_I40E_GLHMC_LANTXBASE_FPMLANTXBASE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r12,%rbx,4), %ecx
	leal	511(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$9, %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_wr32
	movl	%r14d, %edi
	callq	_I40E_GLHMC_LANTXCNT
	movl	4(%r12,%rbx,4), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_wr32
	movq	(%r15), %r12
	movq	_I40E_HMC_LAN_RX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	%r14d, %edi
	callq	_I40E_GLHMC_LANRXBASE
	leaq	(%rbx,%rbx,2), %rbx
	movq	_I40E_GLHMC_LANRXBASE_FPMLANRXBASE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r12,%rbx,4), %ecx
	leal	511(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$9, %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_wr32
	movl	%r14d, %edi
	callq	_I40E_GLHMC_LANRXCNT
	movl	4(%r12,%rbx,4), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_wr32
	movq	(%r15), %r12
	movq	_I40E_HMC_FCOE_CTX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	%r14d, %edi
	callq	_I40E_GLHMC_FCOEDDPBASE
	leaq	(%rbx,%rbx,2), %rbx
	movq	_I40E_GLHMC_FCOEDDPBASE_FPMFCOEDDPBASE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r12,%rbx,4), %ecx
	leal	511(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$9, %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_wr32
	movl	%r14d, %edi
	callq	_I40E_GLHMC_FCOEDDPCNT
	movl	4(%r12,%rbx,4), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_wr32
	movq	(%r15), %r12
	movq	_I40E_HMC_FCOE_FILT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	%r14d, %edi
	callq	_I40E_GLHMC_FCOEFBASE
	leaq	(%rbx,%rbx,2), %rbx
	movq	_I40E_GLHMC_FCOEFBASE_FPMFCOEFBASE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r12,%rbx,4), %ecx
	leal	511(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$9, %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_wr32
	movl	%r14d, %edi
	callq	_I40E_GLHMC_FCOEFCNT
	movl	4(%r12,%rbx,4), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_wr32
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_8:
	movq	_I40E_ERR_INVALID_SD_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_hw_dbg
LBB0_7:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_HMC_LAN_FULL,8,3          ## @I40E_HMC_LAN_FULL
	.comm	_I40E_SD_TYPE_DIRECT,4,2        ## @I40E_SD_TYPE_DIRECT
	.comm	_I40E_SD_TYPE_PAGED,4,2         ## @I40E_SD_TYPE_PAGED
	.comm	_I40E_ERR_INVALID_SD_TYPE,4,2   ## @I40E_ERR_INVALID_SD_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i40e_configure_lan_hmc: Unknown SD type: %d\n"

	.comm	_I40E_HMC_LAN_TX,8,3            ## @I40E_HMC_LAN_TX
	.comm	_I40E_GLHMC_LANTXBASE_FPMLANTXBASE_MASK,4,2 ## @I40E_GLHMC_LANTXBASE_FPMLANTXBASE_MASK
	.comm	_I40E_HMC_LAN_RX,8,3            ## @I40E_HMC_LAN_RX
	.comm	_I40E_GLHMC_LANRXBASE_FPMLANRXBASE_MASK,4,2 ## @I40E_GLHMC_LANRXBASE_FPMLANRXBASE_MASK
	.comm	_I40E_HMC_FCOE_CTX,8,3          ## @I40E_HMC_FCOE_CTX
	.comm	_I40E_GLHMC_FCOEDDPBASE_FPMFCOEDDPBASE_MASK,4,2 ## @I40E_GLHMC_FCOEDDPBASE_FPMFCOEDDPBASE_MASK
	.comm	_I40E_HMC_FCOE_FILT,8,3         ## @I40E_HMC_FCOE_FILT
	.comm	_I40E_GLHMC_FCOEFBASE_FPMFCOEFBASE_MASK,4,2 ## @I40E_GLHMC_FCOEFBASE_FPMFCOEFBASE_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_configure_lan_hmc         ; -- Begin function i40e_configure_lan_hmc
	.p2align	2
_i40e_configure_lan_hmc:                ; @i40e_configure_lan_hmc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x21, x1
	mov	x19, x0
	ldr	w20, [x0, #8]
	str	x0, [sp, #40]
Lloh0:
	adrp	x8, _I40E_HMC_LAN_FULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_HMC_LAN_FULL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	str	xzr, [sp, #32]
	ldr	x9, [x0]
	mov	w10, #12
	madd	x8, x8, x10, x9
	ldr	w8, [x8, #8]
	str	w8, [sp, #24]
	sub	w8, w1, #129
	cmp	w8, #2
	b.hs	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _I40E_SD_TYPE_DIRECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_SD_TYPE_DIRECT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [sp, #16]
	add	x1, sp, #8
	mov	x0, x19
	bl	_i40e_create_lan_hmc_object
	mov	x22, x0
	cmp	w21, #129
	b.ne	LBB0_3
; %bb.2:
	cbnz	w22, LBB0_5
LBB0_3:
	cbnz	w22, LBB0_8
	b	LBB0_6
LBB0_4:
	cmp	w21, #128
	b.ne	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _I40E_SD_TYPE_PAGED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40E_SD_TYPE_PAGED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [sp, #16]
	add	x1, sp, #8
	mov	x0, x19
	bl	_i40e_create_lan_hmc_object
	mov	x22, x0
	cbnz	w0, LBB0_8
LBB0_6:
	ldr	x22, [x19]
Lloh9:
	adrp	x8, _I40E_HMC_LAN_TX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40E_HMC_LAN_TX@GOTPAGEOFF]
Lloh11:
	ldr	x23, [x8]
	mov	x0, x20
	bl	_I40E_GLHMC_LANTXBASE
	mov	x1, x0
	mov	w21, #12
	madd	x22, x23, x21, x22
Lloh12:
	adrp	x8, _I40E_GLHMC_LANTXBASE_FPMLANTXBASE_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I40E_GLHMC_LANTXBASE_FPMLANTXBASE_MASK@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh14:
	ldr	w8, [x8]
	ands	w8, w8, w9
	add	w9, w8, #511
	csel	w8, w9, w8, lt
	asr	w2, w8, #9
	mov	x0, x19
	bl	_wr32
	mov	x0, x20
	bl	_I40E_GLHMC_LANTXCNT
	mov	x1, x0
	ldr	w2, [x22, #4]
	mov	x0, x19
	bl	_wr32
	ldr	x22, [x19]
Lloh15:
	adrp	x8, _I40E_HMC_LAN_RX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I40E_HMC_LAN_RX@GOTPAGEOFF]
Lloh17:
	ldr	x23, [x8]
	mov	x0, x20
	bl	_I40E_GLHMC_LANRXBASE
	mov	x1, x0
	madd	x22, x23, x21, x22
Lloh18:
	adrp	x8, _I40E_GLHMC_LANRXBASE_FPMLANRXBASE_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I40E_GLHMC_LANRXBASE_FPMLANRXBASE_MASK@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh20:
	ldr	w8, [x8]
	ands	w8, w8, w9
	add	w9, w8, #511
	csel	w8, w9, w8, lt
	asr	w2, w8, #9
	mov	x0, x19
	bl	_wr32
	mov	x0, x20
	bl	_I40E_GLHMC_LANRXCNT
	mov	x1, x0
	ldr	w2, [x22, #4]
	mov	x0, x19
	bl	_wr32
	ldr	x22, [x19]
Lloh21:
	adrp	x8, _I40E_HMC_FCOE_CTX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I40E_HMC_FCOE_CTX@GOTPAGEOFF]
Lloh23:
	ldr	x23, [x8]
	mov	x0, x20
	bl	_I40E_GLHMC_FCOEDDPBASE
	mov	x1, x0
	madd	x22, x23, x21, x22
Lloh24:
	adrp	x8, _I40E_GLHMC_FCOEDDPBASE_FPMFCOEDDPBASE_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _I40E_GLHMC_FCOEDDPBASE_FPMFCOEDDPBASE_MASK@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh26:
	ldr	w8, [x8]
	ands	w8, w8, w9
	add	w9, w8, #511
	csel	w8, w9, w8, lt
	asr	w2, w8, #9
	mov	x0, x19
	bl	_wr32
	mov	x0, x20
	bl	_I40E_GLHMC_FCOEDDPCNT
	mov	x1, x0
	ldr	w2, [x22, #4]
	mov	x0, x19
	bl	_wr32
	ldr	x22, [x19]
Lloh27:
	adrp	x8, _I40E_HMC_FCOE_FILT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _I40E_HMC_FCOE_FILT@GOTPAGEOFF]
Lloh29:
	ldr	x23, [x8]
	mov	x0, x20
	bl	_I40E_GLHMC_FCOEFBASE
	mov	x1, x0
	madd	x21, x23, x21, x22
Lloh30:
	adrp	x8, _I40E_GLHMC_FCOEFBASE_FPMFCOEFBASE_MASK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _I40E_GLHMC_FCOEFBASE_FPMFCOEFBASE_MASK@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh32:
	ldr	w8, [x8]
	ands	w8, w8, w9
	add	w9, w8, #511
	csel	w8, w9, w8, lt
	asr	w2, w8, #9
	mov	x0, x19
	bl	_wr32
	mov	x0, x20
	bl	_I40E_GLHMC_FCOEFCNT
	mov	x1, x0
	ldr	w2, [x21, #4]
	mov	x0, x19
	bl	_wr32
	mov	w22, #0
	b	LBB0_8
LBB0_7:
Lloh33:
	adrp	x8, _I40E_ERR_INVALID_SD_TYPE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _I40E_ERR_INVALID_SD_TYPE@GOTPAGEOFF]
Lloh35:
	ldr	w22, [x8]
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_hw_dbg
LBB0_8:
	mov	x0, x22
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_HMC_LAN_FULL,8,3          ; @I40E_HMC_LAN_FULL
	.comm	_I40E_SD_TYPE_DIRECT,4,2        ; @I40E_SD_TYPE_DIRECT
	.comm	_I40E_SD_TYPE_PAGED,4,2         ; @I40E_SD_TYPE_PAGED
	.comm	_I40E_ERR_INVALID_SD_TYPE,4,2   ; @I40E_ERR_INVALID_SD_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i40e_configure_lan_hmc: Unknown SD type: %d\n"

	.comm	_I40E_HMC_LAN_TX,8,3            ; @I40E_HMC_LAN_TX
	.comm	_I40E_GLHMC_LANTXBASE_FPMLANTXBASE_MASK,4,2 ; @I40E_GLHMC_LANTXBASE_FPMLANTXBASE_MASK
	.comm	_I40E_HMC_LAN_RX,8,3            ; @I40E_HMC_LAN_RX
	.comm	_I40E_GLHMC_LANRXBASE_FPMLANRXBASE_MASK,4,2 ; @I40E_GLHMC_LANRXBASE_FPMLANRXBASE_MASK
	.comm	_I40E_HMC_FCOE_CTX,8,3          ; @I40E_HMC_FCOE_CTX
	.comm	_I40E_GLHMC_FCOEDDPBASE_FPMFCOEDDPBASE_MASK,4,2 ; @I40E_GLHMC_FCOEDDPBASE_FPMFCOEDDPBASE_MASK
	.comm	_I40E_HMC_FCOE_FILT,8,3         ; @I40E_HMC_FCOE_FILT
	.comm	_I40E_GLHMC_FCOEFBASE_FPMFCOEFBASE_MASK,4,2 ; @I40E_GLHMC_FCOEFBASE_FPMFCOEFBASE_MASK
.subsections_via_symbols
