	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_cfg
_parse_cfg:                             ## @parse_cfg
	.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	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	(%rsi), %ecx
	cmpl	$-1, %ecx
	je	LBB0_1
## %bb.3:
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.4:
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_MAX_FSIZE@GOTPCREL(%rip), %rax
	movq	_MAX_OHSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addl	(%rax), %edi
	shll	$2, %edi
	movq	_M_NG_PIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_malloc
	movq	%rax, (%r14)
	movl	(%r13), %ecx
LBB0_6:
	movl	%ecx, (%r12)
	movq	_MAX_FSIZE@GOTPCREL(%rip), %rcx
	movq	_MAX_OHSIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	addl	(%rcx), %esi
	jle	LBB0_9
## %bb.7:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, (%rax,%rsi,4)
	incq	%rsi
	movslq	(%rcx), %rdi
	movslq	(%rdx), %rbx
	addq	%rdi, %rbx
	cmpq	%rbx, %rsi
	jl	LBB0_8
	jmp	LBB0_9
LBB0_1:
	movl	$0, (%r12)
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.2:
	movq	_M_NG_PIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
	movq	$0, (%r14)
LBB0_9:
	movl	4(%r13), %eax
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.11:
	cmpl	$5, %eax
	jge	LBB0_12
	jmp	LBB0_13
LBB0_10:
	xorl	%eax, %eax
LBB0_12:
	movl	%eax, 4(%r12)
LBB0_13:
	movl	8(%r13), %eax
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.15:
	cmpl	$5, %eax
	jge	LBB0_16
	jmp	LBB0_17
LBB0_14:
	xorl	%eax, %eax
LBB0_16:
	movl	%eax, 8(%r12)
LBB0_17:
	movl	12(%r13), %eax
	cmpl	$-1, %eax
	je	LBB0_18
## %bb.19:
	leal	-1(%rax), %ecx
	cmpl	$49, %ecx
	jbe	LBB0_20
## %bb.21:
	cmpl	$0, 16(%r13)
	je	LBB0_23
LBB0_22:
	movq	$1, 16(%r12)
	movl	$0, 24(%r12)
LBB0_23:
	cmpl	$0, 20(%r13)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	je	LBB0_25
## %bb.24:
	movq	%rax, 16(%r12)
	movl	$0, 24(%r12)
LBB0_25:
	movl	24(%r13), %ecx
	testl	%ecx, %ecx
	je	LBB0_27
## %bb.26:
	movq	$0, 16(%r12)
	cmpl	$32, %ecx
	movl	$2048, %edx                     ## imm = 0x800
	cmovgel	%ecx, %edx
	movl	%edx, 24(%r12)
LBB0_27:
	cmpl	$0, 28(%r13)
	je	LBB0_29
## %bb.28:
	movq	$1, 28(%r12)
LBB0_29:
	cmpl	$0, 32(%r13)
	je	LBB0_31
## %bb.30:
	movq	%rax, 28(%r12)
LBB0_31:
	movl	36(%r13), %eax
	cmpl	$-1, %eax
	je	LBB0_32
## %bb.33:
	leal	-100(%rax), %ecx
	cmpl	$999999901, %ecx                ## imm = 0x3B9AC99D
	jae	LBB0_34
## %bb.35:
	movl	%eax, 36(%r12)
	jmp	LBB0_36
LBB0_18:
	xorl	%eax, %eax
LBB0_20:
	movl	%eax, 12(%r12)
	cmpl	$0, 16(%r13)
	jne	LBB0_22
	jmp	LBB0_23
LBB0_32:
	movl	$0, 36(%r12)
	movq	$1, 16(%r12)
	movl	$0, 24(%r12)
	xorl	%eax, %eax
	jmp	LBB0_36
LBB0_34:
	movl	36(%r12), %eax
LBB0_36:
	orl	(%r15), %eax
	orl	12(%r12), %eax
	xorl	%ecx, %ecx
	orl	(%r12), %eax
	sete	%cl
	movl	%ecx, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_NG_PIPE,4,2                  ## @M_NG_PIPE
	.comm	_MAX_FSIZE,4,2                  ## @MAX_FSIZE
	.comm	_MAX_OHSIZE,4,2                 ## @MAX_OHSIZE
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.no_dead_strip	_parse_cfg
.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 parse_cfg
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
lCPI0_1:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_parse_cfg:                             ; @parse_cfg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w8, [x1]
	cmn	w8, #1
	b.eq	LBB0_7
