	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nic_config_timestamp
_nic_config_timestamp:                  ## @nic_config_timestamp
	.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
	cmpl	%esi, (%rdi)
	jle	LBB0_9
## %bb.1:
	movq	%rdx, %r13
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movslq	%esi, %rbx
	movl	(%rax,%rbx,4), %edi
	callq	_NIC_GET_BGX_FROM_VF_LMAC_MAP
	movl	%eax, %r15d
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_NIC_GET_LMAC_FROM_VF_LMAC_MAP
	movl	%eax, %r12d
	movq	_MAX_LMAC_PER_BGX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	imull	%r15d, %ebx
	addl	%r12d, %ebx
	movq	_NIC_PF_PKIND_0_15_CFG@GOTPCREL(%rip), %rax
	shll	$3, %ebx
	movl	(%rax), %esi
	orl	%ebx, %esi
	movq	%r14, %rdi
	callq	_nic_reg_read
	movq	(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.2:
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	$4, %r13d
	movq	_ETH_P_1588@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_ETYPE_ALG_ENDPARSE@GOTPCREL(%rip), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %ecx
	jmp	LBB0_7
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%ecx, %ecx
	movl	$0, %r13d
	testq	%rdx, %rdx
	cmovnel	%eax, %r13d
	jne	LBB0_8
## %bb.5:
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_ETYPE_ALG_SKIP@GOTPCREL(%rip), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
LBB0_7:
	movl	4(%r14), %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_bgx_config_timestamping
	movq	_NIC_PF_RX_ETYPE_0_7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	$8, %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	shll	$16, %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_nic_reg_write
LBB0_8:
	movq	_NIC_PF_PKIND_0_15_CFG@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nic_reg_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_LMAC_PER_BGX,4,2           ## @MAX_LMAC_PER_BGX
	.comm	_NIC_PF_PKIND_0_15_CFG,4,2      ## @NIC_PF_PKIND_0_15_CFG
	.comm	_NIC_PF_RX_ETYPE_0_7,4,2        ## @NIC_PF_RX_ETYPE_0_7
	.comm	_ETYPE_ALG_ENDPARSE,4,2         ## @ETYPE_ALG_ENDPARSE
	.comm	_ETH_P_1588,4,2                 ## @ETH_P_1588
	.comm	_ETYPE_ALG_SKIP,4,2             ## @ETYPE_ALG_SKIP
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.no_dead_strip	_nic_config_timestamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nic_config_timestamp
_nic_config_timestamp:                  ; @nic_config_timestamp
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_4
; %bb.1:
	mov	x22, x2
	mov	x19, x0
	ldr	x8, [x0, #8]
	sbfiz	x21, x1, #2, #32
	ldr	w0, [x8, x21]
	bl	_NIC_GET_BGX_FROM_VF_LMAC_MAP
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x21]
	bl	_NIC_GET_LMAC_FROM_VF_LMAC_MAP
	mov	x21, x0
Lloh0:
	adrp	x8, _MAX_LMAC_PER_BGX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_LMAC_PER_BGX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	madd	w8, w8, w20, w0
Lloh3:
	adrp	x23, _NIC_PF_PKIND_0_15_CFG@GOTPAGE
Lloh4:
	ldr	x23, [x23, _NIC_PF_PKIND_0_15_CFG@GOTPAGEOFF]
	ldr	w9, [x23]
	lsl	w24, w8, #3
	orr	w1, w24, w9
	mov	x0, x19
	bl	_nic_reg_read
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.2:
	cbnz	w0, LBB0_5
; %bb.3:
	mov	w22, #4
Lloh5:
	adrp	x25, _ETH_P_1588@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ETH_P_1588@GOTPAGEOFF]
Lloh7:
	adrp	x26, _ETYPE_ALG_ENDPARSE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _ETYPE_ALG_ENDPARSE@GOTPAGEOFF]
	mov	w3, #1
	b	LBB0_8
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	cmp	x8, #0
	csel	w22, w0, wzr, ne
	cbnz	x8, LBB0_9
; %bb.6:
	cbz	w0, LBB0_9
; %bb.7:
	mov	w3, #0
	mov	w22, #0
Lloh9:
	adrp	x25, _ETH_P_8021Q@GOTPAGE
Lloh10:
	ldr	x25, [x25, _ETH_P_8021Q@GOTPAGEOFF]
Lloh11:
	adrp	x26, _ETYPE_ALG_SKIP@GOTPAGE
Lloh12:
	ldr	x26, [x26, _ETYPE_ALG_SKIP@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x19, #4]
	mov	x1, x20
	mov	x2, x21
	bl	_bgx_config_timestamping
Lloh13:
	adrp	x8, _NIC_PF_RX_ETYPE_0_7@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NIC_PF_RX_ETYPE_0_7@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w1, w8, #0x8
	ldr	w8, [x26]
	ldr	w9, [x25]
	orr	w2, w9, w8, lsl #16
	mov	x0, x19
	bl	_nic_reg_write
LBB0_9:
	ldr	w8, [x23]
	orr	w1, w8, w24
	mov	x0, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nic_reg_write
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_LMAC_PER_BGX,4,2           ; @MAX_LMAC_PER_BGX
	.comm	_NIC_PF_PKIND_0_15_CFG,4,2      ; @NIC_PF_PKIND_0_15_CFG
	.comm	_NIC_PF_RX_ETYPE_0_7,4,2        ; @NIC_PF_RX_ETYPE_0_7
	.comm	_ETYPE_ALG_ENDPARSE,4,2         ; @ETYPE_ALG_ENDPARSE
	.comm	_ETH_P_1588,4,2                 ; @ETH_P_1588
	.comm	_ETYPE_ALG_SKIP,4,2             ; @ETYPE_ALG_SKIP
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.no_dead_strip	_nic_config_timestamp
.subsections_via_symbols
