	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bgx_config_timestamping        ## -- Begin function bgx_config_timestamping
	.p2align	4, 0x90
_bgx_config_timestamping:               ## @bgx_config_timestamping
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	callq	_get_bgx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_BGX_MODE_SGMII@GOTPCREL(%rip), %r8
	movq	_BGX_MODE_QSGMII@GOTPCREL(%rip), %rdi
	movq	_BGX_MODE_RGMII@GOTPCREL(%rip), %rcx
	movq	_BGX_GMP_GMI_RXX_FRM_CTL@GOTPCREL(%rip), %rdx
	movq	%rdx, %rsi
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_BGX_SMUX_RX_FRM_CTL@GOTPCREL(%rip), %rsi
LBB0_3:
	cmpq	(%rdi), %rax
	cmoveq	%rdx, %rsi
	cmpq	(%r8), %rax
	cmoveq	%rdx, %rsi
	movl	(%rsi), %r12d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_bgx_reg_read
	movq	_BGX_PKT_RX_PTP_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	orl	%eax, %edx
	notl	%ecx
	andl	%eax, %ecx
	testl	%r14d, %r14d
	cmovnel	%edx, %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bgx_reg_write                  ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BGX_MODE_SGMII,8,3             ## @BGX_MODE_SGMII
	.comm	_BGX_MODE_QSGMII,8,3            ## @BGX_MODE_QSGMII
	.comm	_BGX_MODE_RGMII,8,3             ## @BGX_MODE_RGMII
	.comm	_BGX_GMP_GMI_RXX_FRM_CTL,4,2    ## @BGX_GMP_GMI_RXX_FRM_CTL
	.comm	_BGX_SMUX_RX_FRM_CTL,4,2        ## @BGX_SMUX_RX_FRM_CTL
	.comm	_BGX_PKT_RX_PTP_EN,4,2          ## @BGX_PKT_RX_PTP_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bgx_config_timestamping        ; -- Begin function bgx_config_timestamping
	.p2align	2
_bgx_config_timestamping:               ; @bgx_config_timestamping
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x3
	mov	x19, x2
	bl	_get_bgx
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x8, [x8, w19, sxtw #3]
Lloh0:
	adrp	x9, _BGX_MODE_SGMII@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BGX_MODE_SGMII@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _BGX_MODE_QSGMII@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BGX_MODE_QSGMII@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _BGX_MODE_RGMII@GOTPAGE
Lloh7:
	ldr	x11, [x11, _BGX_MODE_RGMII@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x11
	ccmp	x8, x10, #4, ne
	ccmp	x8, x9, #4, ne
Lloh9:
	adrp	x8, _BGX_GMP_GMI_RXX_FRM_CTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BGX_GMP_GMI_RXX_FRM_CTL@GOTPAGEOFF]
Lloh11:
	adrp	x9, _BGX_SMUX_RX_FRM_CTL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BGX_SMUX_RX_FRM_CTL@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w22, [x8]
	mov	x1, x19
	mov	x2, x22
	bl	_bgx_reg_read
Lloh13:
	adrp	x8, _BGX_PKT_RX_PTP_EN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BGX_PKT_RX_PTP_EN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w20, #0
	csel	w3, w8, w9, eq
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_bgx_reg_write
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BGX_MODE_SGMII,8,3             ; @BGX_MODE_SGMII
	.comm	_BGX_MODE_QSGMII,8,3            ; @BGX_MODE_QSGMII
	.comm	_BGX_MODE_RGMII,8,3             ; @BGX_MODE_RGMII
	.comm	_BGX_GMP_GMI_RXX_FRM_CTL,4,2    ; @BGX_GMP_GMI_RXX_FRM_CTL
	.comm	_BGX_SMUX_RX_FRM_CTL,4,2        ; @BGX_SMUX_RX_FRM_CTL
	.comm	_BGX_PKT_RX_PTP_EN,4,2          ; @BGX_PKT_RX_PTP_EN
.subsections_via_symbols
