	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dove_twsi_ctrl_set
_dove_twsi_ctrl_set:                    ## @dove_twsi_ctrl_set
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%r14d, %r14d
	cmpq	$3, %rdx
	je	LBB0_5
## %bb.1:
	cmpq	$2, %rdx
	je	LBB0_4
## %bb.2:
	cmpq	$1, %rdx
	jne	LBB0_7
## %bb.3:
	movq	_TWSI_ENABLE_OPTION1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_8
LBB0_5:
	movq	_TWSI_ENABLE_OPTION3@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_TWSI_ENABLE_OPTION2@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r14d
LBB0_7:
	xorl	%ecx, %ecx
LBB0_8:
	movq	_gconfmap@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_GLOBAL_CONFIG_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TWSI_ENABLE_OPTION1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_update_bits
	movl	(%rbx), %edi
	movq	_GLOBAL_CONFIG_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TWSI_ENABLE_OPTION2@GOTPCREL(%rip), %rax
	movq	_TWSI_ENABLE_OPTION3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	%r14d, %ecx
	callq	_regmap_update_bits
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_gconfmap,4,2                   ## @gconfmap
	.comm	_GLOBAL_CONFIG_1,4,2            ## @GLOBAL_CONFIG_1
	.comm	_GLOBAL_CONFIG_2,4,2            ## @GLOBAL_CONFIG_2
	.no_dead_strip	_dove_twsi_ctrl_set
.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_set
_dove_twsi_ctrl_set:                    ; @dove_twsi_ctrl_set
	.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
Lloh0:
	adrp	x8, _TWSI_ENABLE_OPTION1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TWSI_ENABLE_OPTION1@GOTPAGEOFF]
Lloh2:
	adrp	x20, _TWSI_ENABLE_OPTION2@GOTPAGE
Lloh3:
	ldr	x20, [x20, _TWSI_ENABLE_OPTION2@GOTPAGEOFF]
Lloh4:
	adrp	x21, _TWSI_ENABLE_OPTION3@GOTPAGE
Lloh5:
	ldr	x21, [x21, _TWSI_ENABLE_OPTION3@GOTPAGEOFF]
	cmp	x2, #3
	b.eq	LBB0_4
; %bb.1:
	cmp	x2, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	x2, #1
	b.ne	LBB0_6
; %bb.3:
	mov	w19, #0
	ldr	w3, [x8]
	b	LBB0_7
LBB0_4:
	mov	w3, #0
	ldr	w19, [x21]
	b	LBB0_7
LBB0_5:
	mov	w3, #0
	ldr	w19, [x20]
	b	LBB0_7
LBB0_6:
	mov	w3, #0
	mov	w19, #0
LBB0_7:
Lloh6:
	adrp	x22, _gconfmap@GOTPAGE
Lloh7:
	ldr	x22, [x22, _gconfmap@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh8:
	adrp	x9, _GLOBAL_CONFIG_1@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GLOBAL_CONFIG_1@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	ldr	w2, [x8]
	bl	_regmap_update_bits
	ldr	w0, [x22]
Lloh11:
	adrp	x8, _GLOBAL_CONFIG_2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GLOBAL_CONFIG_2@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w2, w9, w8
	mov	x3, x19
	bl	_regmap_update_bits
	mov	w0, #0
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_gconfmap,4,2                   ; @gconfmap
	.comm	_GLOBAL_CONFIG_1,4,2            ; @GLOBAL_CONFIG_1
	.comm	_GLOBAL_CONFIG_2,4,2            ; @GLOBAL_CONFIG_2
	.no_dead_strip	_dove_twsi_ctrl_set
.subsections_via_symbols
