	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_ns
_get_ns:                                ## @get_ns
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	%rsi, %r12
	movl	%edi, %r15d
	movq	_NS_MAXMSG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_ns_t_ns@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r9
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%r14d, %edx
	movq	%r13, %r8
	callq	_do_query
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_p_class
	movslq	%ebx, %rdi
LBB0_6:
	callq	_DPRINTF
	movl	$-1, %ebx
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_8
LBB0_4:
	movq	_ns_s_an@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	movq	%r12, %rcx
	movl	%r14d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_save_ns
	xorl	%ebx, %ebx
	testq	%rax, %rax
	js	LBB0_5
LBB0_7:
	movq	%r13, %rdi
	callq	_free
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r14d, %edi
	callq	_p_class
	movslq	%eax, %rdi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_NS_MAXMSG,4,2                  ## @NS_MAXMSG
	.comm	_ns_t_ns,4,2                    ## @ns_t_ns
	.comm	_ns_s_an,4,2                    ## @ns_s_an
	.no_dead_strip	_get_ns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_ns
_get_ns:                                ; @get_ns
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _NS_MAXMSG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NS_MAXMSG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _ns_t_ns@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ns_t_ns@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x5, sp, #12
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	mov	x4, x19
	bl	_do_query
	cbz	w0, LBB0_5
; %bb.2:
	mov	x25, x0
	mov	x0, x20
	bl	_p_class
	sxtw	x0, w25
LBB0_3:
	bl	_DPRINTF
	mov	w20, #-1
	b	LBB0_7
LBB0_4:
	mov	w20, #-1
	b	LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _ns_s_an@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ns_s_an@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x24
	mov	x3, x23
	mov	x4, x20
	mov	x5, x22
	mov	x6, x21
	bl	_save_ns
	tbnz	x0, #63, LBB0_9
; %bb.6:
	mov	w20, #0
LBB0_7:
	mov	x0, x19
	bl	_free
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	mov	x0, x20
	bl	_p_class
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NS_MAXMSG,4,2                  ; @NS_MAXMSG
	.comm	_ns_t_ns,4,2                    ; @ns_t_ns
	.comm	_ns_s_an,4,2                    ; @ns_s_an
	.no_dead_strip	_get_ns
.subsections_via_symbols
