	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_cong_wait                  ## -- Begin function rds_cong_wait
	.p2align	4, 0x90
_rds_cong_wait:                         ## @rds_cong_wait
	.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
	movq	%rcx, %r12
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_rds_cong_test_bit
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.2:
	testq	%r12, %r12
	je	LBB0_5
## %bb.3:
	cmpq	$0, 8(%r12)
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	%r14d, %edi
	callq	_ntohs
	movl	%eax, %edi
	callq	_RDS_CONG_MONITOR_MASK
	orl	%eax, 4(%r12)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_rds_cong_test_bit
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	movq	_s_cong_send_error@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rds_stats_inc
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_6:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_s_cong_send_blocked@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rds_stats_inc
	movl	%r14d, %edi
	callq	_be16_to_cpu
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_rdsdebug
	movl	(%r15), %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_rds_cong_test_bit
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wait_event_interruptible       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_s_cong_send_error,4,2          ## @s_cong_send_error
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_s_cong_send_blocked,4,2        ## @s_cong_send_blocked
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"waiting on map %p for port %u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_cong_wait                  ; -- Begin function rds_cong_wait
	.p2align	2
_rds_cong_wait:                         ; @rds_cong_wait
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_rds_cong_test_bit
	cbz	w0, LBB0_6
; %bb.1:
	cbz	w22, LBB0_7
; %bb.2:
	cbz	x21, LBB0_5
; %bb.3:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_ntohs
	bl	_RDS_CONG_MONITOR_MASK
	ldr	w8, [x21, #4]
	orr	w8, w8, w0
	str	w8, [x21, #4]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	mov	x1, x19
	bl	_rds_cong_test_bit
	cbz	w0, LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _s_cong_send_error@GOTPAGE
Lloh1:
	ldr	x8, [x8, _s_cong_send_error@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_rds_stats_inc
Lloh3:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh6:
	adrp	x8, _s_cong_send_blocked@GOTPAGE
Lloh7:
	ldr	x8, [x8, _s_cong_send_blocked@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_rds_stats_inc
	mov	x0, x19
	bl	_be16_to_cpu
	mov	x2, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_rdsdebug
	ldr	w21, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_rds_cong_test_bit
	cmp	w0, #0
	cset	w1, eq
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wait_event_interruptible
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_s_cong_send_error,4,2          ; @s_cong_send_error
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_s_cong_send_blocked,4,2        ; @s_cong_send_blocked
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"waiting on map %p for port %u\n"

.subsections_via_symbols
