	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_cmsg
_send_cmsg:                             ## @send_cmsg
	.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	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movb	$0, -33(%rbp)
	leaq	-88(%rbp), %r12
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_bzero
	leaq	-33(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	$1, -48(%rbp)
	movq	%rbx, -64(%rbp)
	movq	%r14, -88(%rbp)
	leaq	-56(%rbp), %rax
	movq	%rax, -72(%rbp)
	movl	$1, -80(%rbp)
	movl	%r15d, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_sendmsg
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	cmpl	$-1, %eax
	setne	%bl
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	xorl	%edi, %edi
	cmpl	$1, %r14d
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %ecx
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	addq	$64, %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	"sendmsg failed: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"sendmsg: %zd bytes sent; expected %zu"

	.no_dead_strip	_send_cmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_cmsg
_send_cmsg:                             ; @send_cmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	strb	wzr, [sp, #15]
	add	x0, sp, #16
	mov	w1, #32
	bl	_bzero
	add	x8, sp, #15
	stp	x20, x8, [sp, #40]
	mov	w22, #1
	str	w22, [sp, #56]
	str	x19, [sp, #16]
	add	x8, sp, #48
	str	x8, [sp, #32]
	str	w22, [sp, #24]
	add	x1, sp, #16
	mov	x0, x21
	mov	w2, #0
	bl	_sendmsg
	mov	x19, x0
	cmn	w0, #1
	cset	w20, ne
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ATF_REQUIRE_MSG
	cmp	w19, #1
	cset	w0, eq
	str	x22, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_ATF_REQUIRE_MSG
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sendmsg failed: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"sendmsg: %zd bytes sent; expected %zu"

	.no_dead_strip	_send_cmsg
.subsections_via_symbols
