	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_iw_advertise_credits       ## -- Begin function rds_iw_advertise_credits
	.p2align	4, 0x90
_rds_iw_advertise_credits:              ## @rds_iw_advertise_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	(%rdi), %r14
	movl	%esi, %edi
	callq	_IB_SET_POST_CREDITS
	leaq	4(%r14), %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_atomic_add
	movq	%rbx, %rdi
	callq	_atomic_read
	movl	%eax, %edi
	callq	_IB_GET_POST_CREDITS
	cmpl	$16, %eax
	jl	LBB0_2
## %bb.3:
	movq	_IB_ACK_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_set_bit                        ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_ACK_REQUESTED,4,2           ## @IB_ACK_REQUESTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_iw_advertise_credits       ; -- Begin function rds_iw_advertise_credits
	.p2align	2
_rds_iw_advertise_credits:              ; @rds_iw_advertise_credits
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	w1, LBB0_3
; %bb.1:
	ldr	x19, [x0]
	mov	x0, x1
	bl	_IB_SET_POST_CREDITS
	add	x20, x19, #4
	mov	x1, x20
	bl	_atomic_add
	mov	x0, x20
	bl	_atomic_read
	bl	_IB_GET_POST_CREDITS
	cmp	w0, #16
	b.lt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _IB_ACK_REQUESTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_ACK_REQUESTED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_set_bit
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_ACK_REQUESTED,4,2           ; @IB_ACK_REQUESTED
.subsections_via_symbols
