	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_recvmmsg                       ## -- Begin function recvmmsg
	.p2align	4, 0x90
_recvmmsg:                              ## @recvmmsg
	.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	$40, %rsp
	.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, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%r8, %r8
	je	LBB0_7
## %bb.1:
	movl	%r15d, -64(%rbp)
	movl	$0, -60(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	orw	(%rax), %cx
	movswl	%cx, %eax
	movq	_POLLRDBAND@GOTPCREL(%rip), %rcx
	movswl	(%rcx), %ecx
	movq	_POLLPRI@GOTPCREL(%rip), %rdx
	movswl	(%rdx), %r14d
	orl	%ecx, %r14d
	orl	%eax, %r14d
	movw	%r14w, -56(%rbp)
	leaq	-64(%rbp), %rdi
	movl	$1, %esi
	movq	%r8, %rdx
	xorl	%ecx, %ecx
	callq	_ppoll
	movl	%eax, %ebx
	incl	%eax
	cmpl	$2, %eax
	jb	LBB0_17
## %bb.2:
	movl	-60(%rbp), %eax
	movq	_POLLNVAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_EBADF@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %ebx
	jmp	LBB0_17
LBB0_5:
	testl	%r14d, %eax
	je	LBB0_6
LBB0_7:
	leaq	4(%r13), %rsi
	movl	%r15d, %edi
	movl	%r12d, %edx
	callq	___sys_recvmsg
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, (%r13)
	movq	_MSG_WAITFORONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	%r12d, %r14d
	je	LBB0_11
## %bb.10:
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_11:
	movl	$1, %ebx
	cmpq	$2, -72(%rbp)                   ## 8-byte Folded Reload
	jb	LBB0_17
## %bb.12:
	orl	%r12d, %r14d
	addq	$12, %r13
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	negq	%r12
	movq	$-1, %rbx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	___sys_recvmsg
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%eax, -4(%r13)
	decq	%rbx
	addq	$8, %r13
	cmpq	%rbx, %r12
	jne	LBB0_13
## %bb.16:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	jmp	LBB0_17
LBB0_8:
	movl	$-1, %ebx
	jmp	LBB0_17
LBB0_14:
	negl	%ebx
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLIN,2,1                     ## @POLLIN
	.comm	_POLLRDNORM,2,1                 ## @POLLRDNORM
	.comm	_POLLRDBAND,2,1                 ## @POLLRDBAND
	.comm	_POLLPRI,2,1                    ## @POLLPRI
	.comm	_POLLNVAL,4,2                   ## @POLLNVAL
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_errno,4,2                      ## @errno
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_MSG_WAITFORONE,4,2             ## @MSG_WAITFORONE
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_recvmmsg                       ; -- Begin function recvmmsg
	.p2align	2
_recvmmsg:                              ; @recvmmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	x4, LBB0_6
; %bb.1:
	stp	w20, wzr, [sp, #8]
Lloh3:
	adrp	x8, _POLLIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh5:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w8, w9, w8
	sxth	w8, w8
Lloh7:
	adrp	x9, _POLLRDBAND@GOTPAGE
Lloh8:
	ldr	x9, [x9, _POLLRDBAND@GOTPAGEOFF]
Lloh9:
	ldrsh	w9, [x9]
	orr	w8, w8, w9
Lloh10:
	adrp	x9, _POLLPRI@GOTPAGE
Lloh11:
	ldr	x9, [x9, _POLLPRI@GOTPAGEOFF]
Lloh12:
	ldrsh	w9, [x9]
	orr	w24, w8, w9
	strh	w24, [sp, #16]
	add	x0, sp, #8
	mov	w1, #1
	mov	x2, x4
	mov	x3, #0
	bl	_ppoll
	mov	x23, x0
	add	w8, w0, #1
	cmp	w8, #2
	b.lo	LBB0_14
; %bb.2:
	ldr	w8, [sp, #12]
Lloh13:
	adrp	x9, _POLLNVAL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _POLLNVAL@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh16:
	adrp	x8, _EBADF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _errno@GOTPAGE
Lloh19:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
	mov	w23, #-1
	b	LBB0_14
LBB0_5:
	tst	w8, w24
	b.eq	LBB0_16
LBB0_6:
	add	x1, x21, #4
	mov	x0, x20
	mov	x2, x22
	bl	___sys_recvmsg
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.7:
	str	w0, [x21]
Lloh21:
	adrp	x8, _MSG_WAITFORONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_WAITFORONE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _MSG_DONTWAIT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w8, w22
	csel	w8, wzr, w9, eq
	cmp	x19, #2
	b.lo	LBB0_13
; %bb.8:
	orr	w22, w8, w22
	add	x21, x21, #12
	mov	w23, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	___sys_recvmsg
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	stur	w0, [x21, #-4]
	add	x23, x23, #1
	add	x21, x21, #8
	cmp	x19, x23
	b.ne	LBB0_9
; %bb.11:
	mov	x23, x19
	b	LBB0_14
LBB0_12:
	mov	w23, #-1
	b	LBB0_14
LBB0_13:
	mov	w23, #1
LBB0_14:
	ldr	x8, [sp, #24]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
Lloh30:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_4
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLIN,2,1                     ; @POLLIN
	.comm	_POLLRDNORM,2,1                 ; @POLLRDNORM
	.comm	_POLLRDBAND,2,1                 ; @POLLRDBAND
	.comm	_POLLPRI,2,1                    ; @POLLPRI
	.comm	_POLLNVAL,4,2                   ; @POLLNVAL
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_errno,4,2                      ; @errno
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_MSG_WAITFORONE,4,2             ; @MSG_WAITFORONE
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
.subsections_via_symbols
