	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_recvmsg
_bcm_recvmsg:                           ## @bcm_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	(%rsi), %r14
	movl	$0, -44(%rbp)
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %edx
	andl	%r8d, %edx
	notl	%esi
	andl	%r8d, %esi
	movl	$0, (%r15)
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	callq	_skb_recv_datagram
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%rax), %rax
	cmpq	%r12, %rax
	cmovbq	%rax, %r12
	movl	16(%r15), %edi
	movl	12(%rbx), %esi
	movq	%r12, %rdx
	callq	_memcpy_toiovec
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_sock_recv_ts_and_drops
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movl	$4, (%r15)
	movl	8(%rbx), %esi
	movl	$4, %edx
	callq	_memcpy
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_skb_free_datagram
	jmp	LBB0_7
LBB0_1:
	movl	-44(%rbp), %r12d
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %r13d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_skb_free_datagram
	movl	%r13d, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %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
	.no_dead_strip	_bcm_recvmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_recvmsg
_bcm_recvmsg:                           ; @bcm_recvmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x3
	mov	x20, x2
	ldr	x19, [x1]
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _MSG_DONTWAIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w2, w8, w4
	bic	w1, w4, w8
	str	wzr, [x20]
	add	x3, sp, #12
	mov	x0, x19
	bl	_skb_recv_datagram
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0]
	cmp	x8, x21
	csel	x21, x8, x21, lo
	ldr	w0, [x20, #16]
	ldr	w1, [x22, #12]
	mov	x2, x21
	bl	_memcpy_toiovec
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_sock_recv_ts_and_drops
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #4
	str	w8, [x20]
	ldr	w1, [x22, #8]
	mov	w2, #4
	bl	_memcpy
LBB0_4:
	mov	x0, x19
	mov	x1, x22
	bl	_skb_free_datagram
	b	LBB0_7
LBB0_5:
	ldr	w21, [sp, #12]
	b	LBB0_7
LBB0_6:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_skb_free_datagram
	mov	x21, x23
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.no_dead_strip	_bcm_recvmsg
.subsections_via_symbols
