	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp1_ptp_port_shaper_check
_mlxsw_sp1_ptp_port_shaper_check:       ## @mlxsw_sp1_ptp_port_shaper_check
	.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
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r13
	movq	_MLXSW_REG_PTYS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r14, %rdi
	callq	_mlxsw_sp1_ptp_hwtstamp_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	8(%r13), %r15
	movl	(%r14), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	*16(%r15)
	movl	(%r13), %ebx
	movq	_ptys@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLXSW_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_mlxsw_reg_query
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	leaq	-56(%rbp), %r8
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*8(%r15)
	movq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	*(%r15)
	movq	_MLXSW_SP1_PTP_SHAPER_PARAMS_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	movl	$0, %esi
	jle	LBB0_10
## %bb.5:
	movq	_mlxsw_sp1_ptp_shaper_params@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%rdx,%rsi,8)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_6
## %bb.8:
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlxsw_sp1_ptp_port_shaper_set  ## TAILCALL
LBB0_9:
	movl	$1, %esi
LBB0_10:
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_mlxsw_sp1_ptp_port_shaper_set
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_REG_PTYS_LEN,4,2         ## @MLXSW_REG_PTYS_LEN
	.comm	_ptys,4,2                       ## @ptys
	.comm	_MLXSW_SP1_PTP_SHAPER_PARAMS_LEN,4,2 ## @MLXSW_SP1_PTP_SHAPER_PARAMS_LEN
	.comm	_mlxsw_sp1_ptp_shaper_params,8,3 ## @mlxsw_sp1_ptp_shaper_params
	.no_dead_strip	_mlxsw_sp1_ptp_port_shaper_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp1_ptp_port_shaper_check
_mlxsw_sp1_ptp_port_shaper_check:       ; @mlxsw_sp1_ptp_port_shaper_check
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x20, [x0, #8]
Lloh3:
	adrp	x8, _MLXSW_REG_PTYS_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_REG_PTYS_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	bl	_mlxsw_sp1_ptp_hwtstamp_enabled
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x23, [x20, #8]
	ldr	x8, [x23, #16]
	ldr	w2, [x19]
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	mov	w4, #0
	blr	x8
	ldr	w22, [x20]
Lloh8:
	adrp	x8, _ptys@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ptys@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_MLXSW_REG
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	bl	_mlxsw_reg_query
	cbnz	w0, LBB0_11
; %bb.2:
	ldr	x8, [x23, #8]
	sub	x4, x29, #64
	mov	x0, x20
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	blr	x8
	ldr	x8, [x23]
	ldur	x1, [x29, #-64]
	mov	x0, x20
	blr	x8
Lloh11:
	adrp	x8, _MLXSW_SP1_PTP_SHAPER_PARAMS_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLXSW_SP1_PTP_SHAPER_PARAMS_LEN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
Lloh14:
	adrp	x9, _mlxsw_sp1_ptp_shaper_params@GOTPAGE
Lloh15:
	ldr	x9, [x9, _mlxsw_sp1_ptp_shaper_params@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cmp	x10, x0
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_4
LBB0_6:
	mov	w1, #0
	b	LBB0_10
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.8:
	mov	x0, x19
	mov	w1, #0
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mlxsw_sp1_ptp_port_shaper_set
LBB0_9:
	mov	w1, #1
LBB0_10:
	mov	x0, x19
	bl	_mlxsw_sp1_ptp_port_shaper_set
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_REG_PTYS_LEN,4,2         ; @MLXSW_REG_PTYS_LEN
	.comm	_ptys,4,2                       ; @ptys
	.comm	_MLXSW_SP1_PTP_SHAPER_PARAMS_LEN,4,2 ; @MLXSW_SP1_PTP_SHAPER_PARAMS_LEN
	.comm	_mlxsw_sp1_ptp_shaper_params,8,3 ; @mlxsw_sp1_ptp_shaper_params
	.no_dead_strip	_mlxsw_sp1_ptp_port_shaper_check
.subsections_via_symbols
