	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_cmsg
_recv_cmsg:                             ## @recv_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movb	$0, -41(%rbp)
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_bzero
	leaq	-41(%rbp), %rax
	movq	%rax, -96(%rbp)
	movl	$1, -88(%rbp)
	movq	%rbx, -80(%rbp)
	movq	%r15, -72(%rbp)
	leaq	-96(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	$1, -64(%rbp)
	movl	%r12d, %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_recvmsg
	movl	%eax, %r15d
	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, %r15d
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %ecx
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	movl	-60(%rbp), %edx
	movl	%edx, %eax
	notl	%eax
	xorl	%edi, %edi
	testl	%eax, %r14d
	sete	%dil
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recvmsg failed: %s"

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

L_.str.2:                               ## @.str.2
	.asciz	"recvmsg: got flags %#x; expected %#x"

	.no_dead_strip	_recv_cmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recv_cmsg
_recv_cmsg:                             ; @recv_cmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	strb	wzr, [sp, #15]
	add	x0, sp, #16
	mov	w1, #32
	bl	_bzero
	add	x8, sp, #15
	str	x8, [sp, #48]
	mov	w23, #1
	str	w23, [sp, #56]
	stp	x21, x20, [sp, #16]
	add	x8, sp, #48
	str	x8, [sp, #40]
	str	w23, [sp, #32]
	add	x1, sp, #16
	mov	x0, x22
	mov	w2, #0
	bl	_recvmsg
	mov	x20, x0
	cmn	w0, #1
	cset	w21, 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, x21
	bl	_ATF_REQUIRE_MSG
	cmp	w20, #1
	cset	w0, eq
	str	x23, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_ATF_REQUIRE_MSG
	ldr	w2, [sp, #36]
	bics	wzr, w19, w2
	cset	w0, eq
	str	x19, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.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	"recvmsg failed: %s"

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

l_.str.2:                               ; @.str.2
	.asciz	"recvmsg: got flags %#x; expected %#x"

	.no_dead_strip	_recv_cmsg
.subsections_via_symbols
