	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_ksocket_parse
_ng_ksocket_parse:                      ## @ng_ksocket_parse
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	8(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movl	%edx, %r15d
	movq	%rdi, %r14
	xorl	%r13d, %r13d
	movq	%rdi, %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	24(%rbx), %rsi
	addq	$16, %rbx
	testq	%rsi, %rsi
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, (%rbx)
	jne	LBB0_5
## %bb.4:
	movl	%r13d, %eax
	shlq	$4, %rax
	movl	4(%r14,%rax), %eax
	jmp	LBB0_9
LBB0_6:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, %rcx
	testl	%ecx, %ecx
	js	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rdx
	xorl	%eax, %eax
	cmpb	(%rdx), %al
	sbbl	%eax, %eax
	orl	%ecx, %eax
	jmp	LBB0_9
LBB0_7:
	movl	$-1, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ng_ksocket_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_ksocket_parse
_ng_ksocket_parse:                      ; @ng_ksocket_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x1, [x0, #8]
	cbz	x1, LBB0_6
; %bb.1:
	mov	x21, x2
	mov	x20, x0
	mov	x22, #0
	mov	x23, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldr	x1, [x23, #24]
	add	x23, x23, #16
	cbz	x1, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_strcmp
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.5:
	add	x8, x20, w22, uxtw #4
	ldr	w0, [x8, #4]
	b	LBB0_9
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #10
	bl	_strtoul
	tbnz	w0, #31, LBB0_8
; %bb.7:
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cmp	w8, #0
	csinv	w0, w0, wzr, eq
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ng_ksocket_parse
.subsections_via_symbols
