	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osm_ucast_cache_process        ## -- Begin function osm_ucast_cache_process
	.p2align	4, 0x90
_osm_ucast_cache_process:               ## @osm_ucast_cache_process
	.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	8(%rdi), %r15
	movl	$1, %ebx
	cmpl	$0, (%r15)
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	callq	_ucast_cache_validate
	cmpl	$0, 4(%r14)
	je	LBB0_10
## %bb.2:
	addq	$4, %r15
	movl	(%r14), %edi
	movq	_OSM_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_OSM_LOG
	movq	%r15, %rdi
	callq	_cl_qmap_head
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_cl_qmap_end
	cmpq	%rax, %r12
	je	LBB0_9
## %bb.3:
	movq	_IB_SMP_DATA_SIZE@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_cl_qmap_next
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_cl_qmap_end
	cmpq	%rax, %r12
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r12), %edi
	callq	_CL_ASSERT
	cmpq	$0, 8(%r12)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %eax
	movl	(%r13), %ecx
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	incl	%ebx
	imull	%ecx, %ebx
	movl	%ebx, %edi
	callq	_malloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, 4(%r12)
	movq	_OSM_NO_PATH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_memset
	jmp	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	callq	_osm_ucast_mgr_set_fwd_tables
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_IB_INSUFFICIENT_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_OSM_LOG_INFO,4,2               ## @OSM_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Configuring switch tables using cached routing\n"

	.comm	_IB_SMP_DATA_SIZE,4,2           ## @IB_SMP_DATA_SIZE
	.comm	_IB_INSUFFICIENT_MEMORY,4,2     ## @IB_INSUFFICIENT_MEMORY
	.comm	_OSM_NO_PATH,4,2                ## @OSM_NO_PATH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osm_ucast_cache_process        ; -- Begin function osm_ucast_cache_process
	.p2align	2
_osm_ucast_cache_process:               ; @osm_ucast_cache_process
	.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
	ldr	x20, [x0, #8]
	ldr	w8, [x20], #4
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x0
	bl	_ucast_cache_validate
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_8
; %bb.2:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _OSM_LOG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSM_LOG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_OSM_LOG
	mov	x0, x20
	bl	_cl_qmap_head
	mov	x21, x0
	mov	x0, x20
	bl	_cl_qmap_end
	cmp	x21, x0
	b.eq	LBB0_9
; %bb.3:
Lloh5:
	adrp	x23, _IB_SMP_DATA_SIZE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _IB_SMP_DATA_SIZE@GOTPAGEOFF]
Lloh7:
	adrp	x24, _OSM_NO_PATH@GOTPAGE
Lloh8:
	ldr	x24, [x24, _OSM_NO_PATH@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_cl_qmap_next
	mov	x21, x0
	mov	x0, x20
	bl	_cl_qmap_end
	cmp	x21, x0
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #16]
	bl	_CL_ASSERT
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x23]
	sdiv	w8, w8, w9
	madd	w22, w9, w8, w9
	mov	x0, x22
	bl	_malloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w22, [x21, #4]
	ldr	w1, [x24]
	mov	x2, x22
	bl	_memset
	b	LBB0_4
LBB0_8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_osm_ucast_mgr_set_fwd_tables
	mov	w0, #0
LBB0_10:
	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_11:
Lloh9:
	adrp	x8, _IB_INSUFFICIENT_MEMORY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_INSUFFICIENT_MEMORY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_10
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_OSM_LOG_INFO,4,2               ; @OSM_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Configuring switch tables using cached routing\n"

	.comm	_IB_SMP_DATA_SIZE,4,2           ; @IB_SMP_DATA_SIZE
	.comm	_IB_INSUFFICIENT_MEMORY,4,2     ; @IB_INSUFFICIENT_MEMORY
	.comm	_OSM_NO_PATH,4,2                ; @OSM_NO_PATH
.subsections_via_symbols
