	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ehca_reg_maxmr                 ## -- Begin function ehca_reg_maxmr
	.p2align	4, 0x90
_ehca_reg_maxmr:                        ## @ehca_reg_maxmr
	.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
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r13
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	leaq	-44(%rbp), %rsi
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edi
	callq	_ehca_mrmw_map_acl
	movl	20(%r15), %edi
	leaq	-44(%rbp), %rsi
	callq	_ehca_mrmw_set_pgsize_hipz_acl
	movl	-44(%rbp), %r8d
	movl	(%r13), %r9d
	movl	(%rbx), %edi
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_hipz_h_register_smr
	movq	%rax, %r13
	movq	_H_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_1
## %bb.2:
	movq	16(%rbp), %rax
	movq	%r14, (%r12)
	movups	16(%r15), %xmm0
	movups	%xmm0, 16(%r12)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%r12)
	movl	-56(%rbp), %ecx
	movl	%ecx, 12(%r12)
	movl	-60(%rbp), %ecx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	movl	-64(%rbp), %ecx
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	(%rbx), %r8d
	addq	$4, %rbx
	movl	12(%r15), %r9d
	movl	32(%r15), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_ehca_err
	movq	%r13, %rdi
	callq	_ehca2ib_return_code
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H_SUCCESS,8,3                  ## @H_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hipz_reg_smr failed, h_ret=%lli e_origmr=%p hca_hndl=%llx mr_hndl=%llx lkey=%x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ehca_reg_maxmr                 ; -- Begin function ehca_reg_maxmr
	.p2align	2
_ehca_reg_maxmr:                        ; @ehca_reg_maxmr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x6
	mov	x20, x5
	mov	x26, x4
	mov	x22, x3
	mov	x25, x2
	mov	x24, x1
	mov	x23, x0
	ldr	x21, [x0, #8]
	add	x1, sp, #12
	mov	x0, x3
	bl	_ehca_mrmw_map_acl
	ldr	w0, [x21, #20]
	add	x1, sp, #12
	bl	_ehca_mrmw_set_pgsize_hipz_acl
	ldr	w4, [sp, #12]
	ldr	w5, [x26]
	ldr	w0, [x23]
	mov	x6, sp
	mov	x1, x24
	mov	x2, x21
	mov	x3, x25
	bl	_hipz_h_register_smr
Lloh0:
	adrp	x8, _H_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	str	x25, [x24]
	ldr	q0, [x21, #16]
	str	q0, [x24, #16]
	ldr	w8, [sp, #8]
	stp	w22, w8, [x24, #8]
	ldp	w9, w8, [sp]
	str	w8, [x20]
	str	w9, [x19]
	b	LBB0_3
LBB0_2:
	mov	x26, x0
	ldr	w4, [x23], #4
	ldr	w5, [x21, #12]
	ldr	w6, [x21, #32]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x26
	mov	x3, x21
	bl	_ehca_err
	mov	x0, x26
	bl	_ehca2ib_return_code
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_H_SUCCESS,8,3                  ; @H_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hipz_reg_smr failed, h_ret=%lli e_origmr=%p hca_hndl=%llx mr_hndl=%llx lkey=%x"

.subsections_via_symbols
