	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_mr_route_write
_mlxsw_sp_mr_route_write:               ## @mlxsw_sp_mr_route_write
	.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
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	(%rdi), %r14
	movq	(%r14), %r13
	leaq	-48(%rbp), %rdx
	callq	_mlxsw_sp_mr_route_info_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.7:
	movq	(%r13), %rax
	movl	(%r15), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	*8(%rax)
	movl	%eax, %ebx
LBB0_8:
	leaq	-48(%rbp), %rdi
	callq	_mlxsw_sp_mr_route_info_destroy
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%r13), %rax
	movl	16(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	4(%r15), %eax
	movl	%eax, -56(%rbp)
	movl	-48(%rbp), %eax
	movl	%eax, -60(%rbp)
	movq	%r15, %rdi
	callq	_mlxsw_sp_mr_route_prio
	movl	%eax, -64(%rbp)
	movq	(%r13), %rax
	movl	8(%r13), %esi
	movl	(%r15), %edx
	leaq	-64(%rbp), %rcx
	movq	%r14, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_kfree
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mlxsw_sp_mr_route_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_mr_route_write
_mlxsw_sp_mr_route_write:               ; @mlxsw_sp_mr_route_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x19, x1
	ldr	x20, [x0]
	ldr	x23, [x20]
	add	x2, sp, #24
	bl	_mlxsw_sp_mr_route_info_create
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.1:
	cbz	w22, LBB0_5
; %bb.2:
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldr	w1, [x19]
	add	x2, sp, #24
	mov	x0, x20
	blr	x8
	mov	x21, x0
LBB0_3:
	add	x0, sp, #24
	bl	_mlxsw_sp_mr_route_info_destroy
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	ldr	x8, [x23]
	ldr	w0, [x8, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	str	w0, [x19]
	cbz	w0, LBB0_8
; %bb.6:
	ldr	w8, [x19, #4]
	ldr	w9, [sp, #24]
	stp	w9, w8, [sp, #12]
	mov	x0, x19
	bl	_mlxsw_sp_mr_route_prio
	str	w0, [sp, #8]
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	w1, [x23, #8]
	ldr	w2, [x19]
	add	x3, sp, #8
	mov	x0, x20
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.7:
	ldr	w0, [x19]
	bl	_kfree
	b	LBB0_3
LBB0_8:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mlxsw_sp_mr_route_write
.subsections_via_symbols
