	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ehca_mmap                      ## -- Begin function ehca_mmap
	.p2align	4, 0x90
_ehca_mmap:                             ## @ehca_mmap
	.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	%rsi, %r14
	movl	(%rsi), %eax
	movl	%eax, %ebx
	andl	$33554431, %ebx                 ## imm = 0x1FFFFFF
	movl	%eax, %r13d
	shrl	$25, %r13d
	andl	$3, %r13d
	testl	$134217728, %eax                ## imm = 0x8000000
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_6
## %bb.1:
	movq	_ehca_cq_idr_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_read_lock
	movq	_ehca_cq_idr@GOTPCREL(%rip), %rdi
	movl	%ebx, %esi
	callq	_idr_find
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_read_unlock
	testq	%r12, %r12
	je	LBB0_9
## %bb.2:
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	jne	LBB0_9
## %bb.4:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_ehca_mmap_cq
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testl	%eax, %eax
	je	LBB0_15
## %bb.5:
	movl	(%r12), %ecx
	movl	8(%r12), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_13
LBB0_6:
	movq	_ehca_qp_idr_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_read_lock
	movq	_ehca_qp_idr@GOTPCREL(%rip), %rdi
	movl	%ebx, %esi
	callq	_idr_find
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_read_unlock
	testq	%r12, %r12
	je	LBB0_9
## %bb.7:
	movq	%r12, %rdi
	callq	_IS_SRQ
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movq	8(%r12,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	je	LBB0_11
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_ehca_mmap_qp
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movl	(%r12), %ecx
	movl	4(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_13:
	movl	%ebx, %edx
	callq	_ehca_err
	jmp	LBB0_10
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ehca_cq_idr_lock,4,2           ## @ehca_cq_idr_lock
	.comm	_ehca_cq_idr,4,2                ## @ehca_cq_idr
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ehca_mmap_cq() failed rc=%i cq_num=%x"

	.comm	_ehca_qp_idr_lock,4,2           ## @ehca_qp_idr_lock
	.comm	_ehca_qp_idr,4,2                ## @ehca_qp_idr
L_.str.1:                               ## @.str.1
	.asciz	"ehca_mmap_qp() failed rc=%i qp_num=%x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ehca_mmap                      ; -- Begin function ehca_mmap
	.p2align	2
_ehca_mmap:                             ; @ehca_mmap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	ldr	w8, [x1]
	and	w22, w8, #0x1ffffff
	ubfx	w20, w8, #25, #2
	tbnz	w8, #27, LBB0_6
; %bb.1:
Lloh0:
	adrp	x23, _ehca_cq_idr_lock@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ehca_cq_idr_lock@GOTPAGEOFF]
	mov	x0, x23
	bl	_read_lock
Lloh2:
	adrp	x0, _ehca_cq_idr@GOTPAGE
Lloh3:
	ldr	x0, [x0, _ehca_cq_idr@GOTPAGEOFF]
	mov	x1, x22
	bl	_idr_find
	mov	x22, x0
	mov	x0, x23
	bl	_read_unlock
	cbz	x22, LBB0_9
; %bb.2:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_9
; %bb.3:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_9
; %bb.4:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_ehca_mmap_cq
	mov	x19, x0
	bl	_unlikely
	cbz	w0, LBB0_14
; %bb.5:
	ldr	w0, [x22, #8]
	ldr	w3, [x22]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_6:
Lloh6:
	adrp	x23, _ehca_qp_idr_lock@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ehca_qp_idr_lock@GOTPAGEOFF]
	mov	x0, x23
	bl	_read_lock
Lloh8:
	adrp	x0, _ehca_qp_idr@GOTPAGE
Lloh9:
	ldr	x0, [x0, _ehca_qp_idr@GOTPAGEOFF]
	mov	x1, x22
	bl	_idr_find
	mov	x22, x0
	mov	x0, x23
	bl	_read_unlock
	cbz	x22, LBB0_9
; %bb.7:
	mov	x0, x22
	bl	_IS_SRQ
	cmp	w0, #0
	mov	w8, #16
	mov	w9, #8
	csel	x8, x9, x8, eq
	ldr	x8, [x22, x8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x8]
	cmp	x8, x21
	b.eq	LBB0_11
LBB0_9:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_10:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_ehca_mmap_qp
	mov	x19, x0
	bl	_unlikely
	cbz	w0, LBB0_14
; %bb.12:
	ldp	w3, w0, [x22]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	mov	x2, x19
	bl	_ehca_err
	b	LBB0_10
LBB0_14:
	mov	w19, #0
	b	LBB0_10
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ehca_cq_idr_lock,4,2           ; @ehca_cq_idr_lock
	.comm	_ehca_cq_idr,4,2                ; @ehca_cq_idr
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ehca_mmap_cq() failed rc=%i cq_num=%x"

	.comm	_ehca_qp_idr_lock,4,2           ; @ehca_qp_idr_lock
	.comm	_ehca_qp_idr,4,2                ; @ehca_qp_idr
l_.str.1:                               ; @.str.1
	.asciz	"ehca_mmap_qp() failed rc=%i qp_num=%x"

.subsections_via_symbols
