	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unix_dgram_recvmsg
_unix_dgram_recvmsg:                    ## @unix_dgram_recvmsg
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r15
	callq	_kiocb_to_siocb
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_unix_sk
	movq	%rax, %rdx
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movl	%eax, -44(%rbp)
	movq	_MSG_OOB@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	jne	LBB0_24
## %bb.1:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	andl	%r14d, %r13d
	movq	$0, 16(%r12)
	movq	%rbx, %r15
	movq	%rdx, %rbx
	movq	%rdx, %rdi
	callq	_mutex_lock
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_skb_recv_datagram
	testq	%rax, %rax
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.7:
	movq	%rax, %r14
	movq	%r15, %r13
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_wake_up_interruptible_sync
	cmpq	$0, 8(%r12)
	movq	%r12, %r15
	je	LBB0_9
## %bb.8:
	movl	8(%r14), %esi
	movq	%r15, %rdi
	callq	_unix_copy_addr
LBB0_9:
	movq	(%r14), %rbx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %rbx
	movq	-104(%rbp), %r12                ## 8-byte Reload
	jb	LBB0_13
## %bb.10:
	jbe	LBB0_12
## %bb.11:
	movq	_MSG_TRUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
LBB0_12:
	movq	%rcx, %rbx
LBB0_13:
	movl	(%r15), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_skb_copy_datagram_iovec
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jne	LBB0_22
## %bb.14:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	(%r12), %r13
	testq	%r13, %r13
	jne	LBB0_16
## %bb.15:
	leaq	-112(%rbp), %rdi
	movq	%rdi, (%r12)
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r12), %r13
LBB0_16:
	movq	%r14, %rdi
	callq	_UNIXCB
	movq	%r14, %r15
	movq	%rdx, %r14
	shrq	$32, %r14
	movq	%r15, %rdi
	callq	_UNIXCB
	movq	%r13, %rdi
	movl	%r14d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_scm_set_cred
	movq	(%r12), %rdi
	movq	%r15, %rsi
	callq	_unix_set_secdata
	movq	_MSG_PEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	andl	%ebx, %r14d
	movq	%r15, %r13
	movq	%r15, %rdi
	callq	_UNIXCB
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.19:
	testq	%rax, %rax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r13, %r14
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	callq	_UNIXCB
	movq	%rax, %rdi
	callq	_scm_fp_dup
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_21
LBB0_2:
	movq	%r15, %rdi
	callq	_unix_state_lock
	movq	(%r15), %rax
	movq	_SOCK_SEQPACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movl	-44(%rbp), %eax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_6
## %bb.4:
	movq	_RCV_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_6
## %bb.5:
	movl	$0, -44(%rbp)
LBB0_6:
	movq	%r15, %rdi
	callq	_unix_state_unlock
	jmp	LBB0_23
LBB0_17:
	testq	%rax, %rax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r13, %r14
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_21
## %bb.18:
	movq	(%r12), %rdi
	movq	%r14, %rsi
	callq	_unix_detach_fds
LBB0_21:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, -44(%rbp)
	movq	(%r12), %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%ebx, %ecx
	callq	_scm_recv
LBB0_22:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_skb_free_datagram
LBB0_23:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	-44(%rbp), %eax
LBB0_24:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MSG_OOB,4,2                    ## @MSG_OOB
	.comm	_SOCK_SEQPACKET,8,3             ## @SOCK_SEQPACKET
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_RCV_SHUTDOWN,4,2               ## @RCV_SHUTDOWN
	.comm	_MSG_TRUNC,4,2                  ## @MSG_TRUNC
	.comm	_MSG_PEEK,4,2                   ## @MSG_PEEK
	.no_dead_strip	_unix_dgram_recvmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unix_dgram_recvmsg
_unix_dgram_recvmsg:                    ; @unix_dgram_recvmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x27, x3
	mov	x22, x2
	mov	x23, x1
	bl	_kiocb_to_siocb
	mov	x24, x0
	ldr	x20, [x23]
	mov	x0, x20
	bl	_unix_sk
	mov	x19, x0
