	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_close
_ocrdma_close:                          ## @ocrdma_close
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_IB_QPS_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	addq	$4, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	8(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_6
## %bb.1:
	movq	_OCRDMA_MAX_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r13,8), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	movl	%r14d, %edx
	callq	__ocrdma_modify_qp
	movq	_IB_EVENT_QP_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%r15, -72(%rbp)
	movq	%rbx, -88(%rbp)
	leaq	-88(%rbp), %rdi
	callq	_ib_dispatch_event
	movq	_OCRDMA_MAX_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	_IB_EVENT_PORT_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	$1, -80(%rbp)
	movq	%rbx, -88(%rbp)
	leaq	-88(%rbp), %rdi
	callq	_ib_dispatch_event
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QP_STATE,4,2                ## @IB_QP_STATE
	.comm	_IB_QPS_ERR,4,2                 ## @IB_QPS_ERR
	.comm	_OCRDMA_MAX_QP,4,2              ## @OCRDMA_MAX_QP
	.comm	_IB_EVENT_QP_FATAL,4,2          ## @IB_EVENT_QP_FATAL
	.comm	_IB_EVENT_PORT_ERR,4,2          ## @IB_EVENT_PORT_ERR
	.no_dead_strip	_ocrdma_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_close
_ocrdma_close:                          ; @ocrdma_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _IB_QP_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QP_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _IB_QPS_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_QPS_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x21, x0, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	x23, [x19, #8]
Lloh6:
	adrp	x24, _OCRDMA_MAX_QP@GOTPAGE
Lloh7:
	ldr	x24, [x24, _OCRDMA_MAX_QP@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	x23, #0
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_2
LBB0_1:
	mov	x0, x21
	bl	_mutex_unlock
Lloh8:
	adrp	x8, _IB_EVENT_PORT_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_EVENT_PORT_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	w9, #1
	str	w8, [sp, #40]
	str	w9, [sp, #24]
	str	x19, [sp, #16]
	add	x0, sp, #16
	bl	_ib_dispatch_event
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
	mov	x25, #0
Lloh11:
	adrp	x26, _IB_EVENT_QP_FATAL@GOTPAGE
Lloh12:
	ldr	x26, [x26, _IB_EVENT_QP_FATAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x23, x25, lsl #3]
	cbz	x22, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, x20
	bl	__ocrdma_modify_qp
	ldr	w8, [x26]
	str	w8, [sp, #40]
	str	x22, [sp, #32]
	str	x19, [sp, #16]
	add	x0, sp, #16
	bl	_ib_dispatch_event
	ldr	w8, [x24]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QP_STATE,4,2                ; @IB_QP_STATE
	.comm	_IB_QPS_ERR,4,2                 ; @IB_QPS_ERR
	.comm	_OCRDMA_MAX_QP,4,2              ; @OCRDMA_MAX_QP
	.comm	_IB_EVENT_QP_FATAL,4,2          ; @IB_EVENT_QP_FATAL
	.comm	_IB_EVENT_PORT_ERR,4,2          ; @IB_EVENT_PORT_ERR
	.no_dead_strip	_ocrdma_close
.subsections_via_symbols
