	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_h4_rcvmsg
_ng_h4_rcvmsg:                          ## @ng_h4_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
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movslq	%eax, %r15
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_NGI_GET_MSG
	movq	%r15, %rdi
	callq	_NG_H4_LOCK
	movl	8, %eax
	cmpl	$137, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$138, %eax
	jne	LBB0_13
## %bb.4:
	cmpl	$128, 16
	jne	LBB0_13
## %bb.5:
	movq	_NG_TEXTRESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_1:
	movq	_EHOSTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_16
LBB0_6:
	movl	$-129, %eax
	addl	16, %eax
	cmpl	$7, %eax
	ja	LBB0_13
## %bb.7:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	$4, %edx
LBB0_10:
	callq	_NG_MKRESPONSE
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ebx
LBB0_15:
	movq	%r15, %rdi
	callq	_NG_H4_UNLOCK
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_NG_RESPOND_MSG
	xorl	%edi, %edi
	callq	_NG_FREE_MSG
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movl	16(%r15), %edi
	callq	_NG_H4_STAT_RESET
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_8:
	leaq	20(%r15), %rdi
	callq	__IF_DRAIN
	movq	_NG_H4_W4_PKT_IND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 8(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_EHOSTDOWN,4,2                  ## @EHOSTDOWN
	.comm	_NG_TEXTRESPONSE,4,2            ## @NG_TEXTRESPONSE
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NG_H4_HOOK,8,3                 ## @NG_H4_HOOK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NG_H4_W4_PKT_IND,4,2           ## @NG_H4_W4_PKT_IND
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.no_dead_strip	_ng_h4_rcvmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ng_h4_rcvmsg
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ng_h4_rcvmsg:                          ; @ng_h4_rcvmsg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_NG_NODE_PRIVATE
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_5
; %bb.1:
	sxtw	x21, w0
	mov	x0, x19
	mov	x1, #0
	bl	_NGI_GET_MSG
	mov	x0, x21
	bl	_NG_H4_LOCK
	mov	w8, #8
	ldr	w8, [x8]
	cmp	w8, #137
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #138
	b.ne	LBB0_10
; %bb.3:
	mov	w8, #16
	ldr	w8, [x8]
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.4:
Lloh0:
	adrp	x8, _NG_TEXTRESPONSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NG_TEXTRESPONSE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, #0
	b	LBB0_9
LBB0_5:
Lloh6:
	adrp	x8, _EHOSTDOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EHOSTDOWN@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	b	LBB0_13
LBB0_6:
	mov	w8, #16
	ldr	w8, [x8]
	sub	w8, w8, #129
	cmp	w8, #7
	b.hi	LBB0_10
; %bb.7:
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
Lloh11:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, #0
	mov	w2, #4
LBB0_9:
	bl	_NG_MKRESPONSE
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w22, [x8]
LBB0_12:
	mov	x0, x21
	bl	_NG_H4_UNLOCK
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	mov	x3, #0
	bl	_NG_RESPOND_MSG
	mov	x0, #0
	bl	_NG_FREE_MSG
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh18:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_11
LBB0_15:
	ldr	w0, [x21, #16]
	bl	_NG_H4_STAT_RESET
	mov	w22, #0
	b	LBB0_12
LBB0_16:
	add	x0, x21, #20
	bl	__IF_DRAIN
	mov	w22, #0
Lloh20:
	adrp	x8, _NG_H4_W4_PKT_IND@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NG_H4_W4_PKT_IND@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x21, #4]
Lloh23:
	adrp	x8, lCPI0_0@PAGE
Lloh24:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21, #8]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdr	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
                                        ; -- End function
	.comm	_EHOSTDOWN,4,2                  ; @EHOSTDOWN
	.comm	_NG_TEXTRESPONSE,4,2            ; @NG_TEXTRESPONSE
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NG_H4_HOOK,8,3                 ; @NG_H4_HOOK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NG_H4_W4_PKT_IND,4,2           ; @NG_H4_W4_PKT_IND
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.no_dead_strip	_ng_h4_rcvmsg
.subsections_via_symbols
