	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_open_shared_qp_security     ## -- Begin function ib_open_shared_qp_security
	.p2align	4, 0x90
_ib_open_shared_qp_security:            ## @ib_open_shared_qp_security
	.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	%rdi, %rbx
	movq	8(%rdi), %r12
	callq	_ib_create_qp_security
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_1
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%r14d, %r14d
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.2:
	movq	(%r12), %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	movl	8(%rax), %edi
	movq	(%rbx), %rsi
	callq	_check_qp_port_pkey_settings
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	cmpq	%rbx, %r12
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	addq	$4, %rdi
	movq	(%r12), %rsi
	addq	$4, %rsi
	callq	_list_add
LBB0_5:
	movq	(%r12), %rdi
	callq	_mutex_unlock
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rdi
	callq	_destroy_qp_security
	movl	%r15d, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_open_shared_qp_security     ; -- Begin function ib_open_shared_qp_security
	.p2align	2
_ib_open_shared_qp_security:            ; @ib_open_shared_qp_security
	.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	x19, x0
	ldr	x21, [x0, #8]
	bl	_ib_create_qp_security
	mov	x20, x0
	cbz	w0, LBB0_2
LBB0_1:
	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
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x0, [x21]
	bl	_mutex_lock
	ldr	x8, [x21]
	ldr	w0, [x8, #8]
	ldr	x1, [x19]
	bl	_check_qp_port_pkey_settings
	mov	x20, x0
	cmp	w0, #0
	ccmp	x21, x19, #4, eq
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x19]
	add	x0, x8, #4
	ldr	x8, [x21]
	add	x1, x8, #4
	bl	_list_add
LBB0_5:
	ldr	x0, [x21]
	bl	_mutex_unlock
	cbz	w20, LBB0_1
; %bb.6:
	ldr	x0, [x19]
	bl	_destroy_qp_security
	b	LBB0_1
LBB0_7:
	mov	w20, #0
	b	LBB0_1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
