	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_message_map_pages          ## -- Begin function rds_message_map_pages
	.p2align	4, 0x90
_rds_message_map_pages:                 ## @rds_message_map_pages
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%r15d, %edi
	callq	_ceil
	movq	%rax, %r12
	leal	(,%rax,4), %edi
	movq	_GFP_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rds_message_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r13
	movq	_RDS_MSG_PAGEVEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	addq	$20, %rsi
	callq	_set_bit
	movl	%r15d, %edi
	callq	_cpu_to_be32
	movl	%eax, 16(%r13)
	movl	(%rbx), %esi
	movl	%r15d, %edi
	callq	_ceil
	movl	%eax, (%r13)
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_rds_message_alloc_sgs
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	cmpl	$0, (%r13)
	je	LBB0_6
## %bb.3:
	movq	%rax, %r15
	movq	(%r14), %rdi
	callq	_virt_to_page
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_sg_set_page
	cmpl	$2, (%r13)
	jb	LBB0_6
## %bb.4:
	movl	$1, %ebx
	movl	$4, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %r15
	addq	%r12, %r15
	movq	(%r14,%rbx,8), %rdi
	callq	_virt_to_page
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_sg_set_page
	incq	%rbx
	movl	(%r13), %eax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_6:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r13, %rdi
	callq	_rds_message_put
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_GFP_NOWAIT,4,2                 ## @GFP_NOWAIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RDS_MSG_PAGEVEC,4,2            ## @RDS_MSG_PAGEVEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_message_map_pages          ; -- Begin function rds_message_map_pages
	.p2align	2
_rds_message_map_pages:                 ; @rds_message_map_pages
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_ceil
	mov	x22, x0
	lsl	w0, w22, #2
Lloh2:
	adrp	x8, _GFP_NOWAIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_NOWAIT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_rds_message_alloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x8, _RDS_MSG_PAGEVEC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RDS_MSG_PAGEVEC@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x20, #20
	bl	_set_bit
	mov	x0, x21
	bl	_cpu_to_be32
	str	w0, [x20, #16]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_ceil
	str	w0, [x20]
	mov	x0, x20
	mov	x1, x22
	bl	_rds_message_alloc_sgs
	str	x0, [x20, #8]
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.3:
	mov	x21, x0
	ldr	x0, [x19]
	bl	_virt_to_page
	mov	x1, x0
	ldr	w2, [x23]
	mov	x0, x21
	mov	w3, #0
	bl	_sg_set_page
	ldr	w8, [x20]
	cmp	w8, #2
	b.lo	LBB0_6
; %bb.4:
	mov	w22, #1
	mov	w24, #4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x21, x8, x24
	ldr	x0, [x19, x22, lsl #3]
	bl	_virt_to_page
	mov	x1, x0
	ldr	w2, [x23]
	mov	x0, x21
	mov	w3, #0
	bl	_sg_set_page
	add	x22, x22, #1
	ldr	w8, [x20]
	add	x24, x24, #4
	cmp	x22, x8
	b.lo	LBB0_5
LBB0_6:
	mov	x0, x20
	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_7:
	mov	x0, x20
	bl	_rds_message_put
LBB0_8:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_GFP_NOWAIT,4,2                 ; @GFP_NOWAIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RDS_MSG_PAGEVEC,4,2            ; @RDS_MSG_PAGEVEC
.subsections_via_symbols
