	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rds_cong_from_addr
_rds_cong_from_addr:                    ## @rds_cong_from_addr
	.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	%edi, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	%ebx, 16(%rax)
	leaq	12(%rax), %rdi
	callq	_init_waitqueue_head
	movq	%r15, %rdi
	addq	$8, %rdi
	callq	_INIT_LIST_HEAD
	movq	_RDS_CONG_MAP_PAGES@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_12
## %bb.3:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_get_zeroed_page
	testq	%rax, %rax
	je	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%r14,8)
	incq	%r14
	cmpq	(%r13), %r14
	jb	LBB0_4
LBB0_12:
	movq	_rds_cong_lock@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_rds_cong_tree_walk
	movq	%r12, %rdi
	movq	%rax, %r12
	callq	_spin_unlock_irqrestore
	testq	%r12, %r12
	jne	LBB0_6
## %bb.13:
	movq	%r15, %r12
	jmp	LBB0_14
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_5:
	xorl	%r12d, %r12d
LBB0_6:
	movl	%ebx, %r14d
	cmpq	$0, (%r13)
	je	LBB0_10
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	callq	_free_page
	incq	%rbx
	cmpq	(%r13), %rbx
	jb	LBB0_8
LBB0_10:
	movq	%r15, %rdi
	callq	_kfree
	movl	%r14d, %ebx
LBB0_14:
	movl	%ebx, %edi
	callq	_be32_to_cpu
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_rdsdebug
LBB0_15:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_RDS_CONG_MAP_PAGES,8,3         ## @RDS_CONG_MAP_PAGES
	.comm	_rds_cong_lock,4,2              ## @rds_cong_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"map %p for addr %x\n"

	.no_dead_strip	_rds_cong_from_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rds_cong_from_addr
_rds_cong_from_addr:                    ; @rds_cong_from_addr
	.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	x19, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	str	w19, [x0, #16]
	add	x0, x0, #12
	bl	_init_waitqueue_head
	add	x0, x20, #8
	bl	_INIT_LIST_HEAD
Lloh2:
	adrp	x23, _RDS_CONG_MAP_PAGES@GOTPAGE
Lloh3:
	ldr	x23, [x23, _RDS_CONG_MAP_PAGES@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_get_zeroed_page
	cbz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	str	x0, [x8, x22, lsl #3]
	add	x22, x22, #1
	ldr	x8, [x23]
	cmp	x22, x8
	b.lo	LBB0_3
LBB0_5:
Lloh4:
	adrp	x22, _rds_cong_lock@GOTPAGE
Lloh5:
	ldr	x22, [x22, _rds_cong_lock@GOTPAGEOFF]
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x20
	bl	_rds_cong_tree_walk
	mov	x21, x0
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cbnz	x21, LBB0_9
; %bb.6:
	mov	x21, x20
	b	LBB0_14
LBB0_7:
	mov	x21, #0
	b	LBB0_15
LBB0_8:
	mov	x21, #0
LBB0_9:
	ldr	x8, [x23]
	cbz	x8, LBB0_13
; %bb.10:
	mov	x22, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8, x22, lsl #3]
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_free_page
	add	x22, x22, #1
	ldr	x8, [x23]
	cmp	x22, x8
	b.lo	LBB0_11
LBB0_13:
	mov	x0, x20
	bl	_kfree
LBB0_14:
	mov	x0, x19
	bl	_be32_to_cpu
	mov	x2, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_rdsdebug
LBB0_15:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_RDS_CONG_MAP_PAGES,8,3         ; @RDS_CONG_MAP_PAGES
	.comm	_rds_cong_lock,4,2              ; @rds_cong_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"map %p for addr %x\n"

	.no_dead_strip	_rds_cong_from_addr
.subsections_via_symbols
