	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sendmsg
___sendmsg:                             ## @__sendmsg
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rdi), %edi
	decl	%edi
	callq	_cpu_to_le32
	movl	%eax, (%r15)
	movq	8(%r14), %rdi
	movq	_DLM_LOCK_EX@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_dlm_lock_sync
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	jmp	LBB0_12
LBB0_2:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%r14), %rdi
	movq	_DLM_LOCK_CW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlm_lock_sync
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_4:
	movq	16(%r14), %rdi
	movl	(%r12), %esi
	callq	_dlm_lock_sync
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_8
LBB0_6:
	movq	16(%r14), %rdi
	movq	_DLM_LOCK_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlm_lock_sync
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
LBB0_8:
	movl	%eax, %esi
	callq	_pr_err
LBB0_9:
	movq	8(%r14), %rdi
	callq	_dlm_unlock_sync
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	L_.str.4(%rip), %r15
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pr_err
	movq	8(%r14), %rdi
	callq	_dlm_unlock_sync
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_11
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DLM_LOCK_EX,4,2                ## @DLM_LOCK_EX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md-cluster: failed to get EX on MESSAGE (%d)\n"

	.comm	_DLM_LOCK_CW,4,2                ## @DLM_LOCK_CW
L_.str.1:                               ## @.str.1
	.asciz	"md-cluster: failed to convert EX to CW on MESSAGE(%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"md-cluster: failed to convert CR to EX on ACK(%d)\n"

	.comm	_DLM_LOCK_CR,4,2                ## @DLM_LOCK_CR
L_.str.3:                               ## @.str.3
	.asciz	"md-cluster: failed to convert EX to CR on ACK(%d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"md-cluster: failed convert to NL on MESSAGE(%d)\n"

	.no_dead_strip	___sendmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __sendmsg
___sendmsg:                             ; @__sendmsg
	.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	x21, x1
	mov	x19, x0
	ldr	w8, [x0]
	sub	w0, w8, #1
	bl	_cpu_to_le32
	str	w0, [x21]
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x22, _DLM_LOCK_EX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DLM_LOCK_EX@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_dlm_lock_sync
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_err
	b	LBB0_12
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	ldr	x0, [x19, #8]
Lloh4:
	adrp	x8, _DLM_LOCK_CW@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DLM_LOCK_CW@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_dlm_lock_sync
	cbz	w0, LBB0_4
; %bb.3:
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
	ldr	x0, [x19, #16]
	ldr	w1, [x22]
	bl	_dlm_lock_sync
	cbz	w0, LBB0_6
; %bb.5:
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_6:
	ldr	x0, [x19, #16]
Lloh11:
	adrp	x8, _DLM_LOCK_CR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DLM_LOCK_CR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_dlm_lock_sync
	cbz	w0, LBB0_9
; %bb.7:
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_8:
	bl	_pr_err
LBB0_9:
	ldr	x0, [x19, #8]
	bl	_dlm_unlock_sync
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.10:
Lloh16:
	adrp	x21, l_.str.4@PAGE
Lloh17:
	add	x21, x21, l_.str.4@PAGEOFF
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_pr_err
	ldr	x0, [x19, #8]
	bl	_dlm_unlock_sync
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_11
LBB0_12:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DLM_LOCK_EX,4,2                ; @DLM_LOCK_EX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md-cluster: failed to get EX on MESSAGE (%d)\n"

	.comm	_DLM_LOCK_CW,4,2                ; @DLM_LOCK_CW
l_.str.1:                               ; @.str.1
	.asciz	"md-cluster: failed to convert EX to CW on MESSAGE(%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"md-cluster: failed to convert CR to EX on ACK(%d)\n"

	.comm	_DLM_LOCK_CR,4,2                ; @DLM_LOCK_CR
l_.str.3:                               ; @.str.3
	.asciz	"md-cluster: failed to convert EX to CR on ACK(%d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"md-cluster: failed convert to NL on MESSAGE(%d)\n"

	.no_dead_strip	___sendmsg
.subsections_via_symbols
