	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_cmsg_atomic                ## -- Begin function rds_cmsg_atomic
	.p2align	4, 0x90
_rds_cmsg_atomic:                       ## @rds_cmsg_atomic
	.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	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movq	(%rdx), %rbx
	movl	$64, %edi
	callq	_CMSG_LEN
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.1:
	cmpl	$0, (%r12)
	je	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r13, %rdi
	callq	_CMSG_DATA
	movq	%rax, %r14
	movl	8(%r13), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_9
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	_RDS_ATOMIC_TYPE_FADD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%r12)
	movl	56(%r14), %eax
	movl	%eax, 84(%r12)
	movl	52(%r14), %eax
	movl	%eax, 80(%r12)
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_10
LBB0_8:
	movq	_RDS_ATOMIC_TYPE_CSWP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%r12)
	movups	28(%r14), %xmm0
	movups	%xmm0, 52(%r12)
	jmp	LBB0_10
LBB0_5:
	movq	_RDS_ATOMIC_TYPE_FADD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%r12)
	movl	60(%r14), %eax
	movl	%eax, 84(%r12)
	movl	$0, 80(%r12)
	jmp	LBB0_10
LBB0_7:
	movq	_RDS_ATOMIC_TYPE_CSWP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%r12)
	movl	48(%r14), %eax
	movl	%eax, 64(%r12)
	movl	44(%r14), %eax
	movl	%eax, 60(%r12)
	movq	$-1, 52(%r12)
LBB0_10:
	movl	(%r14), %eax
	movq	_RDS_RDMA_NOTIFY_ME@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, 4(%r12)
	movq	_RDS_RDMA_SILENT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 8(%r12)
	movl	$1, (%r12)
	movq	(%r15), %rax
	movq	%rax, 40(%r12)
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_rds_message_alloc_sgs
	movl	%eax, 48(%r12)
	testl	%eax, %eax
	je	LBB0_11
## %bb.16:
	movl	4(%r14), %edi
	testb	$7, %dil
	je	LBB0_18
## %bb.17:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_18:
	leaq	-48(%rbp), %rdx
	movl	$1, %esi
	movl	$1, %ecx
	callq	_rds_pin_pages
	movl	%eax, %ebx
	cmpl	$1, %eax
	jne	LBB0_13
## %bb.19:
	movl	48(%r12), %ebx
	movq	-48(%rbp), %r15
	movl	4(%r14), %edi
	callq	_offset_in_page
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	$8, %edx
	movl	%eax, %ecx
	callq	_sg_set_page
	cmpl	$0, 4(%r12)
	jne	LBB0_21
## %bb.20:
	cmpq	$0, 40(%r12)
	je	LBB0_23