; %bb.1:
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	ldr	x0, [x19]
Lloh0:
	adrp	x23, _MAX_FSIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAX_FSIZE@GOTPAGEOFF]
Lloh2:
	adrp	x24, _MAX_OHSIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MAX_OHSIZE@GOTPAGEOFF]
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x23]
	ldr	w9, [x24]
	add	w8, w9, w8
	lsl	w0, w8, #2
Lloh4:
	adrp	x8, _M_NG_PIPE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_NG_PIPE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_malloc
	str	x0, [x19]
	ldr	w8, [x22]
LBB0_4:
	str	w8, [x20]
	ldr	w8, [x23]
	ldr	w9, [x24]
	add	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x8, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [x0, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x9, [x23]
	ldrsw	x10, [x24]
	add	x9, x10, x9
	cmp	x8, x9
	b.lt	LBB0_6
	b	LBB0_9
LBB0_7:
	str	wzr, [x20]
	ldr	x0, [x19]
	cbz	x0, LBB0_9
; %bb.8:
Lloh10:
	adrp	x8, _M_NG_PIPE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _M_NG_PIPE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_free
	str	xzr, [x19]
LBB0_9:
	ldr	w8, [x22, #4]
	cmn	w8, #1
	b.eq	LBB0_11
; %bb.10:
	cmp	w8, #5
	b.ge	LBB0_12
	b	LBB0_13
LBB0_11:
	mov	w8, #0
LBB0_12:
	str	w8, [x20, #4]
LBB0_13:
	ldr	w8, [x22, #8]
	cmn	w8, #1
	b.eq	LBB0_15
; %bb.14:
	cmp	w8, #5
	b.ge	LBB0_16
	b	LBB0_17
LBB0_15:
	mov	w8, #0
LBB0_16:
	str	w8, [x20, #8]
LBB0_17:
	ldr	w8, [x22, #12]
	cmn	w8, #1
	b.eq	LBB0_19
; %bb.18:
	sub	w9, w8, #1
	cmp	w9, #49
	b.ls	LBB0_20
	b	LBB0_21
LBB0_19:
	mov	w8, #0
LBB0_20:
	str	w8, [x20, #12]
LBB0_21:
	ldr	w9, [x22, #16]
	adrp	x8, lCPI0_0@PAGE
	cbz	w9, LBB0_23
; %bb.22:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20, #16]
	str	wzr, [x20, #24]
LBB0_23:
	ldr	w10, [x22, #20]
	adrp	x9, lCPI0_1@PAGE
	cbz	w10, LBB0_25
; %bb.24:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	str	d0, [x20, #16]
	str	wzr, [x20, #24]
LBB0_25:
	ldr	w10, [x22, #24]
	cbz	w10, LBB0_27
; %bb.26:
	str	xzr, [x20, #16]
	mov	w11, #2048
	cmp	w10, #31
	csel	w10, w10, w11, gt
	str	w10, [x20, #24]
LBB0_27:
	ldr	w10, [x22, #28]
	cbz	w10, LBB0_29
; %bb.28:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x20, #28]
LBB0_29:
	ldr	w10, [x22, #32]
	cbz	w10, LBB0_31
; %bb.30:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	stur	d0, [x20, #28]
LBB0_31:
	ldr	w9, [x22, #36]
	cmn	w9, #1
	b.eq	LBB0_34
; %bb.32:
	sub	w8, w9, #100
	mov	w10, #51613
	movk	w10, #15258, lsl #16
	cmp	w8, w10
	b.hs	LBB0_35
; %bb.33:
	str	w9, [x20, #36]
	b	LBB0_36
LBB0_34:
	mov	w9, #0
	str	wzr, [x20, #36]
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20, #16]
	str	wzr, [x20, #24]
	b	LBB0_36
LBB0_35:
	ldr	w9, [x20, #36]
LBB0_36:
	ldr	w8, [x21]
	orr	w8, w8, w9
	ldr	w9, [x20, #12]
	orr	w8, w8, w9
	ldr	w9, [x20]
	orr	w8, w8, w9
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19, #8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_M_NG_PIPE,4,2                  ; @M_NG_PIPE
	.comm	_MAX_FSIZE,4,2                  ; @MAX_FSIZE
	.comm	_MAX_OHSIZE,4,2                 ; @MAX_OHSIZE
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.no_dead_strip	_parse_cfg
.subsections_via_symbols
