	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_port_attr_br_ageing_set
_mlxsw_sp_port_attr_br_ageing_set:      ## @mlxsw_sp_port_attr_br_ageing_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %r14
	movq	%rdx, %rdi
	callq	_clock_t_to_jiffies
	movq	%rax, %rdi
	callq	_jiffies_to_msecs
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movslq	%eax, %rbx
	movq	%r15, %rdi
	callq	_switchdev_trans_ph_prepare
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_MLXSW_SP_MIN_AGEING_TIME@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jg	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	movq	_MLXSW_SP_MAX_AGEING_TIME@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jge	LBB0_4
LBB0_3:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlxsw_sp_ageing_set            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SP_MIN_AGEING_TIME,8,3   ## @MLXSW_SP_MIN_AGEING_TIME
	.comm	_MLXSW_SP_MAX_AGEING_TIME,8,3   ## @MLXSW_SP_MAX_AGEING_TIME
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_mlxsw_sp_port_attr_br_ageing_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_port_attr_br_ageing_set
_mlxsw_sp_port_attr_br_ageing_set:      ; @mlxsw_sp_port_attr_br_ageing_set
	.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	x21, x1
	ldr	x19, [x0]
	mov	x0, x2
	bl	_clock_t_to_jiffies
	bl	_jiffies_to_msecs
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	sxtw	x20, w8
	mov	x0, x21
	bl	_switchdev_trans_ph_prepare
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MLXSW_SP_MIN_AGEING_TIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_SP_MIN_AGEING_TIME@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MLXSW_SP_MAX_AGEING_TIME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLXSW_SP_MAX_AGEING_TIME@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x20
	ccmp	x9, x20, #8, le
	b.ge	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _ERANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	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	_mlxsw_sp_ageing_set
LBB0_4:
	mov	w0, #0
LBB0_5:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP_MIN_AGEING_TIME,8,3   ; @MLXSW_SP_MIN_AGEING_TIME
	.comm	_MLXSW_SP_MAX_AGEING_TIME,8,3   ; @MLXSW_SP_MAX_AGEING_TIME
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_mlxsw_sp_port_attr_br_ageing_set
.subsections_via_symbols