LBB0_21:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kmalloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_11
## %bb.22:
	movl	24(%r14), %ecx
	movl	%ecx, 4(%rax)
	movq	_RDS_RDMA_SUCCESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_23:
	movl	8(%r14), %edi
	callq	_rds_rdma_cookie_key
	movl	%eax, 32(%r12)
	movq	16(%r14), %rbx
	movl	8(%r14), %edi
	callq	_rds_rdma_cookie_offset
	addq	%rbx, %rax
	movq	%rax, 24(%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_put_page
LBB0_15:
	movq	16(%r12), %rdi
	callq	_kfree
	jmp	LBB0_24
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RDS_ATOMIC_TYPE_FADD,8,3       ## @RDS_ATOMIC_TYPE_FADD
	.comm	_RDS_ATOMIC_TYPE_CSWP,8,3       ## @RDS_ATOMIC_TYPE_CSWP
	.comm	_RDS_RDMA_NOTIFY_ME,4,2         ## @RDS_RDMA_NOTIFY_ME
	.comm	_RDS_RDMA_SILENT,4,2            ## @RDS_RDMA_SILENT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_RDS_RDMA_SUCCESS,4,2           ## @RDS_RDMA_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_cmsg_atomic                ; -- Begin function rds_cmsg_atomic
	.p2align	2
_rds_cmsg_atomic:                       ; @rds_cmsg_atomic
	.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	x22, x2
	mov	x19, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	ldr	x20, [x2]
	mov	w0, #64
	bl	_CMSG_LEN
	cmp	x20, x0
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_3:
	mov	x0, x21
	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
LBB0_4:
	mov	x0, x22
	bl	_CMSG_DATA
	mov	x20, x0
	ldr	w8, [x22, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.5:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
Lloh5:
	adrp	x8, _RDS_ATOMIC_TYPE_FADD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RDS_ATOMIC_TYPE_FADD@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19, #72]
	ldur	d0, [x20, #52]
	str	d0, [x19, #80]
	b	LBB0_11
LBB0_7:
	bl	_BUG
	b	LBB0_11
LBB0_8:
Lloh8:
	adrp	x8, _RDS_ATOMIC_TYPE_CSWP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RDS_ATOMIC_TYPE_CSWP@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19, #72]
	ldur	q0, [x20, #28]
	stur	q0, [x19, #52]
	b	LBB0_11
LBB0_9:
Lloh11:
	adrp	x8, _RDS_ATOMIC_TYPE_FADD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RDS_ATOMIC_TYPE_FADD@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19, #72]
	ldr	w8, [x20, #60]
	stp	wzr, w8, [x19, #80]
	b	LBB0_11
LBB0_10:
Lloh14:
	adrp	x8, _RDS_ATOMIC_TYPE_CSWP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RDS_ATOMIC_TYPE_CSWP@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x19, #72]
	ldur	d0, [x20, #44]
	stur	d0, [x19, #60]
	movi.2d	v0, #0xffffffffffffffff
	stur	d0, [x19, #52]
LBB0_11:
	ldr	w8, [x20]
Lloh17:
	adrp	x9, _RDS_RDMA_NOTIFY_ME@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RDS_RDMA_NOTIFY_ME@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w9, ne
Lloh20:
	adrp	x10, _RDS_RDMA_SILENT@GOTPAGE
Lloh21:
	ldr	x10, [x10, _RDS_RDMA_SILENT@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w8, ne
	stp	w9, w8, [x19, #4]
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x21]
	str	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #1
	bl	_rds_message_alloc_sgs
	str	w0, [x19, #48]
	cbz	w0, LBB0_20
; %bb.12:
	ldr	w0, [x20, #4]
	tst	w0, #0x7
	b.eq	LBB0_14
; %bb.13:
Lloh23:
	adrp	x8, _EFAULT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_21
LBB0_14:
	add	x2, sp, #8
	mov	w1, #1
	mov	w3, #1
	bl	_rds_pin_pages
	mov	x21, x0
	cmp	w0, #1
	b.ne	LBB0_22
; %bb.15:
	ldr	w21, [x19, #48]
	ldr	x22, [sp, #8]
	ldr	w0, [x20, #4]
	bl	_offset_in_page
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	w2, #8
	bl	_sg_set_page
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_17
; %bb.16:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_19
LBB0_17:
Lloh25:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kmalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_20
; %bb.18:
	ldr	w8, [x20, #24]
Lloh28:
	adrp	x9, _RDS_RDMA_SUCCESS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _RDS_RDMA_SUCCESS@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
LBB0_19:
	ldr	w0, [x20, #8]
	bl	_rds_rdma_cookie_key
	str	w0, [x19, #32]
	ldr	x22, [x20, #16]
	ldr	w0, [x20, #8]
	bl	_rds_rdma_cookie_offset
	mov	w21, #0
	add	x8, x0, x22
	str	x8, [x19, #24]
	b	LBB0_3
LBB0_20:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_22:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_24
; %bb.23:
	bl	_put_page
LBB0_24:
	ldr	x0, [x19, #16]
	bl	_kfree
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RDS_ATOMIC_TYPE_FADD,8,3       ; @RDS_ATOMIC_TYPE_FADD
	.comm	_RDS_ATOMIC_TYPE_CSWP,8,3       ; @RDS_ATOMIC_TYPE_CSWP
	.comm	_RDS_RDMA_NOTIFY_ME,4,2         ; @RDS_RDMA_NOTIFY_ME
	.comm	_RDS_RDMA_SILENT,4,2            ; @RDS_RDMA_SILENT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_RDS_RDMA_SUCCESS,4,2           ; @RDS_RDMA_SUCCESS
.subsections_via_symbols
