	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_qdisc_replace
_mlxsw_sp_qdisc_replace:                ## @mlxsw_sp_qdisc_replace
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	8(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rax
	cmpq	(%r13), %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlxsw_sp_qdisc_destroy
LBB0_3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	*8(%r13)
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	*16(%r13)
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_5
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, (%rbx)
	jne	LBB0_12
## %bb.10:
	movq	24(%r13), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	*%rax
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlxsw_sp_qdisc_destroy
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	cmpq	%r15, (%rbx)
	je	LBB0_8
## %bb.6:
	movq	%r13, 8(%rbx)
	movq	32(%r13), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*%rax
LBB0_8:
	movq	%r15, (%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlxsw_sp_qdisc_replace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_qdisc_replace
_mlxsw_sp_qdisc_replace:                ; @mlxsw_sp_qdisc_replace
	.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
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x2, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_mlxsw_sp_qdisc_destroy
LBB0_3:
	ldr	x8, [x23, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	blr	x8
	mov	x24, x0
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x8, [x23, #16]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	blr	x8
	mov	x24, x0
	cbz	w0, LBB0_10
LBB0_5:
	ldr	x8, [x19]
	cmp	x8, x21
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	blr	x8
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_mlxsw_sp_qdisc_destroy
LBB0_9:
	mov	x0, x24
	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_10:
	ldr	x8, [x19]
	cmp	x8, x21
	b.eq	LBB0_13
; %bb.11:
	str	x23, [x19, #8]
	ldr	x8, [x23, #32]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x20
	mov	x1, x19
	blr	x8
LBB0_13:
	mov	w24, #0
	str	x21, [x19]
	b	LBB0_9
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlxsw_sp_qdisc_replace
.subsections_via_symbols
