	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_hwrm_fw_set_time          ## -- Begin function bnxt_hwrm_fw_set_time
	.p2align	4, 0x90
_bnxt_hwrm_fw_set_time:                 ## @bnxt_hwrm_fw_set_time
	.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	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -32(%rbp)
	movaps	%xmm0, -48(%rbp)
	xorl	%eax, %eax
	callq	_ktime_get_real_seconds
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_BNXT_VF
	movl	(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpl	$67841, %ecx                    ## imm = 0x10901
	jge	LBB0_2
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_3:
	cmpl	$66559, %ecx                    ## imm = 0x103FF
	jle	LBB0_4
LBB0_2:
	leaq	-80(%rbp), %rdx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_time64_to_tm
	movq	_HWRM_FW_SET_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	movl	$1900, %edi                     ## imm = 0x76C
	addq	-56(%rbp), %rdi
	callq	_cpu_to_le16
	movl	%eax, -24(%rbp)
	movq	-64(%rbp), %rax
	incq	%rax
	movq	%rax, -32(%rbp)
	movaps	-80(%rbp), %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$32, %edx
	callq	_hwrm_send_message
LBB0_5:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_HWRM_FW_SET_TIME,4,2           ## @HWRM_FW_SET_TIME
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_hwrm_fw_set_time          ; -- Begin function bnxt_hwrm_fw_set_time
	.p2align	2
_bnxt_hwrm_fw_set_time:                 ; @bnxt_hwrm_fw_set_time
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	mov	w21, #1024
	movk	w21, #1, lsl #16
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	bl	_ktime_get_real_seconds
	mov	x20, x0
	mov	x0, x19
	bl	_BNXT_VF
	ldr	w8, [x19]
	cbz	x0, LBB0_3
; %bb.1:
	add	w9, w21, #1281
	cmp	w8, w9
	b.ge	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	cmp	w8, w21
	b.lt	LBB0_2
LBB0_4:
	mov	x2, sp
	mov	x0, x20
	mov	w1, #0
	bl	_time64_to_tm
Lloh3:
	adrp	x8, _HWRM_FW_SET_TIME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HWRM_FW_SET_TIME@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #32
	mov	x0, x19
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	ldr	x8, [sp, #24]
	add	x0, x8, #1900
	bl	_cpu_to_le16
	str	w0, [sp, #56]
	ldr	x8, [sp, #16]
	add	x8, x8, #1
	str	x8, [sp, #48]
	ldr	q0, [sp]
	str	q0, [sp, #32]
Lloh6:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x1, sp, #32
	mov	x0, x19
	mov	w2, #32
	bl	_hwrm_send_message
LBB0_5:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_HWRM_FW_SET_TIME,4,2           ; @HWRM_FW_SET_TIME
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
.subsections_via_symbols
