	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nbns_rq                        ## -- Begin function nbns_rq
	.p2align	4, 0x90
_nbns_rq:                               ## @nbns_rq
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_nb_iflist@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%rdi)
	callq	_nbns_rq_opensocket
	testl	%eax, %eax
	je	LBB0_1
LBB0_18:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %r14
	movq	_NBNS_NMFLAG_BCAST@GOTPCREL(%rip), %r15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r12, %rdi
	callq	_nbns_rq_send
	testl	%eax, %eax
	jne	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-3, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_nbns_rq_recv
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpl	(%r14), %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r12, %rdi
	callq	_nbns_rq_send
	incl	%ebx
	testl	%eax, %eax
	je	LBB0_5
	jmp	LBB0_18
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %ecx
	testl	%ecx, (%r12)
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, 56(%r12)
	movl	52(%r12), %edi
	callq	_close
	movq	%r12, %rdi
	callq	_nbns_rq_opensocket
	testl	%eax, %eax
	je	LBB0_2
	jmp	LBB0_18
LBB0_12:
	cmpl	$11, 48(%r12)
	jg	LBB0_13
## %bb.19:
	movq	_NBERR_INVALIDRESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_NBERROR                        ## TAILCALL
LBB0_13:
	leaq	48(%r12), %r14
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mb_get_uint16be
	movq	-48(%rbp), %rax
	cmpq	8(%r12), %rax
	jne	LBB0_14
## %bb.15:
	leaq	-36(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mb_get_uint8
	movl	-36(%rbp), %eax
	shll	$4, %eax
	andl	$112, %eax
	movl	%eax, 16(%r12)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mb_get_uint8
	movl	-36(%rbp), %edi
	movl	%edi, %eax
	shrl	$4, %eax
	andl	$15, %eax
	orl	%eax, 16(%r12)
	andl	$15, %edi
	movl	%edi, 20(%r12)
	je	LBB0_17
## %bb.16:
	callq	_NBERROR
	jmp	LBB0_18
LBB0_14:
	movq	_NBERR_INVALIDRESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NBERROR
	jmp	LBB0_18
LBB0_17:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mb_get_uint16be
	leaq	24(%r12), %rsi
	movq	%r14, %rdi
	callq	_mb_get_uint16be
	leaq	32(%r12), %rsi
	movq	%r14, %rdi
	callq	_mb_get_uint16be
	addq	$40, %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mb_get_uint16be
	xorl	%eax, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_nb_iflist,8,3                  ## @nb_iflist
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_NBNS_NMFLAG_BCAST,4,2          ## @NBNS_NMFLAG_BCAST
	.comm	_NBERR_INVALIDRESPONSE,4,2      ## @NBERR_INVALIDRESPONSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nbns_rq                        ; -- Begin function nbns_rq
	.p2align	2
_nbns_rq:                               ; @nbns_rq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _nb_iflist@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nb_iflist@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x0, #56]
	bl	_nbns_rq_opensocket
	cbz	w0, LBB0_2
LBB0_1:
	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
	add	sp, sp, #64
	ret
LBB0_2:
Lloh3:
	adrp	x20, _ETIMEDOUT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _ETIMEDOUT@GOTPAGEOFF]
Lloh5:
	adrp	x21, _NBNS_NMFLAG_BCAST@GOTPAGE
Lloh6:
	ldr	x21, [x21, _NBNS_NMFLAG_BCAST@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_nbns_rq_send
	cbnz	w0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_nbns_rq_recv
	cbz	w0, LBB0_18
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_nbns_rq_send
	cbnz	w0, LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_nbns_rq_recv
	cbz	w0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_nbns_rq_send
	cbnz	w0, LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_nbns_rq_recv
	cbz	w0, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_nbns_rq_send
	cbnz	w0, LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_nbns_rq_recv
	cbz	w0, LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_1
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	str	x8, [x19, #56]
	ldr	w0, [x19, #52]
	bl	_close
	mov	x0, x19
	bl	_nbns_rq_opensocket
	cbz	w0, LBB0_3
	b	LBB0_1
LBB0_18:
	mov	x20, x19
	ldr	w8, [x20, #48]!
	cmp	w8, #11
	b.gt	LBB0_20
; %bb.19:
Lloh7:
	adrp	x8, _NBERR_INVALIDRESPONSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NBERR_INVALIDRESPONSE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	b	_NBERROR
LBB0_20:
	add	x1, sp, #8
	mov	x0, x20
	bl	_mb_get_uint16be
	ldr	x8, [sp, #8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.21:
	add	x1, sp, #4
	mov	x0, x20
	bl	_mb_get_uint8
	ldr	w8, [sp, #4]
	ubfiz	w8, w8, #4, #3
	str	w8, [x19, #16]
	add	x1, sp, #4
	mov	x0, x20
	bl	_mb_get_uint8
	ldr	w8, [sp, #4]
	ubfx	w9, w8, #4, #4
	ldr	w10, [x19, #16]
	orr	w9, w9, w10
	ands	w0, w8, #0xf
	stp	w9, w0, [x19, #16]
	b.eq	LBB0_24
; %bb.22:
	bl	_NBERROR
	b	LBB0_1
LBB0_23:
Lloh10:
	adrp	x8, _NBERR_INVALIDRESPONSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NBERR_INVALIDRESPONSE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_NBERROR
	b	LBB0_1
LBB0_24:
	add	x1, sp, #8
	mov	x0, x20
	bl	_mb_get_uint16be
	add	x1, x19, #24
	mov	x0, x20
	bl	_mb_get_uint16be
	add	x1, x19, #32
	mov	x0, x20
	bl	_mb_get_uint16be
	add	x1, x19, #40
	mov	x0, x20
	bl	_mb_get_uint16be
	mov	w0, #0
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_nb_iflist,8,3                  ; @nb_iflist
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_NBNS_NMFLAG_BCAST,4,2          ; @NBNS_NMFLAG_BCAST
	.comm	_NBERR_INVALIDRESPONSE,4,2      ; @NBERR_INVALIDRESPONSE
.subsections_via_symbols
