	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rds_iw_send_ack
_rds_iw_send_ack:                       ## @rds_iw_send_ack
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	32(%rdi), %rbx
	callq	_rds_iw_get_ack
	movq	%rax, %r12
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_rdsdebug
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_rds_message_populate_header
	movq	%r12, %rdi
	callq	_cpu_to_be64
	movl	%eax, 4(%rbx)
	movl	%r14d, (%rbx)
	movq	%rbx, %rdi
	callq	_rds_message_make_checksum
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	16(%r15), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	leaq	-40(%rbp), %rdx
	callq	_ib_post_send
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_IB_ACK_IN_FLIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r15), %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_IB_ACK_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_s_iw_ack_send_failure@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rds_iw_stats_inc
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_rds_iw_conn_error
	jmp	LBB0_3
LBB0_2:
	movq	_s_iw_ack_sent@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rds_iw_stats_inc
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send_ack: ic %p ack %llu\n"

	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_IB_ACK_IN_FLIGHT,4,2           ## @IB_ACK_IN_FLIGHT
	.comm	_IB_ACK_REQUESTED,4,2           ## @IB_ACK_REQUESTED
	.comm	_s_iw_ack_send_failure,4,2      ## @s_iw_ack_send_failure
L_.str.1:                               ## @.str.1
	.asciz	"sending ack failed\n"

	.comm	_s_iw_ack_sent,4,2              ## @s_iw_ack_sent
	.no_dead_strip	_rds_iw_send_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rds_iw_send_ack
_rds_iw_send_ack:                       ; @rds_iw_send_ack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #32]
	bl	_rds_iw_get_ack
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x22
	bl	_rdsdebug
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_rds_message_populate_header
	mov	x0, x22
	bl	_cpu_to_be64
	stp	w20, w0, [x21]
	mov	x0, x21
	bl	_rds_message_make_checksum
Lloh2:
	adrp	x8, _jiffies@GOTPAGE
Lloh3:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	add	x1, x19, #8
	add	x2, sp, #8
	bl	_ib_post_send
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _IB_ACK_IN_FLIGHT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_ACK_IN_FLIGHT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x20, x19, #4
	mov	x1, x20
	bl	_clear_bit
Lloh8:
	adrp	x8, _IB_ACK_REQUESTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_ACK_REQUESTED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
Lloh11:
	adrp	x8, _s_iw_ack_send_failure@GOTPAGE
Lloh12:
	ldr	x8, [x8, _s_iw_ack_send_failure@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_rds_iw_stats_inc
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_rds_iw_conn_error
	b	LBB0_3
LBB0_2:
Lloh16:
	adrp	x8, _s_iw_ack_sent@GOTPAGE
Lloh17:
	ldr	x8, [x8, _s_iw_ack_sent@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_rds_iw_stats_inc
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send_ack: ic %p ack %llu\n"

	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_IB_ACK_IN_FLIGHT,4,2           ; @IB_ACK_IN_FLIGHT
	.comm	_IB_ACK_REQUESTED,4,2           ; @IB_ACK_REQUESTED
	.comm	_s_iw_ack_send_failure,4,2      ; @s_iw_ack_send_failure
l_.str.1:                               ; @.str.1
	.asciz	"sending ack failed\n"

	.comm	_s_iw_ack_sent,4,2              ; @s_iw_ack_sent
	.no_dead_strip	_rds_iw_send_ack
.subsections_via_symbols
