	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ehca_fmr_check_page_list       ## -- Begin function ehca_fmr_check_page_list
	.p2align	4, 0x90
_ehca_fmr_check_page_list:              ## @ehca_fmr_check_page_list
	.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
	movl	%edx, %r10d
	movq	%rdi, %r8
	movl	(%rdi), %edx
	testl	%r10d, %r10d
	je	LBB0_10
## %bb.1:
	cmpl	%r10d, %edx
	jl	LBB0_10
## %bb.2:
	testl	%r10d, %r10d
	jle	LBB0_8
## %bb.3:
	movq	%rsi, %rcx
	movl	4(%r8), %r9d
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %ebx
	movl	%ebx, %eax
	cltd
	idivl	%r9d
	testl	%edx, %edx
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %rcx
	incl	%esi
	cmpl	%esi, %r10d
	jne	LBB0_4
LBB0_8:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_10:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r10d, %esi
	movq	%r8, %rcx
	xorl	%eax, %eax
	callq	_ehca_gen_err
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_ehca_gen_err
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad list_len, list_len=%x e_fmr->fmr_max_pages=%x fmr=%p"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"bad page, i=%x *page=%llx page=%p fmr=%p fmr_page_size=%x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ehca_fmr_check_page_list       ; -- Begin function ehca_fmr_check_page_list
	.p2align	2
_ehca_fmr_check_page_list:              ; @ehca_fmr_check_page_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
	cbz	w2, LBB0_7
; %bb.1:
	cmp	w8, w2
	b.lt	LBB0_7
; %bb.2:
	cmp	w2, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w8, #0
	ldr	w10, [x0, #4]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x1]
	sdiv	w11, w9, w10
	msub	w11, w11, w10, w9
	cbnz	w11, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x1, #4
	add	w8, w8, #1
	cmp	w2, w8
	b.ne	LBB0_4
LBB0_6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	mov	x2, x8
	b	LBB0_9
LBB0_8:
	stp	x0, x10, [sp, #8]
	str	x1, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x8
	mov	x2, x9
LBB0_9:
	bl	_ehca_gen_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad list_len, list_len=%x e_fmr->fmr_max_pages=%x fmr=%p"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"bad page, i=%x *page=%llx page=%p fmr=%p fmr_page_size=%x"

.subsections_via_symbols
