	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isert_create_device_ib_res
_isert_create_device_ib_res:            ## @isert_create_device_ib_res
	.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, %r14
	movq	8(%rdi), %r12
	movl	8(%r12), %edx
	movl	12(%r12), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_isert_dbg
	movl	4(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_isert_dbg
	movq	%r14, %rdi
	callq	_isert_alloc_comps
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ib_alloc_pd
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	4(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_isert_err
	movq	%r14, %rdi
	callq	_isert_free_comps
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	testl	%ebx, %ebx
	cmovlel	%ebx, %r13d
	movl	%r13d, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_IB_DEVICE_INTEGRITY_HANDOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%r12), %eax
	setne	%cl
	movl	%ecx, (%r14)
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"devattr->max_send_sge: %d devattr->max_recv_sge %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"devattr->max_sge_rd: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to allocate pd, device %p, ret=%d\n"

	.comm	_IB_DEVICE_INTEGRITY_HANDOVER,4,2 ## @IB_DEVICE_INTEGRITY_HANDOVER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_isert_create_device_ib_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isert_create_device_ib_res
_isert_create_device_ib_res:            ; @isert_create_device_ib_res
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldp	w8, w1, [x20, #8]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_isert_dbg
	ldr	w1, [x20, #4]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_isert_dbg
	mov	x0, x19
	bl	_isert_alloc_comps
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	bl	_ib_alloc_pd
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x19, #4]
	bl	_PTR_ERR
	mov	x21, x0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_isert_err
	mov	x0, x19
	bl	_isert_free_comps
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w21, #0
	csneg	w0, w21, w8, le
LBB0_4:
	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
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _IB_DEVICE_INTEGRITY_HANDOVER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_DEVICE_INTEGRITY_HANDOVER@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x19]
	b	LBB0_4
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"devattr->max_send_sge: %d devattr->max_recv_sge %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"devattr->max_sge_rd: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to allocate pd, device %p, ret=%d\n"

	.comm	_IB_DEVICE_INTEGRITY_HANDOVER,4,2 ; @IB_DEVICE_INTEGRITY_HANDOVER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_isert_create_device_ib_res
.subsections_via_symbols
