	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_rfc1490_rcvmsg
_ng_rfc1490_rcvmsg:                     ## @ng_rfc1490_rcvmsg
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %r12d
	callq	_NG_NODE_PRIVATE
	movq	%rax, %r15
	movl	%r14d, %edi
	callq	_NGI_GET_MSG
	movq	_ng_rfc1490_encaps@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpl	$0, 4(%rbx)
	jne	LBB0_1
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_NG_RESPOND_MSG
	callq	_NG_FREE_MSG
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 12(%rbx)
	leaq	8(%rbx), %rbx
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_strlen
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %edi
	xorl	%edx, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:
	cmpl	$0, 4(%rbx)
	je	LBB0_4
## %bb.6:
	movq	%rbx, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_NGM_RFC1490_COOKIE,8,3         ## @NGM_RFC1490_COOKIE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ng_rfc1490_encaps,8,3          ## @ng_rfc1490_encaps
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ng_rfc1490_rcvmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_rfc1490_rcvmsg
_ng_rfc1490_rcvmsg:                     ; @ng_rfc1490_rcvmsg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	bl	_NG_NODE_PRIVATE
	mov	x21, x0
	mov	x0, x19
	bl	_NGI_GET_MSG
Lloh0:
	adrp	x8, _ng_rfc1490_encaps@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ng_rfc1490_encaps@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	ldr	w8, [x23, #4]
	cbnz	w8, LBB0_4
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
LBB0_2:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	mov	x3, #0
	bl	_NG_RESPOND_MSG
	bl	_NG_FREE_MSG
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23, #12]
	add	x23, x23, #8
	cbz	w8, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_strlen
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23]
	mov	x2, #0
	bl	_strncmp
	cbnz	w0, LBB0_3
; %bb.6:
	ldr	w8, [x23, #4]
	cbz	w8, LBB0_1
; %bb.7:
	mov	w22, #0
	str	x23, [x21]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NGM_RFC1490_COOKIE,8,3         ; @NGM_RFC1490_COOKIE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ng_rfc1490_encaps,8,3          ; @ng_rfc1490_encaps
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ng_rfc1490_rcvmsg
.subsections_via_symbols
