	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_set_fw_drv_ver_generic   ## -- Begin function ixgbe_set_fw_drv_ver_generic
	.p2align	4, 0x90
_ixgbe_set_fw_drv_ver_generic:          ## @ixgbe_set_fw_drv_ver_generic
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_IXGBE_GSSR_SW_MNG_SM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	*(%rdi)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_IXGBE_ERR_SWFW_SYNC@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_12
LBB0_2:
	movq	_FW_CEM_CMD_DRIVER_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movq	_FW_CEM_CMD_DRIVER_INFO_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, -120(%rbp)
	movq	_FW_CEM_CMD_RESERVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	movq	16(%r14), %rax
	movq	%rax, -48(%rbp)
	movq	%rbx, -56(%rbp)
	movq	%r13, -64(%rbp)
	movq	%r12, -72(%rbp)
	movq	%r15, -80(%rbp)
	movq	$0, -112(%rbp)
	movq	_FW_CEM_HDR_LEN@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	leaq	-136(%rbp), %rdi
	callq	_ixgbe_calculate_checksum
	movq	%rax, -112(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -96(%rbp)
	movq	_FW_CEM_MAX_RETRIES@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	js	LBB0_3
## %bb.6:
	movl	$-1, %ebx
	leaq	-136(%rbp), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$96, %edx
	callq	_ixgbe_host_interface_command
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r13
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_7
## %bb.5:
	movq	_IXGBE_GSSR_SW_MNG_SM@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_3:
	xorl	%r13d, %r13d
	movq	_IXGBE_GSSR_SW_MNG_SM@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_8:
	movq	-136(%rbp), %rax
	movq	_FW_CEM_RESP_STATUS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_IXGBE_GSSR_SW_MNG_SM@GOTPCREL(%rip), %rcx
	je	LBB0_9
## %bb.10:
	movq	_IXGBE_ERR_HOST_INTERFACE_COMMAND@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_11
LBB0_9:
	xorl	%r13d, %r13d
LBB0_11:
	movl	(%rcx), %esi
	movq	%r14, %rdi
	callq	*8(%r14)
LBB0_12:
	movq	%r13, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_GSSR_SW_MNG_SM,4,2       ## @IXGBE_GSSR_SW_MNG_SM
	.comm	_IXGBE_ERR_SWFW_SYNC,8,3        ## @IXGBE_ERR_SWFW_SYNC
	.comm	_FW_CEM_CMD_DRIVER_INFO,4,2     ## @FW_CEM_CMD_DRIVER_INFO
	.comm	_FW_CEM_CMD_DRIVER_INFO_LEN,8,3 ## @FW_CEM_CMD_DRIVER_INFO_LEN
	.comm	_FW_CEM_CMD_RESERVED,4,2        ## @FW_CEM_CMD_RESERVED
	.comm	_FW_CEM_HDR_LEN,8,3             ## @FW_CEM_HDR_LEN
	.comm	_FW_CEM_MAX_RETRIES,4,2         ## @FW_CEM_MAX_RETRIES
	.comm	_FW_CEM_RESP_STATUS_SUCCESS,8,3 ## @FW_CEM_RESP_STATUS_SUCCESS
	.comm	_IXGBE_ERR_HOST_INTERFACE_COMMAND,8,3 ## @IXGBE_ERR_HOST_INTERFACE_COMMAND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_set_fw_drv_ver_generic   ; -- Begin function ixgbe_set_fw_drv_ver_generic
	.p2align	2
_ixgbe_set_fw_drv_ver_generic:          ; @ixgbe_set_fw_drv_ver_generic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x24, _IXGBE_GSSR_SW_MNG_SM@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IXGBE_GSSR_SW_MNG_SM@GOTPAGEOFF]
	ldr	w1, [x24]
	blr	x8
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGEOFF]
Lloh4:
	ldr	x20, [x8]
	b	LBB0_9
LBB0_2:
Lloh5:
	adrp	x8, _FW_CEM_CMD_DRIVER_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FW_CEM_CMD_DRIVER_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _FW_CEM_CMD_DRIVER_INFO_LEN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FW_CEM_CMD_DRIVER_INFO_LEN@GOTPAGEOFF]
	str	w8, [sp, #32]
Lloh10:
	ldr	x8, [x9]
Lloh11:
	adrp	x9, _FW_CEM_CMD_RESERVED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FW_CEM_CMD_RESERVED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	str	w9, [sp, #8]
	ldr	x9, [x19, #16]
	stp	x23, x9, [sp, #80]
	stp	x21, x22, [sp, #64]
	str	x20, [sp, #56]
	stp	x8, xzr, [sp, #16]
Lloh14:
	adrp	x9, _FW_CEM_HDR_LEN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FW_CEM_HDR_LEN@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, sp
	bl	_ixgbe_calculate_checksum
	stp	xzr, xzr, [sp, #40]
	str	x0, [sp, #24]
Lloh17:
	adrp	x21, _FW_CEM_MAX_RETRIES@GOTPAGE
Lloh18:
	ldr	x21, [x21, _FW_CEM_MAX_RETRIES@GOTPAGEOFF]
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_6
; %bb.3:
	mov	w22, #-1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	mov	x0, x19
	mov	w2, #96
	bl	_ixgbe_host_interface_command
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	ldr	w8, [x21]
	add	w22, w22, #1
	cmp	w22, w8
	b.lt	LBB0_4
	b	LBB0_8
LBB0_6:
	mov	x20, #0
	b	LBB0_8
LBB0_7:
	ldr	x8, [sp]
Lloh19:
	adrp	x9, _FW_CEM_RESP_STATUS_SUCCESS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _FW_CEM_RESP_STATUS_SUCCESS@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
Lloh22:
	adrp	x10, _IXGBE_ERR_HOST_INTERFACE_COMMAND@GOTPAGE
Lloh23:
	ldr	x10, [x10, _IXGBE_ERR_HOST_INTERFACE_COMMAND@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x20, xzr, x10, eq
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	w1, [x24]
	mov	x0, x19
	blr	x8
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_GSSR_SW_MNG_SM,4,2       ; @IXGBE_GSSR_SW_MNG_SM
	.comm	_IXGBE_ERR_SWFW_SYNC,8,3        ; @IXGBE_ERR_SWFW_SYNC
	.comm	_FW_CEM_CMD_DRIVER_INFO,4,2     ; @FW_CEM_CMD_DRIVER_INFO
	.comm	_FW_CEM_CMD_DRIVER_INFO_LEN,8,3 ; @FW_CEM_CMD_DRIVER_INFO_LEN
	.comm	_FW_CEM_CMD_RESERVED,4,2        ; @FW_CEM_CMD_RESERVED
	.comm	_FW_CEM_HDR_LEN,8,3             ; @FW_CEM_HDR_LEN
	.comm	_FW_CEM_MAX_RETRIES,4,2         ; @FW_CEM_MAX_RETRIES
	.comm	_FW_CEM_RESP_STATUS_SUCCESS,8,3 ; @FW_CEM_RESP_STATUS_SUCCESS
	.comm	_IXGBE_ERR_HOST_INTERFACE_COMMAND,8,3 ; @IXGBE_ERR_HOST_INTERFACE_COMMAND
.subsections_via_symbols
