	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nbns_rq_prepare                ## -- Begin function nbns_rq_prepare
	.p2align	4, 0x90
_nbns_rq_prepare:                       ## @nbns_rq_prepare
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	56(%rdi), %r15
	addq	$48, %rdi
	movq	_NBDG_MAXSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mb_init
	testl	%eax, %eax
	je	LBB0_1
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	40(%rbx), %rcx
	movq	_INADDR_BROADCAST@GOTPCREL(%rip), %rdx
	movq	_NBNS_NMFLAG_BCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.2:
	orl	%eax, (%rbx)
	movq	_nb_iflist@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	_nb_iflist@GOTPCREL(%rip), %rdi
	movl	$100, %esi
	callq	_nb_enum_if
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_5
LBB0_4:
	notl	%eax
	andl	%eax, (%rbx)
LBB0_5:
	leaq	52(%rbx), %r14
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_mb_put_uint16be
	movl	(%rbx), %eax
	movl	8(%rbx), %ecx
	andl	$31, %ecx
	shrl	$4, %eax
	andl	$7, %eax
	leal	(%rax,%rcx,8), %esi
	movq	%r14, %rdi
	callq	_mb_put_uint8
	movl	(%rbx), %eax
	shll	$4, %eax
	movzbl	%al, %esi
	movq	%r14, %rdi
	callq	_mb_put_uint8
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_mb_put_uint16be
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	callq	_mb_put_uint16be
	movl	20(%rbx), %esi
	movq	%r14, %rdi
	callq	_mb_put_uint16be
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	_mb_put_uint16be
	movl	12(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$2, %eax
	jl	LBB0_8
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_8:
	movl	36(%rbx), %edi
	callq	_nb_name_len
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mb_fit
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movl	36(%rbx), %edi
	movq	-32(%rbp), %rsi
	callq	_nb_name_encode
	movl	28(%rbx), %esi
	movq	%r14, %rdi
	callq	_mb_put_uint16be
	movl	32(%rbx), %esi
	movq	%r14, %rdi
	callq	_mb_put_uint16be
LBB0_10:
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	_m_lineup
	xorl	%eax, %eax
	cmpl	$0, (%r15)
	jne	LBB0_12
## %bb.11:
	movl	$1, (%r15)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_NBDG_MAXSIZE,4,2               ## @NBDG_MAXSIZE
	.comm	_INADDR_BROADCAST,8,3           ## @INADDR_BROADCAST
	.comm	_NBNS_NMFLAG_BCAST,4,2          ## @NBNS_NMFLAG_BCAST
	.comm	_nb_iflist,8,3                  ## @nb_iflist
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nbns_rq_prepare                ; -- Begin function nbns_rq_prepare
	.p2align	2
_nbns_rq_prepare:                       ; @nbns_rq_prepare
	.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
	ldr	x21, [x0, #56]
	add	x0, x0, #48
Lloh0:
	adrp	x8, _NBDG_MAXSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NBDG_MAXSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mb_init
	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	x8, _INADDR_BROADCAST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INADDR_BROADCAST@GOTPAGEOFF]
	ldr	x9, [x19, #40]
Lloh5:
	ldr	x10, [x8]
Lloh6:
	adrp	x8, _NBNS_NMFLAG_BCAST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NBNS_NMFLAG_BCAST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.3:
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh9:
	adrp	x8, _nb_iflist@GOTPAGE
Lloh10:
	ldr	x8, [x8, _nb_iflist@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbnz	x8, LBB0_6
; %bb.4:
Lloh12:
	adrp	x0, _nb_iflist@GOTPAGE
Lloh13:
	ldr	x0, [x0, _nb_iflist@GOTPAGEOFF]
	mov	w1, #100
	bl	_nb_enum_if
	cbnz	w0, LBB0_1
	b	LBB0_6
LBB0_5:
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_6:
	add	x20, x19, #52
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_mb_put_uint16be
	ldr	w8, [x19, #8]
	ubfiz	w1, w8, #3, #5
	ldr	w8, [x19]
	bfxil	w1, w8, #4, #3
	mov	x0, x20
	bl	_mb_put_uint8
	ldr	w8, [x19]
	ubfiz	w1, w8, #4, #4
	mov	x0, x20
	bl	_mb_put_uint8
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_mb_put_uint16be
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_mb_put_uint16be
	ldr	w1, [x19, #20]
	mov	x0, x20
	bl	_mb_put_uint16be
	ldr	w1, [x19, #24]
	mov	x0, x20
	bl	_mb_put_uint16be
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_11
; %bb.7:
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.8:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	b	LBB0_1
LBB0_9:
	ldr	w0, [x19, #36]
	bl	_nb_name_len
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	bl	_mb_fit
	cbnz	w0, LBB0_1
; %bb.10:
	ldr	w0, [x19, #36]
	ldr	x1, [sp, #8]
	bl	_nb_name_encode
	ldr	w1, [x19, #28]
	mov	x0, x20
	bl	_mb_put_uint16be
	ldr	w1, [x19, #32]
	mov	x0, x20
	bl	_mb_put_uint16be
LBB0_11:
	ldr	w0, [x20]
	mov	x1, x20
	bl	_m_lineup
	ldr	w8, [x21]
	cbz	w8, LBB0_13
; %bb.12:
	mov	w0, #0
	b	LBB0_1
LBB0_13:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NBDG_MAXSIZE,4,2               ; @NBDG_MAXSIZE
	.comm	_INADDR_BROADCAST,8,3           ; @INADDR_BROADCAST
	.comm	_NBNS_NMFLAG_BCAST,4,2          ; @NBNS_NMFLAG_BCAST
	.comm	_nb_iflist,8,3                  ; @nb_iflist
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
