	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function registry_read_formatopts
_registry_read_formatopts:              ## @registry_read_formatopts
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movl	%esi, %edx
	movl	%edi, %r14d
	movq	$0, -64(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movslq	%edi, %r15
	movq	$0, (%rbx,%r15,8)
	movq	$0, (%rcx,%r15,8)
	leaq	-44(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_registry_get_handle
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_18
## %bb.1:
	leaq	(%rbx,%r15,8), %r8
	movq	-64(%rbp), %rax
	movq	_REG_OPENED_EXISTING_KEY@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_2
## %bb.3:
	movq	$8, -56(%rbp)
	movl	-44(%rbp), %edi
	movq	_var_barstate0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_RegQueryValueExW
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_5
## %bb.4:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_5:
	movq	_FALSE@GOTPCREL(%rip), %rdi
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	testq	%r13, %r13
	jne	LBB0_8
	jmp	LBB0_7
LBB0_2:
	movq	_FALSE@GOTPCREL(%rip), %rdi
	testq	%r13, %r13
	jne	LBB0_8
LBB0_7:
	movq	_BANDID_TOOLBAR@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_BANDID_FORMATBAR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	btsl	%eax, %edx
	movq	_BANDID_RULER@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edx
	movq	_BANDID_STATUSBAR@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edx
	movslq	%edx, %rax
	movq	%rax, (%r8)
LBB0_8:
	leaq	(%r12,%r15,8), %r15
	movq	(%rdi), %r13
	movq	-64(%rbp), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_11
## %bb.9:
	movq	$8, -56(%rbp)
	movl	-44(%rbp), %edi
	movq	_var_wrap@GOTPCREL(%rip), %rax
	movq	%rsi, %r12
	movl	(%rax), %esi
	leaq	-56(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_RegQueryValueExW
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.10:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_11:
	testq	%r13, %r13
	jne	LBB0_17
## %bb.12:
	movq	_SF_RTF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_reg_formatindex
	cmpl	%r14d, %eax
	jne	LBB0_14
## %bb.13:
	movq	_ID_WORDWRAP_WINDOW@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_SF_TEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_reg_formatindex
	cmpl	%r14d, %eax
	jne	LBB0_17
## %bb.15:
	movq	_ID_WORDWRAP_NONE@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_17:
	movl	-44(%rbp), %edi
	callq	_RegCloseKey
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_REG_OPENED_EXISTING_KEY,8,3    ## @REG_OPENED_EXISTING_KEY
	.comm	_var_barstate0,4,2              ## @var_barstate0
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_BANDID_TOOLBAR,4,2             ## @BANDID_TOOLBAR
	.comm	_BANDID_FORMATBAR,4,2           ## @BANDID_FORMATBAR
	.comm	_BANDID_RULER,4,2               ## @BANDID_RULER
	.comm	_BANDID_STATUSBAR,4,2           ## @BANDID_STATUSBAR
	.comm	_var_wrap,4,2                   ## @var_wrap
	.comm	_SF_RTF,4,2                     ## @SF_RTF
	.comm	_ID_WORDWRAP_WINDOW,8,3         ## @ID_WORDWRAP_WINDOW
	.comm	_SF_TEXT,4,2                    ## @SF_TEXT
	.comm	_ID_WORDWRAP_NONE,8,3           ## @ID_WORDWRAP_NONE
	.no_dead_strip	_registry_read_formatopts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function registry_read_formatopts
_registry_read_formatopts:              ; @registry_read_formatopts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x8, x1
	mov	x20, x0
	str	xzr, [sp, #16]
Lloh0:
	adrp	x24, _FALSE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
	ldr	x26, [x24]
	sbfiz	x9, x20, #3, #32
	add	x21, x2, x9
	str	xzr, [x21]
	add	x19, x3, x9
	str	xzr, [x19]
	add	x0, sp, #28
	add	x1, sp, #16
	mov	x2, x8
	bl	_registry_get_handle
Lloh2:
	adrp	x22, _ERROR_SUCCESS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.1:
	ldr	x8, [sp, #16]
Lloh4:
	adrp	x25, _REG_OPENED_EXISTING_KEY@GOTPAGE
Lloh5:
	ldr	x25, [x25, _REG_OPENED_EXISTING_KEY@GOTPAGEOFF]
	ldr	x9, [x25]
Lloh6:
	adrp	x23, _TRUE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #8
	str	x8, [sp, #8]
	ldr	w0, [sp, #28]
Lloh8:
	adrp	x8, _var_barstate0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _var_barstate0@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x5, sp, #8
	mov	w2, #0
	mov	x3, #0
	mov	x4, x21
	bl	_RegQueryValueExW
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x0, x8
	csel	x26, x9, x26, eq
LBB0_3:
	cbnz	x26, LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _BANDID_TOOLBAR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BANDID_TOOLBAR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh14:
	adrp	x10, _BANDID_FORMATBAR@GOTPAGE
Lloh15:
	ldr	x10, [x10, _BANDID_FORMATBAR@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w10, w8
Lloh17:
	adrp	x10, _BANDID_RULER@GOTPAGE
Lloh18:
	ldr	x10, [x10, _BANDID_RULER@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	lsl	w10, w9, w10
Lloh20:
	adrp	x11, _BANDID_STATUSBAR@GOTPAGE
Lloh21:
	ldr	x11, [x11, _BANDID_STATUSBAR@GOTPAGEOFF]
	orr	w8, w8, w10
Lloh22:
	ldr	w10, [x11]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	sxtw	x8, w8
	str	x8, [x21]
LBB0_5:
	ldr	x21, [x24]
	ldr	x8, [sp, #16]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	w8, #8
	str	x8, [sp, #8]
	ldr	w0, [sp, #28]
Lloh23:
	adrp	x8, _var_wrap@GOTPAGE
Lloh24:
	ldr	x8, [x8, _var_wrap@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	x5, sp, #8
	mov	w2, #0
	mov	x3, #0
	mov	x4, x19
	bl	_RegQueryValueExW
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x0, x8
	csel	x21, x9, x21, eq
LBB0_7:
	cbnz	x21, LBB0_13
; %bb.8:
Lloh26:
	adrp	x8, _SF_RTF@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SF_RTF@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_reg_formatindex
	cmp	w0, w20
	b.ne	LBB0_10
; %bb.9:
Lloh29:
	adrp	x8, _ID_WORDWRAP_WINDOW@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ID_WORDWRAP_WINDOW@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh31:
	adrp	x8, _SF_TEXT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SF_TEXT@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_reg_formatindex
	cmp	w0, w20
	b.ne	LBB0_13
; %bb.11:
Lloh34:
	adrp	x8, _ID_WORDWRAP_NONE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ID_WORDWRAP_NONE@GOTPAGEOFF]
LBB0_12:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_13:
	ldr	w0, [sp, #28]
	bl	_RegCloseKey
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_REG_OPENED_EXISTING_KEY,8,3    ; @REG_OPENED_EXISTING_KEY
	.comm	_var_barstate0,4,2              ; @var_barstate0
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_BANDID_TOOLBAR,4,2             ; @BANDID_TOOLBAR
	.comm	_BANDID_FORMATBAR,4,2           ; @BANDID_FORMATBAR
	.comm	_BANDID_RULER,4,2               ; @BANDID_RULER
	.comm	_BANDID_STATUSBAR,4,2           ; @BANDID_STATUSBAR
	.comm	_var_wrap,4,2                   ; @var_wrap
	.comm	_SF_RTF,4,2                     ; @SF_RTF
	.comm	_ID_WORDWRAP_WINDOW,8,3         ; @ID_WORDWRAP_WINDOW
	.comm	_SF_TEXT,4,2                    ; @SF_TEXT
	.comm	_ID_WORDWRAP_NONE,8,3           ; @ID_WORDWRAP_NONE
	.no_dead_strip	_registry_read_formatopts
.subsections_via_symbols
