	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pipe_grant_credits
_pipe_grant_credits:                    ## @pipe_grant_credits
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_pep_sk
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_TCP_ESTABLISHED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_BUG_ON
	movl	(%r14), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.2:
	movq	_PN_PEP_IND_FLOW_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PEP_IND_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_pipe_snd_status
	movl	$1, 4(%r14)
	jmp	LBB0_6
LBB0_3:
	movl	4(%r14), %eax
	movq	_CREDITS_THR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	movq	_CREDITS_MAX@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	cmpl	%edx, %ecx
	jg	LBB0_6
## %bb.4:
	movq	_PN_PEP_IND_ID_MCFC_GRANT_CREDITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	subl	%eax, %edx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_pipe_snd_status
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	(%r15), %eax
	movl	%eax, 4(%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCP_ESTABLISHED,8,3            ## @TCP_ESTABLISHED
	.comm	_PN_PEP_IND_FLOW_CONTROL,4,2    ## @PN_PEP_IND_FLOW_CONTROL
	.comm	_PEP_IND_READY,4,2              ## @PEP_IND_READY
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_CREDITS_THR,4,2                ## @CREDITS_THR
	.comm	_CREDITS_MAX,4,2                ## @CREDITS_MAX
	.comm	_PN_PEP_IND_ID_MCFC_GRANT_CREDITS,4,2 ## @PN_PEP_IND_ID_MCFC_GRANT_CREDITS
	.no_dead_strip	_pipe_grant_credits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pipe_grant_credits
_pipe_grant_credits:                    ; @pipe_grant_credits
	.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	x20, x0
	bl	_pep_sk
	mov	x19, x0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _TCP_ESTABLISHED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TCP_ESTABLISHED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUG_ON
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _PN_PEP_IND_FLOW_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PN_PEP_IND_FLOW_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _PEP_IND_READY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PEP_IND_READY@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_pipe_snd_status
	mov	w8, #1
LBB0_3:
	str	w8, [x19, #4]
	b	LBB0_6
LBB0_4:
	ldr	w8, [x19, #4]
Lloh12:
	adrp	x9, _CREDITS_THR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CREDITS_THR@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x9]
Lloh15:
	adrp	x21, _CREDITS_MAX@GOTPAGE
Lloh16:
	ldr	x21, [x21, _CREDITS_MAX@GOTPAGEOFF]
	ldr	w9, [x21]
	add	w10, w10, w8
	cmp	w10, w9
	b.gt	LBB0_6
; %bb.5:
Lloh17:
	adrp	x10, _PN_PEP_IND_ID_MCFC_GRANT_CREDITS@GOTPAGE
Lloh18:
	ldr	x10, [x10, _PN_PEP_IND_ID_MCFC_GRANT_CREDITS@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x10]
	sub	w2, w9, w8
Lloh20:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_pipe_snd_status
	cbz	w0, LBB0_7
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:
	ldr	w8, [x21]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TCP_ESTABLISHED,8,3            ; @TCP_ESTABLISHED
	.comm	_PN_PEP_IND_FLOW_CONTROL,4,2    ; @PN_PEP_IND_FLOW_CONTROL
	.comm	_PEP_IND_READY,4,2              ; @PEP_IND_READY
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_CREDITS_THR,4,2                ; @CREDITS_THR
	.comm	_CREDITS_MAX,4,2                ; @CREDITS_MAX
	.comm	_PN_PEP_IND_ID_MCFC_GRANT_CREDITS,4,2 ; @PN_PEP_IND_ID_MCFC_GRANT_CREDITS
	.no_dead_strip	_pipe_grant_credits
.subsections_via_symbols
