	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehca_mmap_qp
_ehca_mmap_qp:                          ## @ehca_mmap_qp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpl	$2, %edx
	je	LBB0_5
## %bb.1:
	cmpl	$1, %edx
	je	LBB0_7
## %bb.2:
	testl	%edx, %edx
	jne	LBB0_10
## %bb.3:
	movl	(%r14), %edx
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ehca_dbg
	leaq	28(%r14), %rsi
	leaq	24(%r14), %rdx
	movq	%rbx, %rdi
	callq	_ehca_mmap_fw
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testl	%eax, %eax
	je	LBB0_14
## %bb.4:
	movl	(%r14), %ecx
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_ehca_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	movl	(%r14), %edx
	movl	4(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_ehca_dbg
	leaq	12(%r14), %rsi
	leaq	8(%r14), %rdx
	movq	%rbx, %rdi
	callq	_ehca_mmap_queue
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	movl	(%r14), %ecx
	movl	4(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_9
LBB0_7:
	movl	(%r14), %edx
	movl	4(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_ehca_dbg
	leaq	20(%r14), %rsi
	leaq	16(%r14), %rdx
	movq	%rbx, %rdi
	callq	_ehca_mmap_queue
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:
	movl	(%r14), %ecx
	movl	4(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_9:
	movl	%ebx, %edx
	callq	_ehca_err
	jmp	LBB0_15
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_10:
	movl	(%r14), %ecx
	movl	4(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_ehca_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qp_num=%x fw"

L_.str.1:                               ## @.str.1
	.asciz	"remap_pfn_range() failed ret=%i qp_num=%x"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"qp_num=%x rq"

L_.str.3:                               ## @.str.3
	.asciz	"ehca_mmap_queue(rq) failed rc=%i qp_num=%x"

L_.str.4:                               ## @.str.4
	.asciz	"qp_num=%x sq"

L_.str.5:                               ## @.str.5
	.asciz	"ehca_mmap_queue(sq) failed rc=%i qp_num=%x"

L_.str.6:                               ## @.str.6
	.asciz	"bad resource type=%x qp=num=%x"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ehca_mmap_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehca_mmap_qp
_ehca_mmap_qp:                          ; @ehca_mmap_qp
	.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, x1
	mov	x20, x0
	cmp	w2, #2
	b.eq	LBB0_5
; %bb.1:
	cmp	w2, #1
	b.eq	LBB0_7
; %bb.2:
	cbnz	w2, LBB0_11
; %bb.3:
	ldp	w2, w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ehca_dbg
	add	x1, x19, #28
	add	x2, x19, #24
	mov	x0, x20
	bl	_ehca_mmap_fw
	mov	x20, x0
	bl	_unlikely
	cbz	w0, LBB0_10
; %bb.4:
	ldp	w3, w0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_ehca_err
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
	ldp	w2, w0, [x19]
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_ehca_dbg
	add	x1, x19, #12
	add	x2, x19, #8
	mov	x0, x20
	bl	_ehca_mmap_queue
	mov	x20, x0
	bl	_unlikely
	cbz	w0, LBB0_10
; %bb.6:
	ldp	w3, w0, [x19]
Lloh8:
	adrp	x1, l_.str.5@PAGE
Lloh9:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_7:
	ldp	w2, w0, [x19]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ehca_dbg
	add	x1, x19, #20
	add	x2, x19, #16
	mov	x0, x20
	bl	_ehca_mmap_queue
	mov	x20, x0
	bl	_unlikely
	cbz	w0, LBB0_10
; %bb.8:
	ldp	w3, w0, [x19]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	mov	x2, x20
	bl	_ehca_err
	b	LBB0_13
LBB0_10:
	mov	w20, #0
	b	LBB0_13
LBB0_11:
	ldp	w3, w0, [x19]
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_ehca_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qp_num=%x fw"

l_.str.1:                               ; @.str.1
	.asciz	"remap_pfn_range() failed ret=%i qp_num=%x"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"qp_num=%x rq"

l_.str.3:                               ; @.str.3
	.asciz	"ehca_mmap_queue(rq) failed rc=%i qp_num=%x"

l_.str.4:                               ; @.str.4
	.asciz	"qp_num=%x sq"

l_.str.5:                               ; @.str.5
	.asciz	"ehca_mmap_queue(sq) failed rc=%i qp_num=%x"

l_.str.6:                               ; @.str.6
	.asciz	"bad resource type=%x qp=num=%x"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ehca_mmap_qp
.subsections_via_symbols
