	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_assign_reg_ops            ## -- Begin function iser_assign_reg_ops
	.p2align	4, 0x90
_iser_assign_reg_ops:                   ## @iser_assign_reg_ops
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	cmpq	$0, 32(%rax)
	je	LBB0_5
## %bb.1:
	cmpq	$0, 24(%rax)
	je	LBB0_5
## %bb.2:
	cmpq	$0, 16(%rax)
	je	LBB0_5
## %bb.3:
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_iser_info
	movq	_fmr_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movq	_IB_DEVICE_MEM_MGT_EXTENSIONS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_iser_info
	movq	_fastreg_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_iser_always_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	callq	_iser_err
	movl	$-1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FMR supported, using FMR for registration\n"

	.comm	_fmr_ops,4,2                    ## @fmr_ops
	.comm	_IB_DEVICE_MEM_MGT_EXTENSIONS,4,2 ## @IB_DEVICE_MEM_MGT_EXTENSIONS
L_.str.1:                               ## @.str.1
	.asciz	"FastReg supported, using FastReg for registration\n"

	.comm	_fastreg_ops,4,2                ## @fastreg_ops
	.comm	_iser_always_reg,4,2            ## @iser_always_reg
L_.str.2:                               ## @.str.2
	.asciz	"IB device does not support FMRs nor FastRegs, can't register memory\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_assign_reg_ops            ; -- Begin function iser_assign_reg_ops
	.p2align	2
_iser_assign_reg_ops:                   ; @iser_assign_reg_ops
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_5
; %bb.1:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_5
; %bb.2:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_5
; %bb.3:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_iser_info
	mov	w0, #0
Lloh2:
	adrp	x8, _fmr_ops@GOTPAGE
Lloh3:
	ldr	x8, [x8, _fmr_ops@GOTPAGEOFF]
	str	x8, [x19, #8]
	b	LBB0_8
LBB0_5:
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _IB_DEVICE_MEM_MGT_EXTENSIONS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IB_DEVICE_MEM_MGT_EXTENSIONS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_iser_info
	mov	w0, #0
Lloh9:
	adrp	x8, _fastreg_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _fastreg_ops@GOTPAGEOFF]
	str	x8, [x19, #8]
Lloh11:
	adrp	x8, _iser_always_reg@GOTPAGE
Lloh12:
	ldr	x8, [x8, _iser_always_reg@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_iser_err
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FMR supported, using FMR for registration\n"

	.comm	_fmr_ops,4,2                    ; @fmr_ops
	.comm	_IB_DEVICE_MEM_MGT_EXTENSIONS,4,2 ; @IB_DEVICE_MEM_MGT_EXTENSIONS
l_.str.1:                               ; @.str.1
	.asciz	"FastReg supported, using FastReg for registration\n"

	.comm	_fastreg_ops,4,2                ; @fastreg_ops
	.comm	_iser_always_reg,4,2            ; @iser_always_reg
l_.str.2:                               ; @.str.2
	.asciz	"IB device does not support FMRs nor FastRegs, can't register memory\n"

.subsections_via_symbols
