	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dove_twsi_ctrl_get
_dove_twsi_ctrl_get:                    ## @dove_twsi_ctrl_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	_gconfmap@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_GLOBAL_CONFIG_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	callq	_regmap_read
	movl	(%rbx), %edi
	movq	_GLOBAL_CONFIG_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	movq	$0, (%r14)
	movq	_TWSI_ENABLE_OPTION1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %eax
	testl	%ecx, -24(%rbp)
	jne	LBB0_3
## %bb.1:
	movl	-20(%rbp), %ecx
	movq	_TWSI_ENABLE_OPTION2@GOTPCREL(%rip), %rdx
	movl	$2, %eax
	testl	%ecx, (%rdx)
	jne	LBB0_3
## %bb.2:
	movq	_TWSI_ENABLE_OPTION3@GOTPCREL(%rip), %rdx
	movl	$3, %eax
	testl	%ecx, (%rdx)
	je	LBB0_4
LBB0_3:
	movq	%rax, (%r14)
LBB0_4:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gconfmap,4,2                   ## @gconfmap
	.comm	_GLOBAL_CONFIG_1,4,2            ## @GLOBAL_CONFIG_1
	.comm	_GLOBAL_CONFIG_2,4,2            ## @GLOBAL_CONFIG_2
	.comm	_TWSI_ENABLE_OPTION1,4,2        ## @TWSI_ENABLE_OPTION1
	.comm	_TWSI_ENABLE_OPTION2,4,2        ## @TWSI_ENABLE_OPTION2
	.comm	_TWSI_ENABLE_OPTION3,4,2        ## @TWSI_ENABLE_OPTION3
	.no_dead_strip	_dove_twsi_ctrl_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dove_twsi_ctrl_get
_dove_twsi_ctrl_get:                    ; @dove_twsi_ctrl_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
Lloh0:
	adrp	x20, _gconfmap@GOTPAGE
Lloh1:
	ldr	x20, [x20, _gconfmap@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _GLOBAL_CONFIG_1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GLOBAL_CONFIG_1@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _GLOBAL_CONFIG_2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GLOBAL_CONFIG_2@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_regmap_read
	str	xzr, [x19]
	ldr	w8, [sp, #12]
Lloh8:
	adrp	x9, _TWSI_ENABLE_OPTION1@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TWSI_ENABLE_OPTION1@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w8, #1
	b	LBB0_6
LBB0_2:
	ldr	w8, [sp, #8]
Lloh11:
	adrp	x9, _TWSI_ENABLE_OPTION2@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TWSI_ENABLE_OPTION2@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	w8, #2
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x9, _TWSI_ENABLE_OPTION3@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TWSI_ENABLE_OPTION3@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	mov	w8, #3
LBB0_6:
	str	x8, [x19]
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_gconfmap,4,2                   ; @gconfmap
	.comm	_GLOBAL_CONFIG_1,4,2            ; @GLOBAL_CONFIG_1
	.comm	_GLOBAL_CONFIG_2,4,2            ; @GLOBAL_CONFIG_2
	.comm	_TWSI_ENABLE_OPTION1,4,2        ; @TWSI_ENABLE_OPTION1
	.comm	_TWSI_ENABLE_OPTION2,4,2        ; @TWSI_ENABLE_OPTION2
	.comm	_TWSI_ENABLE_OPTION3,4,2        ; @TWSI_ENABLE_OPTION3
	.no_dead_strip	_dove_twsi_ctrl_get
.subsections_via_symbols
