	.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, %r12
	movq	%rdi, %r15
	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, %rbx
	movq	(%r14), %rdi
	callq	_mutex_lock
	movq	%r15, 32(%rbx)
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_ucma_set_event_context
	movq	(%r12), %rax
	movq	%rax, 8(%rbx)
	movl	16(%r12), %eax
	movl	%eax, 24(%rbx)
	movq	(%r15), %rax
	movq	_IB_QPT_UD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	addq	$20, %rdi
	leaq	12(%r12), %rsi
	callq	_ucma_copy_ud_event
	jmp	LBB0_5
LBB0_1:
	movq	(%r12), %rax
	movq	_RDMA_CM_EVENT_CONNECT_REQUEST@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	sete	%r12b
	jmp	LBB0_17
LBB0_4:
	movq	%rbx, %rdi
	addq	$16, %rdi
	leaq	8(%r12), %rsi
	callq	_ucma_copy_conn_event
LBB0_5:
	movq	(%r12), %rax
	movq	_RDMA_CM_EVENT_CONNECT_REQUEST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	movl	20(%r14), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.13:
	decl	%eax
	movl	%eax, 20(%r14)
	jmp	LBB0_14
LBB0_8:
	cmpl	$0, 16(%r14)
	je	LBB0_10
## %bb.9:
	cmpq	%r15, 8(%r14)
	je	LBB0_14
LBB0_10:
	movq	_RDMA_CM_EVENT_DEVICE_REMOVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_ucma_removal_event_handler
LBB0_12:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_14:
	movq	(%r14), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	(%r14), %rdi
	addq	$4, %rdi
	callq	_wake_up_interruptible
	movq	(%r12), %rax
	movq	_RDMA_CM_EVENT_DEVICE_REMOVAL@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	_ucma_removal_event_handler
	jmp	LBB0_16
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_kfree
LBB0_16:
	movq	(%r14), %rdi
	callq	_mutex_unlock
LBB0_17:
	movl	%r12d, %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
	.comm	_RDMA_CM_EVENT_DEVICE_REMOVAL,8,3 ## @RDMA_CM_EVENT_DEVICE_REMOVAL
	.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	x20, 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	x22, x0
	ldr	x0, [x19]
	bl	_mutex_lock
	str	x20, [x22, #32]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_ucma_set_event_context
	ldr	x8, [x21]
	str	x8, [x22, #8]
	ldr	w8, [x21, #16]
	str	w8, [x22, #24]
	ldr	x8, [x20]
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, x22, #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	w20, eq
	b	LBB0_18
LBB0_4:
	add	x0, x22, #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, #20]
	cbz	w8, LBB0_16
; %bb.7:
	sub	w8, w8, #1
	str	w8, [x19, #20]
	b	LBB0_13
LBB0_8:
	ldr	w9, [x19, #16]
	cbz	w9, LBB0_10
; %bb.9:
	ldr	x9, [x19, #8]
	cmp	x9, x20
	b.eq	LBB0_13
LBB0_10:
Lloh12:
	adrp	x9, _RDMA_CM_EVENT_DEVICE_REMOVAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RDMA_CM_EVENT_DEVICE_REMOVAL@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_ucma_removal_event_handler
LBB0_12:
	mov	x0, x22
	bl	_kfree
	b	LBB0_15
LBB0_13:
	ldr	x8, [x19]
	add	x1, x8, #8
	mov	x0, x22
	bl	_list_add_tail
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_wake_up_interruptible
	ldr	x8, [x21]
Lloh15:
	adrp	x9, _RDMA_CM_EVENT_DEVICE_REMOVAL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RDMA_CM_EVENT_DEVICE_REMOVAL@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_ucma_removal_event_handler
LBB0_15:
	mov	w20, #0
	b	LBB0_17
LBB0_16:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x22
	bl	_kfree
LBB0_17:
	ldr	x0, [x19]
	bl	_mutex_unlock
LBB0_18:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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
	.comm	_RDMA_CM_EVENT_DEVICE_REMOVAL,8,3 ; @RDMA_CM_EVENT_DEVICE_REMOVAL
	.no_dead_strip	_ucma_event_handler
.subsections_via_symbols
