	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rds_iw_cm_fill_conn_param
_rds_iw_cm_fill_conn_param:             ## @rds_iw_cm_fill_conn_param
	.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	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	8(%rdi), %r15
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r14)
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movl	4(%r13), %eax
	movl	%eax, 48(%rbx)
	movl	(%r13), %eax
	movl	%eax, 44(%rbx)
	movl	%r12d, %edi
	callq	_RDS_PROTOCOL_MAJOR
	movl	%eax, 40(%rbx)
	movl	%r12d, %edi
	callq	_RDS_PROTOCOL_MINOR
	movl	%eax, 36(%rbx)
	movq	_RDS_IW_SUPPORTED_PROTOCOLS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movl	%eax, 32(%rbx)
	movq	%r15, %rdi
	callq	_rds_iw_piggyb_ack
	movl	%eax, 28(%rbx)
	cmpq	$0, 8(%r15)
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_atomic_read
	movl	%eax, %edi
	callq	_IB_GET_POST_CREDITS
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_cpu_to_be32
	movl	%eax, 24(%rbx)
	movl	%r12d, %edi
	callq	_IB_SET_POST_CREDITS
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_atomic_sub
LBB0_3:
	movq	%rbx, 16(%r14)
	movl	$56, 8(%r14)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDS_IW_SUPPORTED_PROTOCOLS,4,2 ## @RDS_IW_SUPPORTED_PROTOCOLS
	.no_dead_strip	_rds_iw_cm_fill_conn_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rds_iw_cm_fill_conn_param
_rds_iw_cm_fill_conn_param:             ; @rds_iw_cm_fill_conn_param
	.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	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x21, [x0, #8]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	movi.2s	v0, #1
	str	d0, [x19]
	cbz	x20, LBB0_4
; %bb.1:
	mov	w24, #56
	mov	x0, x20
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	ldr	d0, [x23]
	stur	d0, [x20, #44]
	mov	x0, x22
	bl	_RDS_PROTOCOL_MAJOR
	str	w0, [x20, #40]
	mov	x0, x22
	bl	_RDS_PROTOCOL_MINOR
	str	w0, [x20, #36]
Lloh0:
	adrp	x8, _RDS_IW_SUPPORTED_PROTOCOLS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDS_IW_SUPPORTED_PROTOCOLS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	str	w0, [x20, #32]
	mov	x0, x21
	bl	_rds_iw_piggyb_ack
	str	w0, [x20, #28]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_atomic_read
	bl	_IB_GET_POST_CREDITS
	mov	x22, x0
	bl	_cpu_to_be32
	str	w0, [x20, #24]
	mov	x0, x22
	bl	_IB_SET_POST_CREDITS
	mov	x1, x21
	bl	_atomic_sub
LBB0_3:
	str	x20, [x19, #16]
	str	w24, [x19, #8]
LBB0_4:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RDS_IW_SUPPORTED_PROTOCOLS,4,2 ; @RDS_IW_SUPPORTED_PROTOCOLS
	.no_dead_strip	_rds_iw_cm_fill_conn_param
.subsections_via_symbols