Lloh0:
	adrp	x8, _MSG_DONTWAIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	neg	w0, w9
	str	w0, [sp, #4]
Lloh6:
	adrp	x9, _MSG_OOB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MSG_OOB@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w21
	b.ne	LBB0_24
; %bb.1:
	and	w25, w8, w21
	str	xzr, [x22, #16]
	mov	x0, x19
	bl	_mutex_lock
	add	x3, sp, #4
	mov	x0, x20
	mov	x1, x21
	mov	x2, x25
	bl	_skb_recv_datagram
	cbz	x0, LBB0_14
; %bb.2:
	mov	x25, x0
	add	x0, x19, #4
	bl	_wake_up_interruptible_sync
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x25, #8]
	mov	x0, x22
	bl	_unix_copy_addr
LBB0_4:
	ldr	x26, [x25]
	cmp	x26, x27
	b.lo	LBB0_8
; %bb.5:
	b.ls	LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _MSG_TRUNC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_TRUNC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x22, #4]
	orr	w8, w9, w8
	str	w8, [x22, #4]
LBB0_7:
	mov	x26, x27
LBB0_8:
	ldr	w2, [x22]
	mov	x0, x25
	mov	w1, #0
	mov	x3, x26
	bl	_skb_copy_datagram_iovec
	str	w0, [sp, #4]
	cbnz	w0, LBB0_22
; %bb.9:
	ldr	x27, [x24]
	cbnz	x27, LBB0_11
; %bb.10:
	add	x8, sp, #8
	str	x8, [x24]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x27, [x24]
LBB0_11:
	mov	x0, x25
	bl	_UNIXCB
	lsr	x28, x1, #32
	mov	x0, x25
	bl	_UNIXCB
	mov	x2, x1
	mov	x0, x27
	mov	x1, x28
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_scm_set_cred
	ldr	x0, [x24]
	mov	x1, x25
	bl	_unix_set_secdata
Lloh12:
	adrp	x8, _MSG_PEEK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_PEEK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w27, w8, w21
	mov	x0, x25
	bl	_UNIXCB
	cbz	w27, LBB0_19
; %bb.12:
	cbz	x0, LBB0_21
; %bb.13:
	mov	x0, x25
	bl	_UNIXCB
	bl	_scm_fp_dup
	ldr	x8, [x24]
	str	w0, [x8]
	b	LBB0_21
LBB0_14:
	mov	x0, x20
	bl	_unix_state_lock
	ldr	x8, [x20]
Lloh15:
	adrp	x9, _SOCK_SEQPACKET@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SOCK_SEQPACKET@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.15:
	ldr	w8, [sp, #4]
Lloh18:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmn	w8, w9
	b.ne	LBB0_18
; %bb.16:
	ldr	w8, [x20, #8]
Lloh21:
	adrp	x9, _RCV_SHUTDOWN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RCV_SHUTDOWN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
	str	wzr, [sp, #4]
LBB0_18:
	mov	x0, x20
	bl	_unix_state_unlock
	b	LBB0_23
LBB0_19:
	cbz	x0, LBB0_21
; %bb.20:
	ldr	x0, [x24]
	mov	x1, x25
	bl	_unix_detach_fds
LBB0_21:
	str	w26, [sp, #4]
	ldr	x2, [x24]
	mov	x0, x23
	mov	x1, x22
	mov	x3, x21
	bl	_scm_recv
LBB0_22:
	mov	x0, x20
	mov	x1, x25
	bl	_skb_free_datagram
LBB0_23:
	mov	x0, x19
	bl	_mutex_unlock
	ldr	w0, [sp, #4]
LBB0_24:
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MSG_OOB,4,2                    ; @MSG_OOB
	.comm	_SOCK_SEQPACKET,8,3             ; @SOCK_SEQPACKET
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_RCV_SHUTDOWN,4,2               ; @RCV_SHUTDOWN
	.comm	_MSG_TRUNC,4,2                  ; @MSG_TRUNC
	.comm	_MSG_PEEK,4,2                   ; @MSG_PEEK
	.no_dead_strip	_unix_dgram_recvmsg
.subsections_via_symbols
