	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_resolve_iboe_route
_cma_resolve_iboe_route:                ## @cma_resolve_iboe_route
	.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	%rdi, %r13
	movq	(%rdi), %rbx
	movq	56(%rdi), %rax
	movq	8(%rax), %r14
	movl	(%rax), %edi
	callq	_rdma_start_port
	subq	%rax, %rbx
	cmpq	$0, 48(%r13)
	leaq	40(%r13), %rax
	leaq	(%r14,%rbx,4), %rcx
	cmovneq	%rax, %rcx
	movl	(%rcx), %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$80, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	(%rbx), %esi
	movl	$80, %edi
	callq	_kzalloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	$1, 8(%r13)
	movq	%r13, %rdi
	callq	_cma_iboe_set_path_rec_l2_fields
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	leaq	32(%r13), %rdi
	movq	16(%r13), %rsi
	addq	$72, %rsi
	callq	_rdma_ip2gid
	leaq	28(%r13), %rdi
	movq	16(%r13), %rsi
	addq	$68, %rsi
	callq	_rdma_ip2gid
	movq	28(%r13), %rcx
	movq	_AF_IB@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.7:
	movl	24(%r13), %eax
LBB0_8:
	movq	16(%r13), %rcx
	movl	%eax, (%rcx)
	movl	$1, 4(%rcx)
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_cpu_to_be16
	movq	16(%r13), %rcx
	movl	%eax, 64(%rcx)
	movq	_IB_SA_EQ@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, 56(%rcx)
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_iboe_tos_to_sl
	movq	16(%r13), %rcx
	movl	%eax, 52(%rcx)
	movl	%r15d, 48(%rcx)
	movl	(%r12), %edi
	callq	_iboe_get_mtu
	movq	16(%r13), %rcx
	movl	%eax, 12(%rcx)
	movq	(%rbx), %rax
	movq	%rax, 40(%rcx)
	movq	%r12, %rdi
	callq	_iboe_get_rate
	movq	16(%r13), %rcx
	movl	%eax, 32(%rcx)
	movq	%r12, %rdi
	callq	_dev_put
	movq	(%rbx), %rax
	movq	16(%r13), %rdi
	movq	%rax, 24(%rdi)
	movq	_CMA_IBOE_PACKET_LIFETIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	cmpl	$0, 12(%rdi)
	je	LBB0_9
## %bb.13:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_cma_init_resolve_route_work
	movq	_cma_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %r14
	movq	%r14, %rsi
	callq	_queue_work
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_5:
	movq	16(%r13), %rdi
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
	callq	_kfree
	movq	$0, 16(%r13)
LBB0_11:
	negl	%ebx
	movq	%r14, %rdi
	callq	_kfree
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_AF_IB,8,3                      ## @AF_IB
	.comm	_IB_SA_EQ,8,3                   ## @IB_SA_EQ
	.comm	_CMA_IBOE_PACKET_LIFETIME,4,2   ## @CMA_IBOE_PACKET_LIFETIME
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_cma_wq,4,2                     ## @cma_wq
	.no_dead_strip	_cma_resolve_iboe_route
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_resolve_iboe_route
_cma_resolve_iboe_route:                ; @cma_resolve_iboe_route
	.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	x19, x0
	ldr	x8, [x0, #56]
	ldr	x20, [x8, #8]
	ldr	x21, [x0]
	ldr	w0, [x8]
	bl	_rdma_start_port
	ldr	x8, [x19, #48]
	add	x9, x19, #40
	sub	x10, x21, x0
	add	x10, x20, x10, lsl #2
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w21, [x8]
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #80
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	w1, [x22]
	mov	w0, #80
	bl	_kzalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.2:
	mov	w8, #1
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_cma_iboe_set_path_rec_l2_fields
	cbz	x0, LBB0_9
; %bb.3:
	mov	x22, x0
	add	x0, x19, #32
	ldr	x8, [x19, #16]
	add	x1, x8, #72
	bl	_rdma_ip2gid
	add	x0, x19, #28
	ldr	x8, [x19, #16]
	add	x1, x8, #68
	bl	_rdma_ip2gid
	ldur	x10, [x19, #28]
Lloh2:
	adrp	x8, _AF_IB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AF_IB@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x8]
	mov	w8, #1
	mov	w9, #1
	cmp	x10, x11
	b.eq	LBB0_5
; %bb.4:
	ldr	w9, [x19, #24]
LBB0_5:
	ldr	x10, [x19, #16]
	stp	w9, w8, [x10]
	mov	w0, #65535
	bl	_cpu_to_be16
	ldr	x8, [x19, #16]
	str	w0, [x8, #64]
Lloh5:
	adrp	x23, _IB_SA_EQ@GOTPAGE
Lloh6:
	ldr	x23, [x23, _IB_SA_EQ@GOTPAGEOFF]
	ldr	x9, [x23]
	str	x9, [x8, #56]
	mov	x0, x22
	mov	x1, x21
	bl	_iboe_tos_to_sl
	ldr	x8, [x19, #16]
	stp	w21, w0, [x8, #48]
	ldr	w0, [x22]
	bl	_iboe_get_mtu
	ldr	x8, [x19, #16]
	str	w0, [x8, #12]
	ldr	x9, [x23]
	str	x9, [x8, #40]
	mov	x0, x22
	bl	_iboe_get_rate
	ldr	x8, [x19, #16]
	str	w0, [x8, #32]
	mov	x0, x22
	bl	_dev_put
	ldr	x8, [x23]
	ldr	x0, [x19, #16]
	str	x8, [x0, #24]
Lloh7:
	adrp	x8, _CMA_IBOE_PACKET_LIFETIME@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CMA_IBOE_PACKET_LIFETIME@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_10
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_cma_init_resolve_route_work
Lloh10:
	adrp	x8, _cma_wq@GOTPAGE
Lloh11:
	ldr	x8, [x8, _cma_wq@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_queue_work
	mov	w19, #0
	b	LBB0_13
LBB0_7:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_13
LBB0_8:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	b	LBB0_12
LBB0_9:
	ldr	x0, [x19, #16]
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w21, [x8]
	bl	_kfree
	str	xzr, [x19, #16]
LBB0_12:
	neg	w19, w21
	mov	x0, x20
	bl	_kfree
LBB0_13:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_AF_IB,8,3                      ; @AF_IB
	.comm	_IB_SA_EQ,8,3                   ; @IB_SA_EQ
	.comm	_CMA_IBOE_PACKET_LIFETIME,4,2   ; @CMA_IBOE_PACKET_LIFETIME
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_cma_wq,4,2                     ; @cma_wq
	.no_dead_strip	_cma_resolve_iboe_route
.subsections_via_symbols
