	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_win31_line_state
_parse_win31_line_state:                ## @parse_win31_line_state
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	24(%rdi), %edi
	callq	_get_line
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	_parse_win31_line_state.hkcr(%rip), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_strncmpW
	testq	%rax, %rax
	jne	LBB0_16
## %bb.3:
	movb	(%r15), %al
	xorl	%ebx, %ebx
	testb	%al, %al
	je	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_isspaceW
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	movzbl	(%r15,%rbx), %eax
	testb	%al, %al
	jne	LBB0_5
LBB0_7:
	movl	%ebx, %eax
	leaq	(%rax,%r15), %r12
	incq	%r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%r12), %ebx
	cmpb	$9, %bl
	je	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$32, %bl
	je	LBB0_17
## %bb.10:
	cmpb	$61, %bl
	jne	LBB0_12
## %bb.11:
	movb	(%r12), %bl
	jmp	LBB0_13
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_12:
	decq	%r12
LBB0_13:
	movb	$0, (%r15,%rax)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_open_key
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.15:
	xorl	%eax, %eax
	cmpb	$32, %bl
	sete	%al
	addq	%rax, %r12
	movq	$0, 16(%r14)
	movq	_REG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	%r12, (%r14)
	movq	%r12, %rdi
	callq	_lstrlenW
	incl	%eax
	movl	%eax, 8(%r14)
	movq	_SET_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_set_state
	movq	%r12, %r15
	jmp	LBB0_16
LBB0_14:
	movq	_STRING_OPEN_KEY_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_output_message
LBB0_16:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @parse_win31_line_state.hkcr
_parse_win31_line_state.hkcr:
	.ascii	"HKEY_CLASSES_ROOT"

	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_STRING_OPEN_KEY_FAILED,4,2     ## @STRING_OPEN_KEY_FAILED
	.comm	_REG_SZ,4,2                     ## @REG_SZ
	.comm	_SET_VALUE,4,2                  ## @SET_VALUE
	.no_dead_strip	_parse_win31_line_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_win31_line_state
_parse_win31_line_state:                ; @parse_win31_line_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	ldr	w0, [x0, #24]
	bl	_get_line
	mov	x19, x0
	cbz	x0, LBB0_17
; %bb.1:
Lloh0:
	adrp	x21, _parse_win31_line_state.hkcr@PAGE
Lloh1:
	add	x21, x21, _parse_win31_line_state.hkcr@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_strncmpW
	cbnz	x0, LBB0_17
; %bb.2:
	ldrb	w8, [x19]
	cbz	w8, LBB0_6
; %bb.3:
	mov	w21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isspaceW
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	ldrb	w8, [x19, w21, uxtw]
	cbnz	w8, LBB0_4
	b	LBB0_7
LBB0_6:
	mov	w21, #0
LBB0_7:
	mov	w8, w21
	add	x9, x8, x19
	add	x21, x9, #1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x21, x21, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w22, [x21, #-1]
	cmp	w22, #9
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w22, #32
	b.eq	LBB0_8
; %bb.11:
	cmp	w22, #61
	b.ne	LBB0_13
; %bb.12:
	ldrb	w22, [x21]
	b	LBB0_14
LBB0_13:
	sub	x21, x21, #1
LBB0_14:
	strb	wzr, [x19, x8]
	mov	x0, x20
	mov	x1, x19
	bl	_open_key
Lloh2:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.15:
	cmp	w22, #32
	cinc	x19, x21, eq
	str	xzr, [x20, #16]
Lloh5:
	adrp	x8, _REG_SZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_SZ@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	str	x19, [x20]
	mov	x0, x19
	bl	_lstrlenW
	add	w8, w0, #1
	str	w8, [x20, #8]
Lloh8:
	adrp	x8, _SET_VALUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SET_VALUE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_set_state
	b	LBB0_17
LBB0_16:
Lloh11:
	adrp	x8, _STRING_OPEN_KEY_FAILED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STRING_OPEN_KEY_FAILED@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_output_message
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
_parse_win31_line_state.hkcr:           ; @parse_win31_line_state.hkcr
	.ascii	"HKEY_CLASSES_ROOT"

	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_STRING_OPEN_KEY_FAILED,4,2     ; @STRING_OPEN_KEY_FAILED
	.comm	_REG_SZ,4,2                     ; @REG_SZ
	.comm	_SET_VALUE,4,2                  ; @SET_VALUE
	.no_dead_strip	_parse_win31_line_state
.subsections_via_symbols
