	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucma_event_handler
_ucma_event_handler:                    ## @ucma_event_handler
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	(%r14), %rdi
	callq	_mutex_lock
	movq	%rbx, 32(%r12)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_ucma_set_event_context
	movq	(%r15), %rax
	movq	%rax, 8(%r12)
	movl	16(%r15), %eax
	movl	%eax, 24(%r12)
	movq	(%rbx), %rax
	movq	_IB_QPT_UD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	addq	$20, %rdi
	leaq	12(%r15), %rsi
	callq	_ucma_copy_ud_event
	jmp	LBB0_5
LBB0_1:
	movq	(%r15), %rax
	movq	_RDMA_CM_EVENT_CONNECT_REQUEST@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	sete	%bl
	jmp	LBB0_14
LBB0_4:
	movq	%r12, %rdi
	addq	$16, %rdi
	leaq	8(%r15), %rsi
	callq	_ucma_copy_conn_event
LBB0_5:
	movq	(%r15), %rax
	movq	_RDMA_CM_EVENT_CONNECT_REQUEST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	movl	12(%r14), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.10:
	decl	%eax
	movl	%eax, 12(%r14)
	jmp	LBB0_11
LBB0_8:
	cmpl	$0, 8(%r14)
	je	LBB0_9
LBB0_11:
	movq	(%r14), %rsi
	addq	$8, %rsi
	movq	%r12, %rdi
	callq	_list_add_tail
	movq	(%r14), %rdi
	addq	$4, %rdi
	callq	_wake_up_interruptible
	jmp	LBB0_12
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_13
LBB0_9:
	movq	%r12, %rdi
	callq	_kfree
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	(%r14), %rdi
	callq	_mutex_unlock
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_RDMA_CM_EVENT_CONNECT_REQUEST,8,3 ## @RDMA_CM_EVENT_CONNECT_REQUEST
	.comm	_IB_QPT_UD,8,3                  ## @IB_QPT_UD
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ucma_event_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucma_event_handler
_ucma_event_handler:                    ; @ucma_event_handler
	.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
	mov	x22, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19]
	bl	_mutex_lock
	str	x22, [x20, #32]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_ucma_set_event_context
	ldr	x8, [x21]
	str	x8, [x20, #8]
	ldr	w8, [x21, #16]
	str	w8, [x20, #24]
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _IB_QPT_UD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_QPT_UD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	add	x0, x20, #20
	add	x1, x21, #12
	bl	_ucma_copy_ud_event
	b	LBB0_5
LBB0_3:
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _RDMA_CM_EVENT_CONNECT_REQUEST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RDMA_CM_EVENT_CONNECT_REQUEST@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w21, eq
	b	LBB0_14
LBB0_4:
	add	x0, x20, #16
	add	x1, x21, #8
	bl	_ucma_copy_conn_event
LBB0_5:
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _RDMA_CM_EVENT_CONNECT_REQUEST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RDMA_CM_EVENT_CONNECT_REQUEST@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_10
; %bb.7:
	sub	w8, w8, #1
	str	w8, [x19, #12]
	b	LBB0_9
LBB0_8:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_11
LBB0_9:
	ldr	x8, [x19]
	add	x1, x8, #8
	mov	x0, x20
	bl	_list_add_tail
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_wake_up_interruptible
	b	LBB0_12
LBB0_10:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x0, x20
	bl	_kfree
	b	LBB0_13
LBB0_11:
	mov	x0, x20
	bl	_kfree
LBB0_12:
	mov	w21, #0
LBB0_13:
	ldr	x0, [x19]
	bl	_mutex_unlock
LBB0_14:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_RDMA_CM_EVENT_CONNECT_REQUEST,8,3 ; @RDMA_CM_EVENT_CONNECT_REQUEST
	.comm	_IB_QPT_UD,8,3                  ; @IB_QPT_UD
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ucma_event_handler
.subsections_via_symbols
