	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hipz_h_register_rpage_mr       ## -- Begin function hipz_h_register_rpage_mr
	.p2align	4, 0x90
_hipz_h_register_rpage_mr:              ## @hipz_h_register_rpage_mr
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	_ehca_debug_level@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$3, (%rax)
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpl	$2, %ebx
	jl	LBB0_7
## %bb.2:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_abs_to_virt
	movq	%rax, %r12
	movl	%ebx, %r14d
	leaq	L_.str(%rip), %r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r12,%r13,4), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_ehca_gen_dbg
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_3
LBB0_4:
	movq	%rbx, %r14
	cmpl	$2, %ebx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jl	LBB0_8
## %bb.5:
	movq	_EHCA_PAGESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	testl	%ebx, %eax
	je	LBB0_8
## %bb.6:
	movl	(%rdx), %ecx
	leaq	L_.str.2(%rip), %rdi
	pushq	%r14
	pushq	%rbx
	callq	_ehca_gen_err
	addq	$16, %rsp
	movq	_H_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movslq	%ebx, %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_ehca_gen_dbg
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_8:
	movl	(%rdx), %ecx
	movl	%esi, %edi
	movl	%r8d, %esi
	movl	%r9d, %edx
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hipz_h_register_rpage          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ehca_debug_level,4,2           ## @ehca_debug_level
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kpage[%d]=%p"

L_.str.1:                               ## @.str.1
	.asciz	"kpage=%p"

	.comm	_EHCA_PAGESIZE,4,2              ## @EHCA_PAGESIZE
L_.str.2:                               ## @.str.2
	.asciz	"logical_address_of_page not on a 4k boundary adapter_handle=%llx mr=%p mr_handle=%llx pagesize=%x queue_type=%x logical_address_of_page=%llx count=%llx"

	.comm	_H_PARAMETER,4,2                ## @H_PARAMETER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hipz_h_register_rpage_mr       ; -- Begin function hipz_h_register_rpage_mr
	.p2align	2
_hipz_h_register_rpage_mr:              ; @hipz_h_register_rpage_mr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _ehca_debug_level@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ehca_debug_level@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.1:
	cmp	w19, #2
	b.lt	LBB0_7
; %bb.2:
	mov	x0, x20
	bl	_abs_to_virt
	mov	x25, x0
	mov	x26, #0
	mov	w28, w19
Lloh3:
	adrp	x27, l_.str@PAGE
Lloh4:
	add	x27, x27, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x25, x26, lsl #2]
	str	x8, [sp]
	mov	x0, x27
	mov	x1, x26
	bl	_ehca_gen_dbg
	add	x26, x26, #1
	cmp	x28, x26
	b.ne	LBB0_3
LBB0_4:
	cmp	w19, #2
	b.lt	LBB0_8
; %bb.5:
Lloh5:
	adrp	x8, _EHCA_PAGESIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EHCA_PAGESIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	sub	w8, w8, #1
	tst	w8, w20
	b.eq	LBB0_8
; %bb.6:
	ldr	w3, [x23]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x24
	mov	x2, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	bl	_ehca_gen_err
Lloh10:
	adrp	x8, _H_PARAMETER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _H_PARAMETER@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	sxtw	x1, w20
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ehca_gen_dbg
LBB0_8:
	ldr	w3, [x23]
	and	x0, x24, #0xffffffff
	mov	x1, x22
	mov	x2, x21
	mov	x4, x20
	mov	x5, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_hipz_h_register_rpage
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ehca_debug_level,4,2           ; @ehca_debug_level
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kpage[%d]=%p"

l_.str.1:                               ; @.str.1
	.asciz	"kpage=%p"

	.comm	_EHCA_PAGESIZE,4,2              ; @EHCA_PAGESIZE
l_.str.2:                               ; @.str.2
	.asciz	"logical_address_of_page not on a 4k boundary adapter_handle=%llx mr=%p mr_handle=%llx pagesize=%x queue_type=%x logical_address_of_page=%llx count=%llx"

	.comm	_H_PARAMETER,4,2                ; @H_PARAMETER
.subsections_via_symbols
